General C++ Programming (Page 2)

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: (by jasonwynn10)
Private Global Variable to Class?
Hey guys I want to make a destructor counter...So it needs to be outside that specific instance of t...
[6 replies] Last: I am not importing the .cpp file twice. I'm importing it zero times. I... (by ResidentBiscuit)
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]
by anhnha
Function passed by pointers or reference
Hi again, I learned basic about C and C++ but my programming skills are bad. I am going to read som...
[10 replies] Last: You can determine this yourself by looking at the function prototype. ... (by Zhuge)
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)
string Pointer and array
#include <iostream> #include <string> using namespace std; void getSize(int&); void getSp...
[no replies]
Help with Keylog Imposible to make.
Hi everybody Im from Argentina. (My english is not the best but i can understand some things at all)...
[3 replies] Last: If somebody dont understand some word, ill try to traslate everything ... (by Citrusl)
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)
by jodytj
C++ Debug Help
// I am getting the following errors when I try to compile my program... /*C:\Users\aurjagui\Deskt...
[6 replies] Last: I have it compiling now but get a run time error. when I compile it: ... (by jodytj)
concatenate two char arrays into single char array..
I am trying to concatenate two words from a file together. ex: "joe" "bob" into "joe bob". I have pr...
[2 replies] Last: @ OP: After you add the forward declarations and the other stuff that ... (by Computergeek01)
Function Chaining?
Can someone point me into the direction of where I can learn how to do something like this: fun...
[9 replies] Last: Is generally a bad idea since the intermediate object would be destro... (by MiiNiPaa)
unable to find out what is wrong
I was trying to solve a problem in In this problem i have to output number of vowels ...
[6 replies] Last: @keskiverto Thank you very much.The code worked perfectly.And i thank ... (by reach devi)
Keeping track of used letters in hangman game
Hi am trying to make a hangman game in c++. Everything works so far but i can't seem to keep track o...
[3 replies] Last: #include <iostream> #include <stdio.h> int main () { char ch; ... (by kemort)
by N10
read and you'll know
guys im making a kind of game ill show you how it looks like in my imaginations :- ...
[4 replies] Last: @ Computergeek01, thanks but i prefer using kbhit(); kbhit(); func... (by N10)
Pages: 1234... 30
  Archived months: [aug2014]

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