General C++ Programming - July 2008 (Page 7)

by karang
DEVMODE and DEVNAMES
 
Hi There are 2 structures DEVMODE and DEVNAMES. What is these structures used for. Is there any tutorial that explains the basics of devmode and devnames ...
[1 reply] : The DEVMODE data structure contains information about the initializati... (by closed account z05DSL3A)
problems with arrays and loops
 
ok so im writing a soduku puzzle validator to make sure the puzzle is correct. where the numbers 1-9 can only appear once on every line. i got that part of the ...
[no replies]
Consult your Compilers documentation
 
Hey, I've been reading from several sources to learn C++. I have seen the phrase "consult your compilers documentation for more information" multiple time...
[3 replies] Last: Thanks all, I think I got what I need, also started an... (by enduser000)
Text file reading problem
 
I've got a problem regarding reading a text file. I have a text file which is this format: 3 2 3 4 -3 1 1 1 -3 0 1 0 -4 -5 -5 0 Basically, first li...
[11 replies] Last: The if(!infile) works fine. But if you want to be completely accurate ... (by Mitsakos)
by jrohde
Location of library functions?
 
Hello, I often find myself curious to see how many standard c++ functions are actually defined. I use Dev-C++, and by browsing the folders, I am obviously a...
[4 replies] Last: Yes, for companies like Microsoft and Comeau and Sun Microsystems... (by Duthomhas)
random numbers
 
does any one know a library that can help me generate random numbers starting from a seed that can stor larger values than an int for example long long??
[2 replies] Last: rand() is all you get on Windows On Linux you get int random() ... (by rlskinner)
Compiling #define's *value* in a string
 
OK, I need to compile the *value* of a #define'ed symbol into a C++ program. I would like to pass the symbol's value on the compile line without a lot of hideo...
[7 replies] Last: Yeah, I thought about the include file solution. It looks to me lik... (by rlskinner)
dynamic creation of objects
 
Hi friends , I am new to c++. My problem is that I have been given a list of strings, this strings are nothing but the names of the classes,now at run-time ...
[6 replies] Last: read about reflactions it is about loading ur class in run time (by shereif102)
Trying to make a table using a loop.
 
Thanks..i figured it out...not quite sure how to delete this!
[3 replies] Last: Hi how about at the end of the loop: beginning_payment = ending_pa... (by int main)
Nested classes and local classes
 
I'm just reading up on these things. Does/has anyone make use of them? To me they seem like a trap for the unwary (or programmers who want to show off :-) )
[2 replies] Last: Never use them, they over complicate the code unnecessarily. KISS (Kee... (by Zaita)
LOGIC????
 
I get the logic behind all of these. But I dont understand "bool Rational::isEqualTo(const Rational a) const{" function. How does that check if two rational n...
[4 replies] Last: Wiki? O_O (by simo110)
Read wchar_t from stream
 
Hello, I'm trying to read a wchar_t from cin but I always have the following compiler error "binary '>>' : no operator found which takes a right-hand operand o...
[6 replies] Last: From MSDN: wfstream A type basic_fstream specialized on wchar_t ... (by Mitsakos)
by sulfur
random no for floating no:
 
Guys plz help me out to calculate random floatin number for a specified range...!!
[2 replies] Last: Ok. Typically you do rand() and mod it by the number you want as th... (by Zaita)
The design and evolution of C++
 
Hi, This is the paragraph from "Design and evolution of C++" by Bjarne Stroustrup. First let me tell you that this is a wonderful book. Can "Several key d...
[10 replies] Last: OO is one of a few good development methodologies. It's surely not the... (by Zaita)
Memory Safe?
 
Hi all, I was just wondering weather you could tell me weather this function that i have wrote will be memory safe: char* fnPipeCommand(const char* comman...
[10 replies] Last: I have read this thread with bewilderment. What the hell happened her... (by bnbertha)
Instantiating the objetcs
 
friends thnaks a lot for previous help, now i have another problem :) now that i have a class(say for eg:abc), the constructor of the class takes in the par...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
Question???
 
Hey, This is what the Function suppose to do??? But I dont understand few things. For instance, what is the purpose of "char filename[MAX_FILEMANE_LENGTH+1]". ...
[2 replies] Last: so setw will allow the filename to be certain amount of characters????... (by desichor7)
List Iterator
 
Thanks a lot.
[5 replies] Last: function1() is a member function of outer::inner2, which is private. Y... (by weaknessforcats)
C++ String Reverse Question
 
I was given a program to think about: To read in a 4 word sentence from the keyboard then display it backwards (in terms of the words, not the letters) I th...
[5 replies] Last: Sorry aakanaar , my post was directed at Simo110 who seem to have g... (by guestgulkan)
System Pause
 
Hey, whenever I write a C++ program it flashes the window for 1 second then it goes away. When i add SYSTEM("PAUSE") at the end it starts to work but I don't wa...
[17 replies] Last: You can repeat the program until the user prompts to close it. Say for... (by mikeb570)
July 2008 Pages: 1... 5678910
  Archived months: [jun2008] [aug2008]

This is an archived page. To post a new message, go to the current page.