General C++ Programming (Page 30)

Getting vector with a pointer
 
I really don't want to use a pointer here, but I think I have to. My problem is that I have two clas...
[3 replies] Last: I solved it using a method I am using to pass another object around to... (by wh1t3crayon)
by judo11
ignoring problem in C++
 
This is just the portion of my program. This program displays Not Found even if the id number is fou...
[1 reply] : Your snipped is not complete, so it's hard to follow your operations. ... (by hellhound)
Dynamic Allocation for Arrays
 
I need help figuring out the code to allocate the memory for my arrays in the create array function....
[1 reply] : Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
by SaQi
How to move a ghost in PacMan game randomly around the maze?
 
I have tried rand() for x and y positions of ghost but does not work. it moves but not randomly it f...
[2 replies] Last: I have done it but still it follows the same path :( (by SaQi)
Sort Function won't work
 
#include <iostream> #include <iomanip> #include <cstdlib> #include <string> #include <ctime> #...
[1 reply] : while(check == true) { if (n == p) { n = 0; m... (by Ispil)
Can I have a class member variable that points to a function in another class?
 
The goal to create a button class that holds the function that is supposed to be invoked in another ...
[1 reply] : > The goal to create a button class that holds the function > that is... (by JLBorges)
by JDS
Compiler help
 
Help please I think my code is right but i get these errors in my client (int main) file 1>------...
[3 replies] Last: You see all those functions that it is giving you an error for? The co... (by Ispil)
Calculating Change
 
I'm new to C++ and am having trouble with programming the output of the change after finding the dif...
[1 reply] : Stop. Just look it up, this is like one of the most highest homework q... (by poteto)
Issues with forwarding of variadics
 
Based on this thread http://www.cplusplus.com/forum/general/143019/ I could realize my delegate fact...
[4 replies] Last: Great job! Thanks again for this perfect advise! (by hellhound)
by judo11
How to save and delete some word in the text file in C++ without resetting it?
 
Every time I open my program the text file becomes empty and how can I save all the inputs in the te...
[no replies]
by judo11
How to trap integer inputs in C++?
 
This is just a portion of my program and I want to trap the integer inputs using while loop. cout<...
[1 reply] : Here's an example: #include <iostream> #include <string> #include <c... (by m4ster r0shi)
Can someone help me with my code please?
 
I am a beginner in C++ and I am getting an error doing my project and its driving me nuts! There ma...
[14 replies] Last: /* 9/28/2014 Intro to Programming Project 2: BMI Calculator This pro... (by jasonwynn10)
If/else help
 
I have the following if/else I am having trouble with, it is displaying both the if and the else and...
[4 replies] Last: you do not have to double post: http://www.cplusplus.com/forum/general... (by jasonwynn10)
NEED HELP MY CODE WONT WORK!
 
Why wont my program work? Can someone tell me what I did wrong? Design a computer programming ...
[2 replies] Last: #include <iostream> #include <limits> using namespace std; int main... (by jasonwynn10)
How do i get this pattern using a nested for loop in c++?
 
this is the pattern. (ignore dots) 0 .1 ..2 ...3 this is what i have so far in...
[8 replies] Last: you splelled my username wrong @giblit (by jasonwynn10)
Question about dynamic arrays HOMEWORK PROBLEM
 
I have to do all the comments that says to do.. However I have no idea how to start the question....
[no replies]
Help with Mips assembly language
 
I am trying to do a simple for loop that computes sum of a certain number of integers and then outpu...
[1 reply] : thought it might be because I didnt add j loop to the end of the loop ... (by byronflds)
by anduhd
C++ exe code keeps crashing
 
Hello so I have this program that for now does nothing that keeps ignores the cin.get(code,7); , ter...
[no replies]
Issue with string and spaces
 
I have the following code in my program and it is not working as intended. string getName = ""; ...
[1 reply] : I have also tried this with getline(cin, getName); on line 9 instead ... (by cire)
Pages: 1... 2829303132... 58
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.