General C++ Programming - March 2012 (Page 40)

Clicking and console
 
I've seen some apps made in console, that used mouse clicks. How could I do that in my console app? Is there any simple code just to get the x/y coordinate o...
[5 replies] Last: ok, thanks for letting me know! (by tofiffe)
program shall allow users to choose a desired ticket and calculate the price.
 
// This program shall allow users to choose a desired ticket and calculate the price. // Jimmy Yen #include <iostream> #include <iomanip> #include <str...
[3 replies] Last: If you want to use a function to change a value, you need to pass that... (by Moschops)
by mono
Destructor is called twice.
 
I have two classes class A and class B class A let class B be a friend When I call the destructor of the class B I also call the destructor of the class A, ...
[6 replies] Last: ok I got it. Thank you. (by mono)
what is the mistake.
 
Please tell me what is the mistake in this code,it seems correct to me but it is giving some error. #include<iostream> using namespace std; class clock{ ...
[4 replies] Last: Thanks dude. Now Working. (by bond5611)
code check! is my code correct?
 
bool check(int test) { if(test & 0x80000000) return 1;//true signed value else return 0;//not signed value } Would the above code give me...
[4 replies] Last: The test above is checking to see if an int is negative, not signed (a... (by mpauna)
by hannah
C++ Darts Simulation help!
 
Hello, My name is Hannah. I am currently studying game design and am in the middle of being taught C++. We've asked for our first assignment to write da...
[4 replies] Last: you could have a series of x/y coordinates, every time they throw hit ... (by GFreak45)
by mrkhn
Change cursor mfc
 
Hi all, I am trying to change the cursor to wait mode while doing some operations and i can't achieve it... http://support.microsoft.com/kb/131991 So basica...
[1 reply] : You create a CWaitCursor. (by kbw)
Float to HEX and vise versa
 
Can someone point me to a good reference about this please? I've tried google but the results I've gotten keep telling me loop through a *= 16 crap which did n...
[13 replies] Last: Moschops reply was more helpful, anyway I'm almost there with the java... (by awsdert)
Code Improvisation
 
Hi I decided to test my knowledge of C++ by setting out to do a project which allows users to enter in their grades for subjects, then for it to convert these g...
[3 replies] Last: i cringe whenever i come across system("pause") now after reading so m... (by Need4Sleep)
by Das
compile error
 
I am a newbee to c++. My first cpp is failing while compilation. I am executing it on Solaris. My program: #include <iostream> using namespace std; int ...
[4 replies] Last: The code is ok, as far as it goes. You need to sort out your build en... (by kbw)
Math not quite adding up
 
I am trying to output something that looks like this: Drug Name Amount in Inventory Coumadin (1MG) 0 Coumadin (2MG) ...
[10 replies] Last: Nevermind. I figured it out. I had the array set to 19 max, forgetting... (by bertollini)
Net Cafe timer in C++
 
Need help on this, thanks in advance... I have just used the code in capturing the system time but i dont know how to compute it.. from the start time to the en...
[1 reply] : minutes / 60 * rate ? (by Texan40)
plz help
 
Write a switch-case menu based calculator program that has the following features.  Power of a number  Sum of two floats and one int  Factoria...
[2 replies] Last: do it yourself lasy student, we may help only if you do your job (by therockon7throw)
STRINGS
 
how can i develop a C++ application which allows the user to input a character and output a message indicating if the character is a vowel or a consonant. Rem...
[1 reply] : You can do this by thinking carefully about what the code needs to do,... (by Moschops)
Simple string arrays
 
Hi, I'm a newbie in programming and I'm currently writing a simple tool in C. This program scans all the directories in %USERPROFILE%\Documents for *.doc and *...
[2 replies] Last: Thank you. Isn't it C++? If yes, how can I do that in standard C? (by elPicione)
deque implementation from scratch - push_back () question?
 
I'm trying to learn about the deque container. Here is the code that I have written so far. However, looks like the push_back() and the pop_front() functions ar...
[10 replies] Last: Can you show us the errors? There doesn't seem to be anything wrong wi... (by Gaminic)
Passing functions as parameters
 
I am trying to experiment with C++ to make the command prompt function like MatLab or Octave. This is a practice file I've been doing so I could pass functio...
[2 replies] Last: Thank you hamsterman! That was really careless of me to use type doubl... (by CombatJ)
OpenCV in C++ on Visual Studio 2005
 
Hi, I am trying to run a small openCV program in C++. I have downloaded OpenCV library from http://opencv.willowgarage.com/wiki/. Hope I have configured corr...
[no replies]
What does declaration mean?
 
i have seen declaration: class EventHandler { EventHandler(); ~EventHandler(); vituarl void HandleEvent (EventType e, void* sender) = 0; // i don't underst...
[4 replies] Last: I have read "Abstract classes and pure virtual functions" section in w... (by binladenvn88)
How do I initialize a parent pointer?
 
I am having trouble figuring out how to initialize the parent pointer I added to my AVL tree node implementation. My node is as follows: struct AvlNod...
[1 reply] : if( t == NULL ) { if(t->parent == NULL) //Only Chuck... (by ne555)
March 2012 Pages: 1... 3839404142... 49
  Archived months: [feb2012] [apr2012]

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