Beginners - December 2009 (Page 8)

someone please edit my program
 
i am planning to make a game called spot the not. the problem is i don't know how to have a timer and high score on it. i already surf the net but i don't kno...
[14 replies] Last: .... where did I put that shotgun.... lol :P (by Mythios)
by rhcr56
manipulating CSV files in C++
 
I am trying to write a program that will take a CSV file in excel and output a certain number of lines. After searching several sites, I am frustrated as to ho...
[3 replies] Last: I tried a few different things with .csv files in C and C++ - See if t... (by Mythios)
Returning an array
 
Guess this question's been asked a billion times, but since this forum has a strange search engine I can't find anything about it. Anyways, to the question: ...
[10 replies] Last: That wasn't your original question. Your question was and I quote: ... (by closed account S6k9GNh0)
initializing a global const array of objects with file data
 
Im creating a c++ console RPG and would like to have a global constant array of objects that stores all the information for the items that the game will use. Th...
[5 replies] Last: There's a possible buffer overflow on line 26. There's no way of knowi... (by helios)
how to make a basic calculator
 
I know you guys are gonna laugh but this is all I could come up with. it succeeded but doesn't work though. I have a feeling i need to put in a loop in here but...
[4 replies] Last: Here is something I just wrote up. Basicly type a number, press enter,... (by closed account y8h7M4Gy)
Enumeraters?
 
In a C++ book I'm reading it has an example where an enumeration is used to return an error report of SUCCESS or ERROR in a function. Can anyone explain to me w...
[3 replies] Last: Thanks both of you, I understand now. (by Warrior2089)
by patman
Why do i have this output?
 
Hi! i write the following code and as an output i have "no" "yes".I wonder why i don't have "yes" "yes" instead?What is going on with zero value? x=0;...
[5 replies] Last: ahhh ok, i reread the original post ,,, you are right, the x=5 threw m... (by BettyBoopTS)
struct in another .cpp file
 
So, I have a big list of struct objects that I don't want to put in main.cpp but I want to be able to use them in it. Is there an easy way of creating all th...
[6 replies] Last: I forget to put ';' after my classes/structs every so often too...<_<; (by firedraco)
illegal indirection with pointers to structure
 
Hey, The following program must ask user to enter number of contributors, then using the dynamic array of structures store the users data about each of the c...
[2 replies] Last: Alright, thanks. (by neshtak)
quickest way to initiialize a int array to 0?
 
Hi, have class A with int array ; in const of A, try to initialize array as all 0, as A() { for(int i =0; i < 100;i++) array = 0; } is there ...
[10 replies] Last: thank you all for the input. I got more than what I want :). really ap... (by chrisben)
++ symbols
 
What does ++ signify? Would 24++ be 25 or 26?
[9 replies] Last: thanks for the explanations, it cleared things up for me, i stand corr... (by BettyBoopTS)
Output Error!
 
PLEASE HELP!!! This is the method I had written for a game data program I'm working on. OpponentName and HomeScore are private variables in game.cpp (the cod...
[6 replies] Last: for execution I don't think this would make any difference I'd guesst... (by helios)
Problem converting a string to an int with stringstream
 
I am having trouble converting a string to an integer with istreamstream. I've researched it, tried several different methods, and none seem to work. When I go ...
[4 replies] Last: It's an Xcode issue: http://stackoverflow.com/questions/1377038/string... (by Bazzy)
by ad1234
Handling .csv to array
 
What I need to do is read in the following (from .csv), calculate something [float estimate] using the numbers (before %) at the end of the string: 2010,9265...
[5 replies] Last: Is this something that has to be done in C++? For example, if you are... (by moorecm)
function corrections and linking guidance
 
this program is currently part of my assignment. # include <stdio.h> # include <stdlib.h> int set (int ff_option = 1, int set_option = 1) { float se...
[1 reply] : You are missing a break; in case 1. (by jsmith)
Whats wrong with my standard deviation code?
 
#include <iostream> #include <fstream> #include <cmath> using namespace std; int main() { double x; ifstream Input; ofstream Ou...
[2 replies] Last: Then there's the fact that your current equation is sqrt((( count * p... (by wasabi)
setw
 
I'm confused on this. if string kitty = "Flat Cat" cout << setw(10) << kitty << endl; How should this turn out?
[2 replies] Last: as described above the format is right justified unless a minus symbol... (by gcampton)
Why does passing by reference work?
 
In a C++ book I'm reading it is teaching how passing variables into a function by reference will change their value in main , instead of only in the function. ...
[2 replies] Last: That was actually really nice advice. After doing more research I've f... (by Warrior2089)
What program.
 
What program do you use to run C++?
[2 replies] Last: Thanks. (by closed account y8h7M4Gy)
Code Check Please. Syntax Errors
 
I'm completely new to programming of any sort, and am halfway through my second day of trying to learn C++ using a beginners guide that Microsoft's Visual C++ 2...
[6 replies] Last: Hrm... I just tried to increment a floating point and I don't get an e... (by Disch)
December 2009 Pages: 1... 678910... 23
  Archived months: [nov2009] [jan2010]

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