Beginners - October 2014 (Page 37)

Passing structure array to function
 
For my homework, I need to create a function called CopyRecords which serves to take the data from a text file and copy it into a structure. I'm just confuse...
[14 replies] Last: Just use some number (by LendraDwi)
Simple String Length Question
 
Why does it only count four characters? How do I get the length of chars in the whole string? It seems to only stop at the space. Thanks and greatly appr...
[10 replies] Last: #include <iostream> #include <string> using namespace std; int main(... (by closed account 48T7M4Gy)
Coin Toss Code using RAND
 
I am getting an error code Error 2 error C2082: redefinition of formal parameter 'flip' when I try to build and run my program. Any advice on where I am goin...
[4 replies] Last: while (count <= tosses) //RUN LOOP WHILE LESS THAN TOSSES INPUTED ... (by anup30)
Finding the errors in the function
 
I need to find the errors in this function: void total(int value1, value2, value3) { return value1 + value2 + value3; } I know that a void function can...
[1 reply] : void total(int value1, int value2, int value3) (by anup30)
How useful are templates in high level programming?
 
In some of the homework assignments that I have been given, I never really found a use for templates since regular functions pretty much accomplish the same thi...
[2 replies] Last: [quote=abel muro]Can someone show me a good example that uses template... (by Cubbi)
[HELP] Reading a 1D and 2D array from a file
 
I am trying to read two different arrays from a text file, then print them using cout. The first column in the file should be passed to companyNames, and the re...
[4 replies] Last: and the program is much simpler.. #include <iostream> #include <fstr... (by anup30)
char function problem
 
I can't figure out what I have wrong here. It always says invalid choice. char menu () { char userChoice; cout<<"Surface Area...
[2 replies] Last: wow stupid mistake been trying to figure that out for hours. Thanks so... (by mike3535)
How to get C++ to ignore slashes
 
Bear with me on this question as I am basically brand new to c++. I am trying to write a program in which the user can enter a date in the format "MM/DD/YYYY" a...
[1 reply] : You can simply do int day; int month; int year; { char slash; //... (by giblit)
Compiler and IDE for Chrome OS?
 
i received a Dell Chromebook 11 as a present from my parents since i've been begging for a laptop for the past 6 months to code on. well, my only issue is, i...
[2 replies] Last: @shadowCODE thanks, but all of those are either not for C++ or aren't... (by nsahawks7)
While loop to repeat the program
 
Hello everyone, I have this problem and I don't know how to fix it. I want my program to ask the user to run the program again. I try to use the while loop b...
[2 replies] Last: Thank you very much for your help :D (by trannghi7707)
Project
 
Hi everyone :) Right now I am taking a programming fundamentals course in c++ and the class is going quite slow and I want something to keep me busy and help me...
[3 replies] Last: maybe try project euler? also, I think this might be more suited to th... (by geniusberry)
Need help with an assignment
 
So I have only been coding for a week and in the add_values function I need to allow the user to return to the display_menu function before having filled in all...
[11 replies] Last: This piece of code tests, fail bits and the return values of cin. #i... (by shadowCODE)
Inflation Problem.... Cant figure out how to fix it!
 
Write a program to gauge the rate of inflation for the past year. The program asks for the price of an item (such as a hot dog or a one-carat diamond) both one ...
[2 replies] Last: On line 23 remove double //You declared it twice Line 31 - 37... None... (by coltehrman)
Little help with using SENTINEL
 
Okay, so I'm sort of stuck on using SENTINEL to end my program when someone types Q or q. Any help on this would be appreciated, I'm not sure where I'm going wr...
[5 replies] Last: lol no problem :) (by coltehrman)
Help
 
So I want to be able to plug in three numbers then leave and I am not sure what code I need to add in order to do that. void add_values () { cout...
[3 replies] Last: well im not really sure what your asking but u could create a a counte... (by coltehrman)
by pk1
Need help with passing return values.
 
Hello! I'm taking a C++ class, and the midterm is coming up.I only have two more projects but so far they are whoopin my a**. I've tried for a couple hours to g...
[5 replies] Last: Thanks a bunch AbstractionAnon! (by pk1)
Function to find the middle value of three inputted numbers
 
I have an assignment that asks me to create program that asks the user for three numbers and I have to send it to a function that finds the middle number of the...
[2 replies] Last: Oh I see what I was doing wrong... Thanks for your help! It's greatly ... (by and kand 97)
Get/Put Functions
 
Im having trouble getting the program to execute. Basically the program is meant to read from an input file then create an output file with the users informatio...
[1 reply] : i would like to do this way: content in inf.txt: User Personal Infor... (by anup30)
Need help with this sudoku program, Having pointer issues.
 
Edit, forgot the question. Really need help with this program. As I'm compiling I'm getting pointer issues. I'm not sure how to match up the formats. #i...
[no replies]
Using a Typecast
 
I'm taking a C++ class, I'm a C# kind of person, and have some trouble with C++ due to C# methods being engraved in my mind. I think I'm unable to solve this du...
[2 replies] Last: It worked, thanks. As for not seeing the casting I didn't include my a... (by AwakenedRage)
October 2014 Pages: 1... 3536373839... 70
  Archived months: [sep2014] [nov2014]

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