Beginners - June 2011 (Page 7)

by acorn
question about function formating
 
I have a question about function calls and their format. someone in another thread had this written as a function and i was hoping someone could clear it up for...
[2 replies] Last: ok ive never seen that before in any of the c++ examples ive read. I m... (by acorn)
by lik00
Do/While Loop Not Working
 
First time poster here. I used the search function to find a do/while loop to make my Tic Tac Toe game loop until the user's wanted to quite. I can not get it t...
[5 replies] Last: Now I feel incompetent. It was the 'N' and 'Y' that I was missing. I m... (by lik00)
send Results to email
 
Ok so my question is how would i take the inputs of a user using my program and send to to my email or take their inputs aand write them to a wordpad or notepad...
[6 replies] Last: Wouldn't it be simpler to download from a PHP script that does this fo... (by LB)
by Patrik
World Generator
 
Hai Programers! Im new in c++ I wanna make world generator for my game. Can anyone tell me how to make world generator that will make world like this http://...
[3 replies] Last: Once you've gotten the heightmap technique working, combine it with so... (by LB)
inserting object into array
 
I need some help, below is a insert function that inserts a number into a array. It inserts correctly but deletes the number at the inserted index, can you giv...
[3 replies] Last: i am doing sort of the same thing but mine keeps deleting as well ...i... (by sondowner)
Refreshing the terminal?
 
Hey all, In order to test something I wrote I'd like to see what the program has stored at all times. Essentially, I need the program to display a 2D grid wh...
[2 replies] Last: to see what the program has stored at all times Do you mean what yo... (by MottMan)
Searching a vector and deleting the item
 
I need help writing a piece of code that will search a vector for the object who's mLastName member is the same as the name that the user is searching for. Once...
[17 replies] Last: Idea... #include <iostream> #include <string> #include <algorithm> ... (by Janlan)
Not sure why this isnt working..
 
Let me start off by saying that I just started teaching myself c++ a few days ago. I also just started a college course today actually. With that said... I c...
[5 replies] Last: When you want to repeat some code, use a loop. while( some_condi... (by Disch)
by tonnot
reinterpretcast help . from struct to stream and vice-versa
 
I have a stream to store and retrieve values from - to an structure My_structure { int A; double B; }; put (My_structure &value) { const cha...
[3 replies] Last: You're reinterpret_castint one kind of pointer to another (which can b... (by LB)
Problems with vectors (1,2)
 
Sup guys it's me again. My problem this time is i cant figure out how to make a vector full of objects and pass it to a function. Here is what this part of t...
[21 replies] Last: It is not fixed but whatever ill just come back to it later (by nano511)
can't figure it out
 
i know it can be done but i can't seem to figure out how to convert a binary number into one's complement and then two's. Ideas?
[2 replies] Last: If I understand this correctly, you want to take a set of data (using ... (by Intrexa)
Connect 4 project..complicated!
 
Hello, I am to do a connect 4 program and have the main part done, which I am not to change (instructed by my professor). However, I need help with a statement ...
[6 replies] Last: thanks for your input! (by dougie142)
by tonnot
Different instances of my class uses the same buffer????
 
I have this class , I show you the constructor: W_stream::W_stream{ char mybuffer ; the_stream = new stringstream ; the_stream->rdbuf()->pubsetbuf(myb...
[1 reply] : Your buffer is on the stack. In this case it is the same, if you const... (by hamsterman)
High Scores.
 
I am trying to make a leaderboard type thing in a game I am programming. I want it to be able to take in the player name, score, and date and output them in ord...
[2 replies] Last: Well hello. You could start of by defining your variables.. and sort ... (by A0x0)
by ncpp
iterator through user define type vector
 
I am having a hard time trying to iterator through my own object. I placed my object in vector and able to feed the input into it: See below: My object...
[6 replies] Last: You are welcome. Note that your first attempt didn't work because you ... (by m4ster r0shi)
Accessing a function of an object of type void*
 
Hello, I am creating a doubly-linked list using two classes, one is the MyList class and one the MyListElement class. The MyList class should hold a pointer ...
[2 replies] Last: Thank you, this looks like exactly what I was looking for. It's way mo... (by Germanunkol)
The variable 'newcustomer' is being used without being initialized.
 
#include <iostream> #include <string> #include <iomanip> #include <fstream> #include <cmath> using namespace std; struct first { int customer ; ...
[8 replies] Last: Ohhh okay. Thanks for your help dude. Here's what I did. I initialized... (by RICEFREAK)
cout Returns weird number
 
My problem is that when I use this source code below my answer is always the same weird negative number even though the user inputs something else. Am I missing...
[4 replies] Last: Ok thank you it works perfectly now! (by c0dev0id)
by Jsel
Perplexing error in member function.
 
Here is the member function: You don't have to read all of it. It only concerns line #29 (the outermost numbers) - "moves_till_breed = 3;" 22 void Ant::bre...
[3 replies] Last: I found out that if I move the line "moves_till_breed = 3" outside of ... (by Jsel)
error MSB6006: "cmd.exe" exited with code 3
 
When I attempt to build a solution in MS Visual Studio 2010 I am receiving this error. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon....
[no replies]
June 2011 Pages: 1... 56789... 41
  Archived months: [may2011] [jul2011]

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