Beginners - March 2012 (Page 32)

My program exits immediatly.
 
When i build and execute my program and it does what its supposed to do it just shuts down. What do i need to add to my code to make it not shut down right away
[2 replies] Last: ask for input before you exit your main loop int wait; cin >> wait; ... (by jorz)
tic tac toe program review
 
Hi, I recently wrote this tic tac toe program, and it does everything I want it to do, but I was wondering if there were any more efficient tactics I could'v...
[no replies]
I need a little help with a C++ program
 
I have a multi class program that manually inputs information from users. However it currently stores information for one person at a time. I need to make a vec...
[no replies]
vector iterators
 
I have the following program: #include <iostream> #include <iterator> #include <fstream> #include <vector> #include <algorithm> #include <string> ...
[1 reply] : Probably because the push_back in the first case caused an internal ... (by shacktar)
What's wrong with my function?
 
Can someone tell me what I'm doing wrong with this program. I can't see why it doesn't like this line: "cout << seconds << "\t \t" << fallingDistance(sec...
[2 replies] Last: It may be the lazy way out but I've been wracking my brain too long on... (by pstchnt)
by cdf
expected primary-expression before 'char'
 
EDITED: I am getting the error expected primary-expression before "]" token for this constructor: con::con(char data ){do( data );} where con is ...
[2 replies] Last: Instead, you should have this: con::con(char data ){ do ( data );} /... (by shacktar)
Mode of an array
 
Hello, i have to create an array and then find the mode, fairly simple it would seem xD this code is extremely rough, i'm just looking for some guidance ...
[8 replies] Last: #include <iostream> int main() { const int SIZE = 100 ; in... (by cire)
Text file loader bytes to readable chars
 
Hi I wrote long time ago a CSV file loader which basically reads each line in text file and splits the string into columns (smaller strings) on each occurence o...
[no replies]
Finding files going through a loop
 
Hi, I have set up a loop which I think should output the file each time it is found. E.g using the code below, I think it should be going through findwor...
[no replies]
by Nexus
Hello all.
 
Write a program that a C++ program that can be used to determine grades at the end of the semester. For each student, who is identified by an integer number bet...
[3 replies] Last: I am not majoring in C++ I shoulda majored in C++ :( Anywho, all ... (by ResidentBiscuit)
Changing the Color of text
 
Hello, I'm currently doing a project and I need a way to color my console text temporarily, I need to create a certain part of my text a certain color, t...
[1 reply] : call GetConsoleWindow() to get a handle to the console then call SetCo... (by Texan40)
I'm not sure how to export my code.
 
Hey i just started learning c++ and I'm currently useing codeblocks i recently wrote this code and built it it works fine. My problem is that i want to open my ...
[2 replies] Last: Ok thanks just found itX) (by hulibarri)
The mind behind the logic?
 
I am a straight A student with the exception of this c++ class. I would like to resolve this. I only have to take this one class in computer science however I...
[9 replies] Last: I've found if I get hung up on a logical issue for awhile, I'll go tak... (by ResidentBiscuit)
Can't load project
 
I am running Windows 7 64 and I am use Visual C++ 2010 Express and when I try and load a project I get the error: The C++ project "MyProject" is targeting ".NE...
[6 replies] Last: After a quick google search, I've ran into many possible causes and so... (by ResidentBiscuit)
how to approach this problem?
 
does anyone know how to approach this problem? One of the principal stumbling blocks in the early development of mathematics was the notation used for number...
[14 replies] Last: you need a variable to be the total of the roman numerals, so it would... (by ui uiho)
Enumeration
 
I can't get, why this can be useful. Because, you can't use Strings. You just adding titles for numbers. If that's not true, correct me.
[1 reply] : It really just makes your code more readable, and removes the "magic n... (by ResidentBiscuit)
unordered_set requierments
 
What operators my classes should have for this container? Ok.I added == operator: #include <iostream> #include <unordered_set> #include <limits> class Foo {...
[1 reply] : You have to provide a hash function. struct HashFoo { std::size_t o... (by Peter87)
Looking for a SFML tutorial site or book.
 
Im trying to learn SFML, but the tutorials on the site teach very little, and i cant seem to find any other tutorials. Does anyone know of some good books i can...
[10 replies] Last: This tutorial ( http://www.gamefromscratch.com/page/Game-From-Scratch-... (by Serapth)
by zeion
How to instantiate objects from within another class constructor?
 
Hi, I'm trying to instantiate an object from the constructor of another object, but keep getting this error: error: no matching function for call to 'test...
[3 replies] Last: What if I need to instantiate multiple objects in the constructor? edi... (by zeion)
by DeitY
Help
 
Hello,i have an project called "podbot" ,they are bot players for counter strike 1.6.problem is that they dont have "authid" steam id added to them,only writes ...
[no replies]
March 2012 Pages: 1... 3031323334... 71
  Archived months: [feb2012] [apr2012]

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