Back in the day I tried my hand at this with the "Hello World" tutorial and such, Wanted to learn for gaming purposes (Something I still dabble in). Learning C is hard when you don't have someone to tell you the "why" part. All the tutorials I found would show how to do it but not why you do it that way. The if's, then's, else's statements get confusing when you can't raise you hand and ask a question like in a Classroom Like how come you use (if) instead of (else). Why some lines are indented and others not, why you skip lines and others you can't, short cut lines that you have to learn like "you could just do this without the other 50 lines of code to do the same thing" I would do it this way instead of that way from others. The that won't work people that won't tell you why again. then there's the bracket crap.Wendy said:I don't know C, learning a new language is going to take a lot longer, but I'm taking the long view. Whatever I have to learn I will attempt.
The (Hello World) code:
#include<stdio.h> //Pre-processor directive
void main() //main function declaration
{
printf("Hello World"); //to output the string on a display
getch (); //terminating function
}
then (Hello World) in C#
// A Hello World! program in C#.
using System;
namespace HelloWorld
{
class Hello
{
static void Main()
{
Console.WriteLine("Hello World!");
// Keep the console window open in debug mode.
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}
}
If you don't know the "why" you get confused.
Brzrkr