Beginners - October 2014 (Page 14)

by dcneo
get function to exit at when user enters negative 1?
 
hey guys, i cant figure out one thing ive tried if statements, do whiles, while loops and i cant get my getTemp function to exit out when user enters negative 1...
[7 replies] Last: @mobotus thenk you for pointing that out. (by closed account SECMoG1T)
Is this the proper way to solve this?
 
I'm writing a program to find the minimum and average values of an array. The code runs fine but a lot of it was written based on scouring Google. I feel like I...
[5 replies] Last: Thanks again for all of your guys help. This is a great community! (by jrt1990)
help with functions
 
Hi, complete beginner here. In need for some help with the assignment. So for the first part we had to write a program that: 1. reads three values (velocit...
[2 replies] Last: works perfectly. thank you so much :D (by helloimkat)
by iluv41
using user input for an array
 
In my main.cpp, I get the user's input and then I pass the user's input over to entrylist.cpp for storing the input into the list of entries. I do not know how ...
[1 reply] : http://stackoverflow.com/questions/6995572/using-multiple-cpp-files-in... (by mobotus)
Can someone quick tell me why this wont run?
 
This is driving me insane. I had it running earlier but accidentally saved over top of it so I redid it and now its not working. I cant for the life of me find ...
[6 replies] Last: Ok nevermind I got it. Thank you so much for all of your help! //L... (by jrt1990)
file reading and writing
 
My files are not seeming to open properly. I need to open and read scores.txt, and then I need to open and write to stats.txt. I'm not seeing what Im doing wron...
[4 replies] Last: how do I figure that out? (by Joshcannon)
no matching function call
 
So I have a few errors with no matching function call line 108. Please help I deleted chunks of code to let me post this but I only deleted irrelevant code for ...
[6 replies] Last: In line 8, your function declaration is declared as const . Therefo... (by AbstractionAnon)
C++: What is the difference between internal and external arrays of a structure?
 
Hi, I am new to structures and all of this. I don't understand what is asked of me when to create an array of structures both internally and externally. Can som...
[4 replies] Last: Could internally mean elements inside the structure as oppose to the e... (by DangerousPirate)
Initializer must be braced enclosed?
 
Getting error: 59 C:\Users\Valued Customer\Desktop\Game\main.cpp initializer for `MoveData' must be brace-enclosed I know it has to do with the nested struct...
[1 reply] : MonsterData contains array of MoveData. But your allMove contain dara ... (by MiiNiPaa)
Please help
 
Hey guys I got an assigment due but not sure how to do it, could you guys help me out? A set is an unordered collection of distinct elements of the same typ...
[1 reply] : #include <iostream> using namespace std; void makeSet(int aSet , in... (by cornsnake19)
guys i need some advice over here..
 
can you guys tell me what's the problem with this coding? it says that Warning W8004 assignment1.cpp 46: 'total' is assigned a value that is never used in funct...
[7 replies] Last: I think you have your if conditions wrong. They don't make sense to ... (by dhayden)
Virtual Destructors
 
Hello everybody, I understand the use of virtual destructors but i don't get why should one put the destructor of the derived class virtual: why would th...
[2 replies] Last: aha okay. thank you!! (by JasBeckC)
Run-Time Check Failure #3 - The variable 'c' is being used without being initialized.
 
Gah, trying to write functions for the first time. The objective is the prompt the user to enter three different integers until they're all different and then d...
[12 replies] Last: Also, having the prototype inside a function makes the prototype only ... (by Esslercuffi)
Grade Book Assignment?
 
Hello, I'm in a 10th Grade Computer Science class, and we're currently working on C++. I'm just trying to use a little bit of my knowledge to make this Gradeboo...
[12 replies] Last: I don't understand your math. Let's try it another way. First, you nee... (by dhayden)
print the all information to my file.dat
 
hey still working on my coding as the coding state if I type 1 it will print my output and I want create the .dat file print my name, gender, age to my .dat wh...
[1 reply] : Open a output stream and send to it. #include <iostream> #include <s... (by mobotus)
by iluv41
print size of an array?
 
I have an array and in one function i need to print the size of it in megabytes Is there a way to do so? I am not sure if sizeof prints the size of an array in...
[7 replies] Last: All entries in the array has the same size, the way sizeof computes th... (by Peter87)
by cotyp
labHelp_Beginner
 
Hey guys my name is Coty i am a brand new programmer taking a c++ class in college and i am having a problem with this lab not putting out a 0% when i input 0's...
[4 replies] Last: I know this might not look so pretty but i got the program to do what ... (by cotyp)
printf my name
 
hey guys i want writing a code which print my first name and last name separately so I wrote sample code and it wont let me enter the last name, just the first...
[2 replies] Last: And if you can't use strings you are going to need to make a char arra... (by mobotus)
by atdc94
Input Files
 
I am having trouble writing this code. I am somewhat close I think but I really need some help. Here is the prompt... Problem Statement Assume you are rea...
[5 replies] Last: I just don't know how to get it to the output format. Until you can ... (by jlb)
How to open a file directly?
 
Hey guys, I'm looking to find out how I might be able to open a file directly through the console. I understand the use of fstream but it doesn't exactly ach...
[5 replies] Last: I want to point out that the windows command prompt does this already ... (by kevinkjt2000)
October 2014 Pages: 1... 1213141516... 70
  Archived months: [sep2014] [nov2014]

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