General C++ Programming - September 2013 (Page 24)

Access 2010 Programming
 
Hello, I'm learning the basics on how to interface VC++ with Microsoft Access 2010. This website: http://msdn.microsoft.com/en-us/library/ff965871.aspx#DataP...
[1 reply] : Got it. Line 19 should be pRS->Fields->Item[(long)1]->Value = (_varia... (by dominicanjb)
how to use functions.
 
ok i got my program to work but i can't figure out how to make it to come out right. the user can input the numbers 1-10 but when they enter a low or high n...
[2 replies] Last: oh its the guessing, i tired it is fun . i also twek it a little bit ... (by mitchsoje20)
Code::Blocks Class Problem
 
So, I made two classes, in separate files, Enemy and Player. I included "Enemy.h" in Player.h and "Player.h" in Enemy.h. Then I declare void attack(Enemy) in Pl...
[2 replies] Last: Oh thanks! This problem has been stalling me for quite a while! (by TsarLenin)
Print a color console screen
 
I've created a calendar program that displays a full year calendar on screen, and I would like to be able to send the screen output to the printer, if I press ,...
[8 replies] Last: What? How did you learn to speak English? To drive a car? To do math?... (by Duthomhas)
Struct into classes
 
Im trying to define a object type called HealthProfile class for a person. A HealthProfile object and it has the following members a struct containing a perso...
[2 replies] Last: whats with the random brace? That's not a random brace, it's the sta... (by MikeyBoy)
Need help completing this number guessing game...
 
Everything seems to work but the calculations do seem to be doing their job in the else if statements. Am I doing this wrong? I think I have the right idea, but...
[3 replies] Last: What is your code now? And please use code tags when you post it. ;)... (by Mats)
by Daleth
Freeing memory without destructing
 
Say we have this crude memory pool that is on the heap: char* mpool = (char*)malloc(sizeof(char) * 4096); And we used placement new to construct a c...
[4 replies] Last: Oh, I'm still new to placement new, so I didn't know you could use it ... (by Daleth)
by Toshen
Get user name and surname in Active Directory
 
I have a logined user and my running program as system process (not user process). I want to get user name and surname from AD. 1. GetUserName() dont useful be...
[1 reply] : any idea? (by Toshen)
boost::bind, boost::function
 
Hello, I am not so experienced in STL/Boost and I want to use this code: http://stackoverflow.com/a/11167563 to sort structures. However, my compiler writes ...
[4 replies] Last: thank you very much - it did not even come to my mind that fault could... (by blizzard)
Program not completely doing its job
 
For my class we were suppose to create a small program outputting the users Month/Day/Year.Program then Validates if the user inputs the correct information (ie...
[4 replies] Last: You were right randisking haha. My logic at that point was most likely... (by Shuruki)
I need a little help!! Please Please Please??
 
I'm doing a program for school. the program is a gradebook that uses structure which gets it's data from a file then displays everything needed. I tried doin...
[2 replies] Last: no hablo ingles, pero fíjese si funciona #include <iostream> #includ... (by flony1)
by Ceset
cpu usage
 
hi guys. i was working on a pong game. and i thought we have a fps limit. so why not a loop per second limit. since it is a pong game no input is needed just m...
[4 replies] Last: Every program should sleep/wait/delay unless it needs 100% CPU time. ... (by Disch)
Acces of the private data of base class without acces modifier
 
if we don't provide the acces modifiers for base class and we need to manipulate the private data of base class in derived class. Is there anyway to acces the ...
[16 replies] Last: So what's this mean? http://lmgtfy.com/?q=strict+aliasing EDIT: ... (by MikeyBoy)
Play aga`in loop broken
 
OK, so the program is working minus the play again loop. I even tried a goto statement for it but no luck. Basically what its doing is after the game runs its c...
[1 reply] : Take out the goto statements. It's a very bad way to program. This is ... (by Mats)
Random Card Generator HELP
 
Heres my code, what I want to do is make it repeat so it shows a different card under the other one every time the user clicks return. The cards cannot repeat a...
[4 replies] Last: I would but it appears that I have been Ninja'd. With proper enumerati... (by Computergeek01)
by tn6343
pause(); function
 
I have recently used pause(); function. Can anyone tell me which library contains this function and from where can i read about this library?
[3 replies] Last: [quote=man pause]NAME pause - suspend the thread until a signal... (by ne555)
truck num and weight using array ( BEGINNER PLS HELP)
 
i got the sorta of the being im confuse if i should use a switch or a loop the display should look like this: Please enter the truck number and weight: 1 ...
[5 replies] Last: Your welcome (by SamuelAdams)
C++ Refresher
 
Hey guys! I'm taking my fourth year of programming classes this year. My first year was c++ and then one java and one html/php/java. This year is C++ and I...
[1 reply] : The reason to write programs is to make life easier, think of somethin... (by SamuelAdams)
What data type that will read in letters & numbers form fstream??
 
Hello; would someone please let me know what data_type will read in a string of letters mixed with numbers using fstream :); thanks;
[1 reply] : std::string ... A string can hold both letters and numbers. Though if... (by closed account 3qX21hU5)
rubix game
 
Can any one help me to solve this. About the game? Consider a modified 2D version of the rubik’s cube game. It can be any nxn block. You can rotate a ro...
[3 replies] Last: Let's see some code. (by Mats)
September 2013 Pages: 1... 2223242526... 36
  Archived months: [aug2013] [oct2013]

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