Thanx a lot!! It's a good introduction to C. I'm looking forward to Chapter 2.
Printable View
Thanx a lot!! It's a good introduction to C. I'm looking forward to Chapter 2.
There's already a chapter 2. Those interested can find it at http://www.antionline.com/showthread...hreadid=140166
Cheers,
cgkanchi
I've tried the above program in bloodshed dev-c++. I did everything to spec and tried to run it. The onlything that happens is my dos prompt screen flashes once then dissapears. Is there a solution for this problem ???
Thanks bro
I might be wrong but if you use visual studio You use cin>> and cout<< statements instead of the printf. Also, I think you use <iostream> instead of <stdio.h> I am learning c++ with visual studio and it is difficult as I need to unlearn a few things.
ANybody agree or disagree with me?? Is this just a visual studio thing????
You're right that is the way to do IO if you're doing C++. The printf() / scanf() method is the correct way to do that in pure C. So, it's not a Visual Studio thing, just a C++ thing.
Cheers,
cgkanchi