0

Code:Blocks New project how

Hello, I wanted to learn the basics in Code Blocks. If I go to "Create a new Project" it shows me maaany different options of categorys and I want to know if I want to make like a little console variable like if a > b cout yes bla bla bla, wich one do I have to take?

5th Nov 2016, 7:13 PM
Marco Angermann
1 Odpowiedź
0
“Let's create our first C++ file. Open Codeblocks and go to File > New > Empty File. Write the following C++ code and save the file as myfirstprogram.cpp (File > Save File as): myfirstprogram.cpp #include <iostream> using namespace std; int main() {   cout << "Hello World!";   return 0; } Don't worry if you don't understand the code above - we will discuss it in detail in later chapters. For now, focus on how to run the code. In Codeblocks, it should look like this: Then, go to Build > Build and Run to run (execute) the program. The result will look something to this: Hello World! Process returned 0 (0x0) execution time : 0.011 s Press any key to continue.” This is from W3schools.
8th Dec 2024, 1:07 PM
TheMunchkinOfficial
TheMunchkinOfficial - avatar