Beginners - October 2013 (Page 63)

Help with pointers and strings
 
So im having trouble with pointers and strings. Im writing a program that asks a user to input a string then should count the string. I can do that but it also ...
[1 reply] : What is line 14 for? You should remove it, along with removing line 21... (by LB)
by Vigii
program not running while using classes
 
I have used classes for programming my problem. I would like to know why my program not works. It works fine until line number 73. I found there is somethin...
[6 replies] Last: Hi Chervil, Thank you for your help. you resolved my issues. (by Vigii)
Name program
 
I am supposed to write a code that instructs you to input your name. You then receive a response Your first name is, Your last name is. Example Input your n...
[4 replies] Last: Thank you again Yanson for your help. The strncpy makes more sense aft... (by Gothicknot13)
do while loop
 
I know my do while loop is in the wrong place, but I can't seem to find the right spot for it. It won't let me loop it. Can someone tell me where it should go a...
[1 reply] : - Delete lines 1, 2, 22 and 23. - Line 67: y and Y are characters so... (by condor)
Clearing cin
 
My program takes in 3 integers and finds the middle, then 3 floating point values and finds the middle, then 3 characters and finds the middle. The middle is fo...
[3 replies] Last: Got it. Thanks. (by ccwtree11)
a little help
 
I managed to fix most problems. But Im still having issues with this. When I run the program both if/else is outputted. I tried moving brackets, changing if sta...
[4 replies] Last: [quote=Tanya122] Thanks. I thought putting a loop in but I'm stuck how... (by TheIdeasMan)
Selectively reading from file into an array
 
Hello. Would anyone please give me a hint how to solve my problem? I'm reading a file into a char array. On the first line in the text file there are two num...
[6 replies] Last: :-) Thank you. (by Stremik)
by Leewiz
Game of Life - C++ help
 
I'm in the first foundations of CS class in university so please be patient with me :) I can't seem to figure out why this code is outputting gibberish symbo...
[2 replies] Last: Worked! ThanksSoMuch! (by Leewiz)
undeclared identifier
 
I keep getting this error and I know it is a simple problem with my syntax but I cant find a good answer to what I am missing. If anyone could help me out it wo...
[5 replies] Last: +1 great thats awesome, I was just starting to google why strcmp() was... (by chicago77)
ostream operator overloading
 
I am not sure of the syntax for ostream operator overloading. My goal is for the object when printed, for File.tokens to be displayed in specific format. #...
[3 replies] Last: ah, ok thanks a lot. I did not know that. For google searches later, ... (by metulburr)
Input Celsius and convert it to Farenheit
 
hey guys, Im new to C++. I've tried to solve the problem but no luck. My code will be shown below. Please advice me where I went wrong. Thanks Write a progra...
[9 replies] Last: Next time place your code in [ code] blocks. And this should make you... (by vasilenko93)
Strange error Iterating through vector
 
Hi, this is just a part of a program that I'm working on. I stopped because I've come across an error I've never seen before. The first input from the console...
[4 replies] Last: OOHHHHH wow that's very cool. Thanks a lot! And I'm not sure why I mi... (by dheredhere)
need help making change calculator
 
Ok, I am fairly new to C++ programming and I need to make a program that asks the user to cout<<"Enter an of change (in cents): "; and then the program will c...
[10 replies] Last: Thanks booradley60! That solved my carry over problem, I've never use... (by bknick24)
Switch - Variables not being initialized.
 
Hello programmers, I am new to c++ and I'm currently taking a programming class at school. I have this problem where I'm using multiple indented switch to ca...
[1 reply] : I am currently unable to access a computer, but I just thought of some... (by Annatar)
Isolating parameters of an array, palindrome
 
So i have pretty much figured out how to do this code through a series of trial and error and professor assistance. But im stuck on this last part. For some rea...
[4 replies] Last: NEVER MIND!!! YOUR THE MAN! But for informational purposes, could you ... (by andyman105070)
Cout-ing on a new line in a text file
 
Alrite, so I have a text file. Now when I run the program, it displays two sets of output,the problem is when I try and write these outputs to the text file...
[2 replies] Last: Are you talking about redirecting the output of your program (which is... (by andywestken)
pythons pickle/shelve equivalent in c++
 
I was looking for a method equivalent to pythons shelve module or pickle module for storing objects for later use. I am not really sure what to even google.
[1 reply] : google "Serialization". There are several libs available. I think bo... (by Disch)
Multiple Inheritance
 
ALrite, I need to inherit two classes class One{ //Body }; class Two: public One{ //body }; class Three: public One // and the class Two...
[5 replies] Last: a) then if you could post your code b) remove the :public One of class... (by closed account Dy7SLyTq)
Error: identifier " " is undefined.
 
I am having one error with this. Error: identifier "deleteNode" is undefined. It's an Intellisense error at the Line: 177 The line is: If(!deleteNode(...
[11 replies] Last: yeah, i changed that, I had realized it was in there (by elite zero)
General Question
 
Can somebody explain to me what are the elements of c++ program?
[1 reply] : Preprocessor directives, functions, classes, structures, enumerations,... (by Josue Molina)
October 2013 Pages: 1... 6162636465... 86
  Archived months: [sep2013] [nov2013]

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