Click here to Skip to main content
15,031,085 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey all noob programmer here. I thought Instead of watching tutorials just to jump In and build stuff and learn on the go and trial and error rather than just being stuck In tutorial limbo.

First Is obvious a basic hello world Program easy done. I've copied this and typed It solo Into my IDE. Please note I would like to practice with Visual Studio and Code-blocks.

I've typed this Into Code blocks and freehand I don't know why It hasn't worked?

https://i.imgur.com/DYVaxiN.jpg
https://i.imgur.com/JFSrtqC.jpg

What I have tried:

Allsorts freehand and copying and pasting.
Posted
Updated 28-Feb-21 20:03pm

1 solution

Because the C language is case sensitive: "I" is not the same as "i"
Change this line:
C++
Int main(){
To this:
C++
int main(){


And in future, don't take photos of your screen and post links to them: copy'n'paste the actual text and post that here, enclosed in cpde blocks by using the code widget above the text box:
<pre lang="C++">#include <stdio.h>

Int main(){
   printf("Hello, World!an");
   return 0;
   }
Then displays as:
C++
#include <stdio.h>

Int main(){
   printf("Hello, World!an");
   return 0;
   }
And we can not only read exactly what you have typed, but we can also copy'n'paste it if we need to compile or test it for you ...
A screenshot doesn't let us do that.
   
Comments
CPallini 1-Mar-21 2:11am
   
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900