Cheers, Monster!
Type: Posts; User: nevermind
Cheers, Monster!
I wrote a program that used the <ctime> header file. It compiled fine in Borland but when I compiled it in Unix it just wouldnt execute the time stuff (I am certain my code is right).
What could I...
Check out this site: www.bruceeckel.com
You can download free online versions of Bruce Eckels book Thinking in C++, Volumes one and two.
I am reading Vol1 now, it has plenty examples and is...
Ensure that the file you are trying to open is .CPP or else DEvC++ doesnt see it as a C++ file. You have to then choose 'All files' in the Open file dialog box for C++ files with extensions like .CC...
Well check your settings in the compiler.
You are able to choose where you want to output your exe files. Then its simply the matter of finding it and executing it.
I hope this is what your...
In oder to avoid errors always include function prototypes before teh main function like so
int Area (int , int);
OR
int Area (int a, int b);
The declaration or prototype simply tells...
Yeah I dont think it matters that much in loops however makes a big difference in statements.
Also thats where C++ comes from ... an increment to C
Thought I'd share that ;)
Hello,
I would appreciate a link to a list of standard C++ libraries.
I have an extremely old compiler (I still have to use iostream.h), and would like to be able to port to different...
Hi everyone,
I have just started to learn C++ with the book "Thinking in C++" by Bruce Eckel. It's a great book, has two volumes, both available for free download at www.bruceeckel.com
It is...
Hi, I think this should help:
//using vectors to open file and count lines
#include<iostream>
#include<fstream>
#include<string>
#include<vector>
int main()
I'd like some more tutorials bit the problem solving sounds great!
Thanks for all your help!
It really helped me today.
Thanks Hammer!
Your a legend!!
I got rid of all my errors since my last post, thanks guys!
But but ... just one last error ... please help!
[code]
g++: Compilation of header file requested
g++: Compilation of header file...
Hmmm ... yeah I'll do that thanks for the tip.
Clock1.cc:26: `hh' undeclared (first use this function)
Clock1.cc:26: (Each undeclared identifier is reported only once
Clock1.cc:26: for each function it appears in.)
Clock1.cc:27: `mm'...
Oh no forgot about the tags sorry bout that ... will not forget!
Cheers!
I have 5 files Clock.cc Clock1.cc Clock.h Clock1.h and Main.cc
Clock1 inherits from Clock.
I have tried to compile my program in Borland and it works nicely (but as one file Clock.cpp not as a...
I had posted a question regarding a clock program earlier today 23-10-2002 (Please Help with progam)
Following this I want to create a world clock with five world city times. I know I will use...
Thanks for the help ... I know how to make my original code even cleaner than before. Woohoo! thanks everyone.:)
A twelve hour clock; stores hours, minutes, seconds, AM or PM. Intitial hours, mins, secs are 0 by default. User is requested for the entries. Then the clock is advanced by seconds one by one.
The...
Thanks a lot, it clears it up.
APPRECIATE YOUR HELP!
Hi, the following program runs fine with Borland. It is a twelve hour clock. What it does is requests hours, mins, secs and then waits for user input. When user hits a key the program stops running...