@nanothief : Thanks, I never heard about that, I would look into it.
@OnionKnight : Why does your profile picture section take up half the space while the body of your post takes up the other...
Type: Posts; User: Hexxx
@nanothief : Thanks, I never heard about that, I would look into it.
@OnionKnight : Why does your profile picture section take up half the space while the body of your post takes up the other...
Hi there, haven't been coding for a while, but I think I should start back as I have been away from it for too long.
I have a set of files in two different directories, say DirA, and DirB. The...
In reference to my searched, I was talking about SlyMaelstrom 'previous' post on the subject, as the link said. It is interesting that this is so difficult to find. I didn't find it under the Windows...
tried searching, but only this post came up.
http://cboard.cprogramming.com/search.php?searchid=519988
I looked aroud but never saw any tutorial on how to deal with file in windows, Such as renaming a file. My current project involves using a program to extract some info (the title field) from a pdf...
I might just be too over accustom to vectors, but how do I get the size of an array in C++ again?
I had to do this
int num[] = {0, 0, 0, 0};
to fill up an arrary with only 4 zeros...
I have a struct
struct Point {
int x;
int y;
};
I also have another struct called
but that is outputting the string directly to the screen, i want to be able to store it as a string as i wouldbe using that to display via another function. I thougt if u you the concat operator +...
Okay I know somtimes we make a mistake with even the simplest thing!
Im trying to print out a string followed by an integer value, but don't want to print it out directely to the screen as I am...
I need to create a simple XML parser using a state machine. I know I'm going to be user push_back when i get a valid tag and pop_back to start verifying the tag when I reach </ but I am unsure as to...
I have a user created struct (named Nze), composed of int x co-ordinate, int y co-ordintate, and int a_value. A series of these structs have been inserted into a vector (named result) which was...
Hi, how can I start back from the beginning of a file after I have already read through it to read it again? Right now I have read through each line and closed it and re-opened it with a different...
ok i figured out the cin.eof by myself. thanks a lot for the signal part!
we are suppose to use a do while loop because we are only suppose to prompt once! Our lecturer said prompting for the samething more than once was 'inefficient', so I can't use
cout << "Enter...
how can i do that? the code im delaying with is :
do {
cout << "Enter data: ";
cin >> data}
while (!validData);
}
I'm making a payroll application which takes input from cin, it validates the data (has a while loop in it). The problem is if I 'accidently' press Ctrl+Z it just keeps looping the prompt on the...
the user needs to enter a monetary value only into the program with with no extraneous cents, for example, 56, 56.32 178654.44, but not 123.223 etc.
I'm reading the data input via the keyboard...
Does this hold for other languages like Java and C? Because im sure (at least right now I think!) that I aligned numbers using leading zero's.... or maybe that was just for prepending the '0'...
so what's the difference between that octal above and entering a decimal with a leading zero? So u mean when I enter any number with a leading zero it's realy in base eight!! :O
How do I write A in the program do the compiler knows it's a hexadecimal number?
ok that's it, I know the problem has something to do with linking...how do I link to "shell32.lib" ? I'm a beginner on MS Visual Studio 2005
well I don't know what you mean by that...
I want to be able to show some stuff on the screen (well the console screen anyway), and then make the program load.
ok cool, I belive the msdn fuction should help me on my way...
I want to execute a program (say test.exe). But I want to do it from inside a C++ file as I want to have a delay after the program executes, how can I execute a program on disk from inside cpp? it's...
I want to be able to set the time on my comp, (saving the time it was before setting would be nice too!), I looked around and found stuff with time.h, the most usefull thing I found had sys/time.h in...