what's the command prompt? what's the difference between the command prompt to the command line?
what's the console?
somefile and someoutfile? what are these? :O
why did he type (ch=getchar()) != '\n'?
what's the command prompt? what's the difference between the command prompt to the command line?
what's the console?
somefile and someoutfile? what are these? :O
why did he type (ch=getchar()) != '\n'?
Last edited by eXeCuTeR; 11-26-2007 at 04:29 AM.
Oh dear. You have only ever done GUI programming? I thought most people start off programming for the command line/prompt.
Say I ask you to write a "hello world" program. What would you write?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
#include <stdio.h> int main(void) { printf("hello world"); return 0; }
what's the point?
No newlines?
The point I think Laserlight is making is that console programming is the "basic level", if you are not familiar with command prompts and console programs, perhaps you are missing a big part of the knowledge necessary for generic programming.
By the way, stdout and stdin is part of what you get from "stdio.h".
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Console programming and command prompts is when this DOS window comes when you compile it, isn't it? Well, here in Linux it's not exactly a DOS window, but it still looks like it.
Yes, that's it. Allthough technically, it hasn't been a "DOS box" since Windows 3.1 - it can BECOME a DOS-box if you run a 16-bit application, and most people call it a DOS box even when it's running a 32-bit native Windows application. And of course, your Linux/Unix xterm or whatever isn't ever a DOS-box, but serves the same purpose of "typing commands and executing them", which is what it's all about.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Is there any other "style" or however you call it, than the console in C?
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
How do I use this GUI programming?
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Sounds familiar from C#.
But how could I program in Linux with windows forms and stuff? will it still work? or I should download windows.h and put it somewhere (where?) so it can work.
Last edited by eXeCuTeR; 11-26-2007 at 07:38 AM.
No, not at all the same API, and windows.h is just a set of declarations of functions and data structures for the Windows API. There are "multi-target" libraries, e.g. wxWidgets() that can be used for Linux and Windows and others, but the native API is diffferent.
For now, I suggest you ignore ALL of the GUI programming and concentrate on learning the language itself.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Ok, was just wondering.
I'm still looking for a great tutorial I could learn from.
I've read plenty (actually, A LOT) tutorials on the net, and I can't find one that supplies all the answers to all of my questions (well, that's a little extremist but you know what I am).
Any suggestions?