+ 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. :)

16th Jul 2016, 6:51 AM
Auben Bartle
Auben Bartle - avatar
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
16th Jul 2016, 12:51 PM
Stefan
Stefan - avatar
+ 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.
16th Jul 2016, 7:40 AM
B. K.
+ 2
tutorialspoint.com is very good website it will help you a lot
16th Jul 2016, 12:28 PM
Karan Luther
Karan Luther - avatar
+ 1
Ya, this is the spirit!!!
16th Jul 2016, 7:55 AM
B. K.
+ 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.
16th Jul 2016, 8:52 AM
Stefan
Stefan - avatar
+ 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; }
16th Jul 2016, 12:21 PM
Stefan
Stefan - avatar
+ 1
😃
16th Jul 2016, 12:33 PM
Stefan
Stefan - avatar
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".
16th Jul 2016, 7:41 AM
Auben Bartle
Auben Bartle - avatar
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
16th Jul 2016, 8:55 AM
Karan Luther
Karan Luther - avatar
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.
16th Jul 2016, 11:29 AM
Auben Bartle
Auben Bartle - avatar
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?
16th Jul 2016, 12:24 PM
Auben Bartle
Auben Bartle - avatar
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; }
16th Jul 2016, 12:46 PM
Auben Bartle
Auben Bartle - avatar
0
Thank you, Stefan
16th Jul 2016, 12:52 PM
Auben Bartle
Auben Bartle - avatar
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)
16th Jul 2016, 12:59 PM
Auben Bartle
Auben Bartle - avatar
0
No prob. 😀
16th Jul 2016, 2:05 PM
Stefan
Stefan - avatar