This file contains hidden or 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
| // navigatorProgram: My first semi-good C++ program. | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| // Declare. | |
| int positionX = 0; |
This file contains hidden or 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
| // navigatorProgram. | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| // Declare. | |
| int positionX = 0; |
This file contains hidden or 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
| // averageWithTheHelpOfReddit | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| // Declare. | |
| int numberOfInputs = 0; |
This file contains hidden or 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
| // averageWithTheHelpOfReddit | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| // Declare. | |
| int numberOfInputs = 0; |
This file contains hidden or 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
| // sumReddit2 | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| // Declare. | |
| int numberOfInputs = 0; |
This file contains hidden or 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
| // sumReddit.cpp | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| // Declare. | |
| float first = 0.0f; |
This file contains hidden or 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
| // average | |
| #include "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| // Declare. | |
| int numOfValues = 0; |
This file contains hidden or 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
| 1>------ Build started: Project: 2.10, Configuration: Debug Win32 ------ | |
| 1> 2.10.cpp | |
| 1>c:\users\kurt3\documents\visual studio 2010\projects\2.10\2.10\2.10.cpp(9): error C2062: type 'int' unexpected | |
| 1>c:\users\kurt3\documents\visual studio 2010\projects\2.10\2.10\2.10.cpp(9): warning C4552: '<' : operator has no effect; expected operator with side-effect | |
| 1>c:\users\kurt3\documents\visual studio 2010\projects\2.10\2.10\2.10.cpp(9): error C2065: 'cnt2' : undeclared identifier | |
| 1>c:\users\kurt3\documents\visual studio 2010\projects\2.10\2.10\2.10.cpp(9): error C2143: syntax error : missing ';' before ')' | |
| 1>c:\users\kurt3\documents\visual studio 2010\projects\2.10\2.10\2.10.cpp(9): error C2143: syntax error : missing ';' before ')' | |
| 1>c:\users\kurt3\documents\visual studio 2010\projects\2.10\2.10\2.10.cpp(9): error C2143: syntax error : missing ';' before '{' | |
| 1>c:\users\kurt3\documents\visual studio 2010\projects\2.10\2.10\2.10.cpp(10): error C2065: 'cnt2' : undeclared identifier | |
| ========== Build: 0 succeeded, 1 fa |
This file contains hidden or 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 "stdafx.h" | |
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| for(int cnt1 = 0, int cnt2 = 9; cnt1 < 10; ++cnt1, --cnt2) { | |
| cout << cnt1 << "---Hello, World!---" << cnt2 << endl; | |
| } | |
| } |