Beginners - June 2012 (Page 43)

[Win32 api] Can't close dialog window
 
Hello, I've come accross this problem several times and I have no idea how to fix this... simply, when I click on "X", the dialog won't close (dialog is my m...
[7 replies] Last: finally an answer, thanks! it's working, never thought about this lol ... (by mekkatorqu)
Datatypes
 
Okay,for example if you have a program to just add two numbers that the user enters. Would it be wise to have the datatypes as doubles? That way it can handle ...
[10 replies] Last: You could do: int x = static_cast<int>(num1); With the modulus, I w... (by Volatile Pulse)
by Mursik
Problem: how to add PATH
 
Hello! I have a problem. I'm trying to install GTK+ 2.22 (windows 64 bit). It sais this: To use it, create some empty folder like c:\opt\gtk . Using eit...
[2 replies] Last: Look here: http://www.computerhope.com/issues/ch000549.htm (by coder777)
Can't understand this code
 
Hi people, please help me I have this code which I need to convert it dlx machine code char pegGet(char peg) { int i= 2; while( peg !=0 && peg !=- ){ i++ } ...
[1 reply] : It is a syntax error. The code shall noot be compiled. Maybe the state... (by vlad from moscow)
Point object (1,2)
 
Hi I am new in C++ and I have to make an assignment and I am a bit lost with what they ask. The 3 previous assignments were not a problem because I understo...
[20 replies] Last: Thanks a lot all, I finally finished it (by commodoreevic)
Can't figure out what's wrong, help! :^(
 
My program is running, but it's giving me results and information that's not what I wanted. I can't seem to get this program to calculate the correct GPA or To...
[1 reply] : In your function Process_Data() you don't use int &TotU, float &Tot... (by coder777)
by jhiro
help please!
 
I'm trying to get my information from the file stored in my array and printed in an outputfile, but when i open up my output file, it is blank. please help. ...
[4 replies] Last: void save_file(student list , int num_students) { ofstream fout; str... (by jhiro)
A question about c
 
I know this forum is about C++ but I have a question about 'C'. I need to write a function to open a file (easy in c++) however I have no idea how to since I ...
[5 replies] Last: This is just a scope issue. A file opened in main, will be local to ma... (by ResidentBiscuit)
Graphics
 
So I'm now familiar with C++ concepts however I'm unsure how to start programming graphics. None of my books cover this; I don't know why! So which is the easie...
[19 replies] Last: Allegro is the easiest. adpad309 wrote: Sure...if you have an ... (by xcalibur0645)
Help What is wrong with my program
 
I need to get this program running for a class for some reason its not working include <iostream.h> Main() } { char name [bubba joe] char...
[2 replies] Last: Better use this code instead: #include <iostream> #include <cmath> u... (by xcalibur0645)
Stuck and Need Guidance :^(
 
When I run my program I get the following two errors: 1. IntelliSense: more than one instance of overloaded function "Process_Data" matches the argument li...
[3 replies] Last: Thanks for the help :^) (by Freckles1224)
A simple answer to "Why is system() discouraged?"
 
I do not claim to be anything but a beginner programmer, but I believe that I have stumbled upon an example of how system() can slow down a program. In an infi...
[1 reply] : http://www.cplusplus.com/forum/articles/11153/ It basically explains ... (by firedraco)
cin.getline()?
 
I saw a video about C++ programming today, and I saw the user input the code cin.get() instead of the usual cin >> input; I heard that code was used so y...
[3 replies] Last: cin.getline() works similarly, but it uses a char* and is more prone t... (by firedraco)
How to include <atomic> in C++ on Linux?
 
I am trying to include atomic in my C++ pthread program. #include <atomic> But, i got error: error: atomic: No such file or directory I tried : #i...
[7 replies] Last: error: cannot write to %sourcedir /usr/src/redhat/SOURCES Change sou... (by ne555)
Ideas for my program
 
I am currently writing a program called Math Cheater's Dream, which basically has many functions that normal calculators do't have. Does anyone have more ideas ...
[6 replies] Last: Blueberry: I don't follow. To restate, a type that can hold a numb... (by firedraco)
3 Function Code not working
 
Hi all. I'm suppose to be writing a code that consists of three functions. The first function fills an array with temperatures inputted by the user. The nex...
[6 replies] Last: Sorry for taking so long to respond. That worked like a charm. I went... (by tycoontipper)
very cherry quick question
 
Hey guys! sup@ quick question. why if i run this without the int _tmain (int argc.....) etc it wont work? secondly i have to put like 4 or 5 cin.get() at the...
[15 replies] Last: And I completely agree with that logic, but how does a GNU compiler do... (by Volatile Pulse)
'square' was not declared in this scope??
 
/*I'm learning C++ through the use of Stroustrup's Programming: Principles and Practice Using C++. I've ran into a few problems that have me wondering whether t...
[7 replies] Last: @firedraco I completely agree with you, but since he had it in his sec... (by Volatile Pulse)
by fayska
access protected menbers in derived classes
 
I'm sorry, guys if i cann't post my code it's written in my language, but the problem looks like this i have 5 classes, two base and the others derive those two...
[3 replies] Last: If you want to keep the members protected then you need to create acc... (by ne555)
Errors not running
 
I got this code sent to me, and am working with a friend to see what the problem is. We can't seem to run it at all the even try to find the problems with its e...
[12 replies] Last: I think it all working ok now, but I'm sure I'll find something to cha... (by CPPRaven)
June 2012 Pages: 1... 4142434445... 51
  Archived months: [may2012] [jul2012]

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