-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
69 lines (57 loc) · 1.46 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//============================================================================
// Name : main.cpp
// Author : Damian Wojakowski
// Version :
// Copyright : GNU
// Description : Testing C++
//============================================================================
#include <iostream>
#include <vector>
#include <stdio.h>
#include "headers.h"
using namespace std;
void lotsOfTinyTests();
inline double dziel(double a, double b);
int main() {
//lotsOfTinyTests();
//testObjects();
//classesBasics();
//testExceptions();
//testInheritance();
//testTemplates();
//testVirtualFunctions();
checkCppString();
return 0;
}
void lotsOfTinyTests() {
//sayHello();
//decimalToBinary(33000);
//displayNumberDefinedByPreprocesor();
//displaySum();
//displayNNN();
//displayDZIELMacro();
//cout << dziel(20.30, 4.50);
//displayMission();
//displayProgramInformation(15);
//runExperiment();
//initializeArray();
//playingWithArrays();
//changeArrayValueInAnotherFunction();
//saveStringsIntoArrays();
//twoDimensinalArray();
//myFirstPointer();
//someCFunctions();
//functions();
//checkCppString();
//run_operators();
}
inline double dziel(double a, double b) {
return (a / b);
}
void someCFunctions() {
printf("Hello, World from C\n");
char s[] = "Some string";
for (char* cp = s; *cp; cp++) {
printf("char is %c\n", *cp);
}
}