Beginners - October 2010 (Page 23)

by Yitzu
Refusing to change?
 
Ok guys, so... im beginning to use this language and i have noticed that sometimes after u write a code, and then u write another one, when u run the program, i...
[3 replies] Last: Multiple file projects are irrelevant, considering the example code he... (by Kyon)
creating a serie of variables with "for" loop
 
Hi, very simple question: I have a variable char Apple; Now I want also Apple1, Apple2, .... Apple150 or whatever. Is there a way to do: ...
[2 replies] Last: What you're looking for is a map: #include <map> [...] map<strin... (by Athar)
by Draps
Hello
 
Hello everyone, I am Draps, i am new to c++ and i figured best way to learn a new language is in a community. I am currently 18 years old, hoping to study so...
[8 replies] Last: @Mazd That s' quite true but i when i got it i wished i had bought it... (by Mike Sandy)
Inputting from a file with alot of data
 
Hey i have to create a video store program for college. Im using a struct to store all data. This is my problem. I have to use a file, the file needs to hav...
[15 replies] Last: u were right, changed that and it worked, didnt think it would effect ... (by sighter)
problem in array assigment
 
#include <iostream> using namespace std; main(){ char datan ={'0','0','6','0','7','b','4','5'}; unsigned char data ={0}; d...
[5 replies] Last: how about #include <iostream> using namespace std; main(){ c... (by hamsterman)
你们好!
 
我来自中国很高兴认识大家! I am from China,I am glad to meet everybody here! I am an ACMer, is there any ACMers here?
[14 replies] Last: welcome! (by myforzhuce)
Can i convert from class to struct or the oposite?
 
Hello everyone,i was wondering if i could create a class object with specific elements and in the same time a struct object with the same elements and then to ...
[3 replies] Last: got it,thanks (by kikirikou)
by Eazy E
for loop inside if else??
 
I'm just starting out with working with C++ and I was trying out stuff with 'if/else' and 'for' loop statements. I'm trying to use the 'for' statement as a wa...
[1 reply] : wow. figured it out. feel like an idiot - just changed the "(yesno<... (by Eazy E)
reading in one word
 
I need to read in the first word of a line and process. then advance to the next number and process till end of line. I am going to use a endl loop and think I ...
[1 reply] : I would suggest reading in a string for the word even though i'm agai... (by sargon94)
passing arrays through a function
 
Hey folks. I'm having a hard time grasping how functions work. I am supposed to pass the parallel arrays through a function. I can get the program to run just a...
[2 replies] Last: now whats the job of getdata function? question have studied structer... (by ARWA)
Making Change
 
Well I'm supposed write a program that makes change using his kind of outline. The instructions are at "http://haruspex.net/csc1253/as4-5.pdf" assignment 5. Ca...
[1 reply] : Ive updated it to where I'm currently at. Could anyone help me out? (by nflman124)
Debug
 
When I debug my program it only stays there for a second an then vanishes. Can anyone tell me how to make it say press enter to continue? Thanks
[1 reply] : There's a whole thread about this that's stickied: http://cplusplus... (by Disch)
debugging!!!
 
Im trying to debug this program but when i hit debug and type in a value it closes out after i put a number in how do check what the results are if it closes th...
[1 reply] : sorry for double post. (by FlamingDRagon)
debugging!!!
 
Im trying to debug this program but when i hit debug and type in a value it closes out after i put a number in how do check what the results are if it closes th...
[no replies]
switch case stament with loops
 
hello, my program is running a case/switch statement, I want to be able to make it loops and ask the user to either continue press yes/no. # include <i...
[10 replies] Last: Got it, thanks Albatross, you are the best :-) (by curioustoknow)
Beginner, need guidence in this program
 
Hello. My task is to take a user's input and output that value in hours:minutes:seconds form. This is what I have so far. #include <iostream> using namespac...
[6 replies] Last: Ahhhhh I got it now. Thanks for your help!! (by trouty323)
open output file based on text in input file
 
I wrote some code to parse a csv file and change all commas to spaces before writing to an output file. Now I want to add some code that will write output to a ...
[no replies]
Clarification of when to use . , *, ->
 
I'm studying for a test in my c++ data structures class. I'm still a little confused about what the following operators do (book doesn't give a clear explanatio...
[2 replies] Last: thx, i finally got this down (by melanie93)
Why do i have run time error?
 
Hello everyone. I wrote the following code where i pass by reference a class object in a friend function.Tha function just pass a value to a variable of the cl...
[2 replies] Last: thanks mate! (by kikirikou)
trying to condense my notes: int main(int argc, char *argv[])
 
Hello, I'm trying to condense my notes into layman's terms. I'm having difficulty with int main(int argc, char *argv ) . If you can assist me with this, I woul...
[2 replies] Last: Thank you for correcting my return statement. This is where I lite... (by hexilum)
October 2010 Pages: 1... 2122232425... 42
  Archived months: [sep2010] [nov2010]

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