General C++ Programming - January 2012 (Page 15)

connected components of an undirected graph
 
i have written a program to find the connected components of an undirected graph with the concept of depth-first search..but there seems to be some problem as t...
[no replies]
Urgent programming project.
 
Hello, i am doing a program for c++. i am making a simple testing program with 20 questions with 4 answers for each question, and when the wrong answer the prog...
[4 replies] Last: THanks codekiddy. :) (by Morgan Huguelet)
Serial port programming c++
 
Hello, I am fairly new to C++ and very new to serial port programming. So new that I am not even 100% sure about my definitions...so to start, from googling ...
[1 reply] : This MSDN article looks pretty good http://msdn.microsoft.com/en-us/li... (by naraku9333)
by Scar45
Weird Compiler Error
 
So I am making a simple hangman game and when I run this it gives me this error: In function `ZSt3minIjERKT_S2_S2_':| |first defined here| In function `ZSt...
[1 reply] : post the code and program output. also use code tags for your code wh... (by codekiddy)
Project Help
 
Create a program that will play a guess-my-number game with the user. It should repeat until the user chooses to quit Create a new source file called guess. ...
[1 reply] : http://www.cplusplus.com/forum/general/59763/ this isn't a homework... (by codekiddy)
Need Help on Project!
 
Create a program that will prompt the user to enter a monthly interest rate, the amount of a monthly deposit and a target value. Then starting with a zero bala...
[1 reply] : It looks that you do not need help on project. reather you need a s... (by codekiddy)
by PLew88
HELP WITH RAND and FACTORIALS PLEASE
 
I am trying to create a simple menu where option 1, squares an integer, option 2 finds the factorial, option 3 gives you a random number and option 9 exits the ...
[4 replies] Last: srand (time(0)); r = rand(); will give u a similar random number o... (by mrmodest)
by PLew88
HELP WITH RAND and FACTORIALS PLEASE
 
I am trying to create a simple menu where option 1, squares an integer, option 2 finds the factorial, option 3 gives you a random number and option 9 exits the ...
[4 replies] Last: 1) I get the same random number every time I use it and You're not c... (by blackcoder41)
Error on pass by reference.
 
I'm having a problem compiling a small piece of code on Borland Turbo C++ 3. I get an error saying i need my parenthesis directly before the variable "vec", ri...
[7 replies] Last: You could probably make that a switch statement along with an 'enum' ... (by CaseMonster)
Need a Direction?
 
Hello, I have been studying programming in my spare time for a while and have finished all my books now. I would not say that I have mastered any specific...
[5 replies] Last: I believe I have to do this using the API so I know I'm limited in wa... (by ausairman)
Trouble with populating a map
 
I'm trying to read in a text file and then populate a map using the data. My code seems to be reading in the data correctly, but it always gets stuck on the lin...
[13 replies] Last: that was it. uninitialized pointer. thanks for all the help! (by car3262)
pointer
 
Does anyone know? int x = 1; int *p = &++x; //ok ! int *q = &x++; //gives an error :O why the first pointer is ok but the second is an error? ...
[3 replies] Last: The compiler is correct. x++ is an rvalue expression, and it's impossi... (by Cubbi)
Where can i find source code exampels?
 
What i'm looking for is source code for an audio converter. Specifically one that converts mp3 to iphone audiobook format (m4b). I'm new to programming and just...
[no replies]
How long till I can create my own game
 
Ive been learning c++ for around 2 months now and how long will it take me to learn it enough so i can learn direct x also how long will it take to learn that e...
[4 replies] Last: I actually suggest you go over to the http://pygame.org website and ge... (by Duthomhas)
movement
 
is it possible to move a character by pressing for example i,j,k,l by using for loops
[9 replies] Last: if you're talking about moving a character inside a console then so: ... (by codekiddy)
Difference btw Array of Char and String in c++?
 
Guys i want to know what is the difference between array of character and string in c++? We have some library functions for string which are applicable to stri...
[2 replies] Last: Want early reply. Want pony. (by Moschops)
How to resolve these linking errors
 
I'm integrating a library (.lib) into a larger project in VS2008. I've got the library linked and the code integrated, however I am having some linking conflic...
[2 replies] Last: Thanks JL. I'll try this in the morning. I know initially I wrote th... (by Stewbond)
by rtom40
Can a Nested Loops Cause Problems
 
Is there a concern with using nested loops?
[3 replies] Last: ceruleus hit the nail on the head. (by xander333)
Exception catch all statement
 
Hey guys. When using catch(...) to handle unexpected exceptions, is there a way to obtain a handle to the exception that was thrown so that I can call the "what...
[2 replies] Last: Similar topic which you may fing useful: http://www.cplusplus.com/f... (by codekiddy)
2 Dynamic arrays (sorting)
 
I have two dynamic arrays for example int*first=new int ; int*second=new int ; In this arrays i have random numbers and i would like to sort in specif...
[6 replies] Last: tnx (by Anon777)
January 2012 Pages: 1... 1314151617... 36
  Archived months: [dec2011] [feb2012]

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