Writing a basic first program

In this lesson:
  • Introduction to integer variables
  • Introduction to the printf statement
  • Stepping through in debug mode
Running time: 25:26
 
 

Comments (10)

 

John,
MS Express 2010 automatically makes a folder titled External Dependencies. Will obviously ignore for now, but when F10 is used, it will run through those lines.
 
Paul

hello John,
Thank you so much. The way you explained things that was awesome.I was wondering but everywhere i got only "Hello World". But after watching this video i can feel that i can learn programming.Thanks once again. Keep it up buddy.
 

Thanks for generously posting these lessons. They are excellent. I have tried for a while now to track with you while using XCode on my Mac but have always bogged down at this exercise as I seem to get weird errors that aren't addressed in the lesson and I'm assuming are XCode issues or more likely XCode user issues.
I decided to try again and I got further than normal but still can't get beyond this error I get:
duplicate symbol _main in /Users/xxx/Documents/test_project1/build/test_project1.build/Debug/test_project1.build/Objects-normal/x86_64/source1.o and /Users/xxx/Documents/test_project1/build/test_project1.build/Debug/test_project1.build/Objects-normal/x86_64/main.o
apparently, somewhere I've duplicated a symbol? I'm not sure what that means but I couldn't really find any duplication as I tried to follow your example to the letter.
any ideas on what I'm doing wrong?
Thanks
 

 Thanks John,

 
Lessons are excellent. I already took some C in College ages ago and I'm now refreshing, but I'm really looking forward for the more advanced topics.
 
I think it would be nice to have some Networking related applications in the future (like sockets, client / server, ports apps, etc).
 
Keep it up !
 
 
P.D. Haven't you thought of having C++ courses in the future as well ?
 
 
Regards,
Pablo 

Can you please explain what is a manifest , as it shows as it compiles ?

You know what, I didn't notice that 'embedding manifest' message at the bottom, and I'll be completely honest - I have no idea what it means!

I imagine it is some specific visual studio (microsoft) thing. I wouldn't worry about it, especially not at the beginning learning stage.

- John

The length of this lesson works well for us. (My son and I are working through this together.) We are early in the learning curve and anxious to get to the point where we can actually try out some code. We ran the video in one window, while mimicking your actions in our own window. It worked very well. When you broke the printf statement into two lines, you automatically inserted a slash without explaining it. Fortunately, you picked it up when you recapped the program. We're looking forward to more! Sharon and Sean

Writing a first C program, which introduces integer variables, the printf statement, and stepping through the program.

This is a somewhat long lesson, at 25 minutes - let me know if you think this is too long for a typical lesson.

- John

I like it!! it is good but is that possible for c programing to use visual c++ compiler? i am using eclips (c compiler) so i am not clear on this?

Yes, any compiler is fine. You can write C code using visual C++, you just don't do any C++ stuff. eclips should be just fine as well - I will be focused on just C, nothing specific to visual C++.

So no worries !