: : : : : : : Hi,
: : : : : : :
: : : : : : : Was wondering whether anyone could explain how to keep the console window open after program compiling and execution?
: : : : : : :
: : : : : : : I am running winXP sp1, and have specified my C project to open to console, but it won't open, just breifly 'flash'.
: : : : : : :
: : : : : : : Humble thanks from a complete programming newb.
: : : : : : :
: : : : : :
: : : : : : Try putting a system call to "pause" just prior to your return before the closing bracket in the main() function, like this:
: : : : : :
: : : : : :
: : : : : : #include <stdio.h>
: : : : : :
: : : : : : int main()
: : : : : : {
: : : : : : printf("Program trial...");
: : : : : :
: : : : : : system("pause");
: : : : : : return 0;
: : : : : : }
: : : : : :
: : : : : :
: : : : : : Take Care,
: : : : : : Ed
: : : : : :
: : : : : :
: : : : :
: : : : : Tools, Environment Options, then check CONSOLE WINDOW REMAINS OPEN.
: : : : : Hopefully we have the same version of the software.
: : : : :
: : : : : PS
: : : : : Why do I spot so much C on the forum? Is C++ not supposed to replace C, or does C still have a place in the world. As soon as I see printf or scanf I kind of lose interest

: : : : :
: : : : :
: : : : Thanks, Ed!
: : : :
: : : : BTW- C is part of my uni course-so as far as I'm concerned, C still has a place in the world!
: : : :
: : : : Cheers,
: : : :
: : : : J
: : : :
: : :
: : : It seems that if you have to work with C++ in the industry, using C is almost inevitable.
: : : I have been at my new C++ part time job for two months, and the C++ written by the previous programmers has plenty of C like code in it (to my dismay), and it would seem from a C++ point of view that you cannot really have one without the other.
: : : Also, maybe being an apprentice at a different company might be different, but where I am the boss is mostly on site, installing our building management system. As I understand, many clients (containing amongst other things the GUI functionality) can connect to a server, which can connect again to many Services. The reason for many services being that each should implement communication to a different hardware panel, each which has a different protocol for comms. But the server has been made in such a way that it would (probably) not have to be changed in order to communicate with a new service. My job is to make a service, for now at least. Now get this. I am not being told what to do. I have to take an existing service (and I am not even sure what the thing is doing), then figure out what part of the coding was done in order to integrate it seamlessly with the server, and what part has been done in order to solve that particular problem, then take that knowledge (the first half) and use it to implement my service. Or else I can pack my bag and go, I have been told. And also there is no documentation at all!! Does this seem fair?? I don’t know, since this is my first C++ job, but when I worked with Cobol at least some people was willing to help(maybe they spoiled me?), now it is a do or die situation. If it is possible for me to figure out any code that is put in front of me, why dont I just phone NASA and ask them for a job now. Or maybe this is a small company kind of problem, but I feel like I am being treated very unfairly. Am I, or not?? Maybe I am not that well qualified, but in my defense I am being paid the equivalent of 3 US dollars an hour.
: : :
: : :
: :
: : That is making me think twice about getting a degree in computer science. I like to program but I don't like to work 12hrs or more a day 7 days a week programming on something, boring! I would eventually go insane. I'm now thinking of getting a degree in Electrical/Electronics Engineering instead, since I am more interested in designing and making hardware than programming software. The job outlook looks better since alot of these CS jobs are going overseas. I was even thinking of taking it a step further and going into Biomedical Engineering which is booming from what I have read.
: :
: :
: :
:
: Maintaining old program is always more boring than writing new ones.
: And if you are unlucky, the original program was written by a lousy programmer. The trick is to make your boss/customer to understand that.
: Someone said that a program won't be better than the least skilled programmer involved in it, and that is often true. If the person who made the original program didn't think about future extentions, then what can you do?
:
:
Ok guys, thank you for the sympathy, even if it took so long!! I was beginning to get worried.
Moneywise the situation is not as dire; I have another part time job as tutor that pays more. At first I even offered to work for free, the main idea being getting some C++ work experience as to compliment my studies. But (and I knew this beforehand), there is a hell of a difference between development and maintenance. Maintenance is made much worse by lack of proper documentation, or no one knowing anything about the system (because those who do has left for more money). My problem is that this kind of work really sucks big time, but apparently many programmers suffer the same fate. I would feel that the kind of assignments I am getting is better suited to highly advanced programmers than to me, the junior. And STOBER, as for doing what you like, for me it is more a case of doing what I hate least. Everyone has to work.
Have a nice day everyone!