+ 1
Can anyone teach me more about this?
I want to learn coding early on so that I may pursue a carrer in multiple kinds of engineering. I would appreciate help from someone who knows coding languages well. :)
15 odpowiedzi
+ 3
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string a;
cout << "Please enter your name: ";
cin >> a;
cout << "Hello" << a << "nice to meet you";
return 0;
}
should do
+ 2
To learn coding language there is a better way that tells "learn by doing". what you read in theory test it practically by writting code. Initially it may take little time but as the time, you can learn quickly.
there are number of online resources available, you start with the basics.
+ 2
tutorialspoint.com is very good website it will help you a lot
+ 1
Ya, this is the spirit!!!
+ 1
Hi Auben,
in addition to B K, pls care for programming *properly*. Take it from a senior in the industry: there are many ways to do one thing. Unfortunately, many ways will be error-prone, hard to understand or just not portable. Therefore, care for so called "best practices". They represent the current knowledge about how to solve a problem best.
+ 1
Hi Auben, what does "it doesn't build and run mean?" Is CodeBlocks configured right? I can't see problems like this arising from your code. Did you test, if CodeBlocks compiles the minimum program?
Minimum program that must always work given the build system is set up properly:
int main() {
return 0;
}
+ 1
😃
0
Ok, thank you for taking the time to answer me, I will start looking online now and working with the code more "hands on".
0
programming learning comes with a practising only , the more you practise the more you will get better . there are various reference books you can go through with but you ain't going to remember if you don't practise and use your own logic to find the solution of complex problems that helps alot and you won't forget in life.. and remember hard graft always pays off
0
I worked through the night and I am now working with If statements and tests, I have a code but Code::Blocks is being weird and not allowing me to Run, build or Build and Run. The code is as follows:
#include <iostream>
using namespace std;
int main ()
{
if (5>3){
cout << "The test is true";
}
return 0;
}
If you have any idea why it does not work please notify me about what is wrong with it.
0
I got it to run perfectly fine after the program crashed and I reopened it, funny story to tell when your on break, yes?
0
I am trying to code something using input from the user and variables, Im want to have the user input thier name and the program to say "Hello, (Thier name), nice to meet you"
Here is the code I have so far
#include <iostream>
using namespace std;
int main ()
{
int a;
cout << "Please enter your name"
cin >> a;
cout << "Hello, a;, nice to meet you"
return 0;
}
0
Thank you, Stefan
0
Is it possible to hide the text at the end of the program
(Process returned 0 <0x0> execution time : 3.454 s
Press any key to continue)
0
No prob. 😀