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 <iostream> | |
#include <string> | |
int main () | |
{ | |
std::string firstName = ""; | |
std::cout << "Enter your first name and press ENTER: "; | |
std::cin >> firstName; |
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
1>------ Build started: Project: project one, Configuration: Debug Win32 ------ | |
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup | |
1>C:\Users\Kurt3\Desktop\Video Game Programming\Gameinstitute.com - Game Engine Development Course\Projects\project one\Debug\project one.exe : fatal error LNK1120: 1 unresolved externals | |
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
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 <iostream> | |
#include <string> | |
int main() | |
{ | |
std::string firstName = ""; | |
std::cout << "Enter your first name and press ENTER: "; | |
std::cin >> firstName; |
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 "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; | |
} | |
} |
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
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 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 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 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 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; |
OlderNewer