Showing results 1 to 10 of 10
Search took 0.01 seconds.
Posts Made By: Emmitt310
Forum: C++ Feb 3rd, 2005
Replies: 3
Views: 1,551
Posted By Emmitt310
Re: What's going on with character values in this loop?

I don't understand why the user would enter a character.
Forum: C++ Feb 3rd, 2005
Replies: 30
Views: 5,677
Posted By Emmitt310
Re: Old School Compiler vs New Compiler

Well looking at your solution, the user can enter even a negative. Says the input must be more than 10 so... as a suggestion (for the getsalary())


int getsalary()
{
int usersalary=0;
...
Forum: C++ Feb 2nd, 2005
Replies: 5
Views: 2,300
Posted By Emmitt310
Re: GetTickCoun(), rand() are they the same?

Adding on, GetTickCount() is also a way to seed the random number generator


srand( GetTickCount() );
Forum: C++ Jan 28th, 2005
Replies: 9
Views: 6,008
Posted By Emmitt310
Re: compile header file

Oh and to answer the question of multiple compilations... it only defines the file name if it wasnt defined.
Forum: C++ Jan 28th, 2005
Replies: 9
Views: 6,008
Posted By Emmitt310
Re: compile header file

Header files aren't compiled but when the compiler sees
#include "filehere.h" ,
it looks for the file for that name in the directories specified. Then it looks through the header during runtime for...
Forum: C Jan 22nd, 2005
Replies: 8
Views: 10,258
Posted By Emmitt310
Re: how to get the last key pressed without stopping the programm ?

Ok well, the reason why it's easy in win32 to check for keyboard input is because you can check for a window message WM_KEYDOWN. Each key has a specific virtual key code, but, you can figure that...
Forum: C Jan 22nd, 2005
Replies: 8
Views: 10,258
Posted By Emmitt310
Re: how to get the last key pressed without stopping the programm ?

Well, i think i know what you mean but it may help to know what kind of program you want to make. If it's a win32 application, checking for keyboard input during a loop is easy, but if this isnt a...
Forum: C++ Jan 16th, 2005
Replies: 21
Views: 5,132
Posted By Emmitt310
Re: C++ pointers problem

All i see in your code that could give a syntax error is the lack of a semicolon after the function call order_chars.
Forum: C++ Nov 4th, 2004
Replies: 3
Views: 1,789
Posted By Emmitt310
Re: slight problem with undetermined character constant

I'm preety sure the error untermined character constant means you forgot to close a string in output with quotes.

I believe that occurs here:
cout << "\n\nDo you want to continue(Y/N)?

Needs to...
Forum: C++ Sep 29th, 2004
Replies: 2
Views: 3,655
Posted By Emmitt310
Need help setting up graphics

Hello, my name is Jonathan and I am a beginner programmer in my first year of studies. I am using a Turbo C++ editor and I'm trying to set up graphics. The problem is I'm not sure how. Here's how i...
Showing results 1 to 10 of 10

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:24 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC