This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DivideEtImperaVocali { | |
public DivideEtImperaVocali() { | |
char[] array = new char[]{'a', 'a', 'e', 'u', 'e', 'f', 'f'}; | |
boolean result = vocaliPari(array, 0, array.length-1); | |
System.out.println("vocali pari? result:" + result); | |
} | |
public boolean vocaliPari(char[] array, int i, int f) { | |
if (i == f) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Accessories Store | |
Accounting and Bookkeeping | |
ACH | |
Acorns | |
Acupuncture | |
Adult | |
Adult Education | |
Adult Entertainment | |
Advertising Agencies and Media Buyers | |
Advertising and Marketing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExamplesDefaults.swift | |
// SwiftCharts | |
// | |
import UIKit | |
import SwiftCharts | |
struct ExamplesDefaults { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftCharts | |
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing | |
class AnalysisController: BaseViewController { | |
let monthData: [Int: [String: Float]] = [0: ["Jan": 20], | |
1: ["Feb": 4], | |
2: ["Mar": 20], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftCharts | |
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing | |
class AnalysisController: UIViewController { | |
let monthData: [Int: [String: Float]] = [0: ["Jan": 20], | |
1: ["Feb": 4], | |
2: ["Mar": 20], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftCharts | |
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing | |
class AnalysisController: BaseViewController { | |
let monthData: [Int: [String: Float]] = [0: ["Jan": 20], | |
1: ["Feb": 4], | |
2: ["Mar": 20], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import SwiftCharts | |
// NOTE: you may have to set the module in the storyboard to "SwiftCharts", otherwise the view may not be recognized correctly, which leads to axis, labels and guidelines not showing | |
class AnalysisController: UIViewController { | |
let monthData: [Int: [String: Float]] = [0: ["Jan": 20], | |
1: ["Feb": 4], | |
2: ["Mar": 20], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
struct Film { | |
int codiceFilm; | |
int codiceRegista; | |
int annoProduzione; | |
int durata; | |
char titolo[100]; | |
char genere[100]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void bubbleSort(int vettore[], int lunghezzaArray) { | |
int tmp; | |
for (int i = 0; i < lunghezzaArray-1; i++) { | |
if (vettore[i] > vettore[i+1]) { | |
tmp = vettore[i]; | |
vettore[i] = vettore[i+1]; | |
vettore[i+1] = tmp; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int acquisisciNumeroCompresoTraValori(int min, int max) { | |
int inserimento; | |
printf("Inserisci un numero compreso tra %d e %d: ", min, max); | |
scanf("%d", &inserimento); | |
while ((inserimento < min) || (inserimento > max)) { | |
printf("Inserimento invalido! Riprova: "); | |
scanf("%d", &inserimento); | |
} |