Beginners - October 2015 (Page 16)

The constructor for a homemade string class
 
No values will be assigned to my object even though a string is being set to it. Also no values will be read in or out (I'm overloading the << and >> operator...
[10 replies] Last: This is the .h file. That was easy enough to fake. The real issue ... (by cire)
Couple Variables in a line
 
Hi I have a problem. How can I insert a few Variables in one line without pressing enter Key? Like C V N B
[1 reply] : cin >> a >> b >> c; This is one way (by closed account 48T7M4Gy)
Need help on everything
 
Write your question here. #include <iostream> #include <string> using namespace std; class Employee { private: int employeeId; string Fi...
[3 replies] Last: #include <iostream> #include <string> using namespace std; class Em... (by closed account 48T7M4Gy)
Random name generator from a pool
 
I have a list and, it has got same names ,so code should give me name and number at the same time also shouldnt repeat same number #include <iostream> #...
[4 replies] Last: So what's the question? All the above does is get the names into a lis... (by closed account 48T7M4Gy)
Run time error
 
The below code crashes in the function 'Solution' at the statement if( value == zero ) only when 'value' variable contains '1000000000' as input. Fo...
[4 replies] Last: Hello, I did not want to make the array that big. I just wanted to ch... (by saherch)
c++ help
 
Can anyone tell me how this code is working ? what is long int ? #include<stdio.h> int main(){ long int decimalNumber; printf("Enter any decimal number ...
[3 replies] Last: That is a numerical type which holds a specific range of numbers. You... (by coder777)
Need help with voting program.
 
I need to make a program that reads a .txt file of a 2-D array and returns the results of an election. Sample input – votes.txt 3 4 20 34 24 16 13 36 89 20 ...
[3 replies] Last: [code firstline=9] fscanf(ifp, "%d", &ROWS); fscanf(ifp, "%d", &COLS);... (by MikeyBoy)
Help with string object
 
Why does the empty() from a string object return false, despite it being empty. The string is actually from an object pointer. Debugging shows that the pointer ...
[7 replies] Last: Ops, sorry :-) Use this: if(!obj && obj->name.empty()) Regard... (by Emanuel Moraes)
Number Analysis Program
 
In my computer science class we are working on this program and I really feel like I am having trouble with arrays, I have barely gotten started because I have ...
[2 replies] Last: Below, I put in the comments on the code some info to help you get sta... (by chicofeo)
For some reason it will NOT run...help please
 
Write your question here. #include <iostream> #include <string> #include <stdlib.h> #include <iomanip> using namespace std; class Employee {...
[3 replies] Last: When I run it I keep getting "It seems that this project has been bui... (by chicofeo)
Some assistance with arrays
 
I have a very simple program here that prints out the values contained within the array. My text book uses this within a function, so I tried building a simple ...
[4 replies] Last: #include <iostream> using namespace std; void show_the_world( int ... (by closed account 48T7M4Gy)
The if/else if statement is a form of what?
 
Does someone knows what goes into the blank? The if/else if statement is actually a form of the ________ if statement.
[1 reply] : Form of condition. if(condition) { statement1; } else if(condition... (by rathpanha)
searching for text in file bool.
 
hello guys, I am trying to figure out how to get back into the swing of things, but my issue at hand is that I am trying to get my bool to work can i get any he...
[4 replies] Last: i ended up changing it up, so this is what i have now. EDIT: issue i ... (by Hidden Squid)
by m10
Comparing a String to a Word
 
I am trying to make a program where the user can input information about a road trip and the program will tell the user about the cost of the trip. The first pa...
[2 replies] Last: Sorry, It gave me an error while posing the first time so I assumed it... (by m10)
array and vectors
 
You have 10 students. 1. Get each student's score (0 - 100). 2. Display each student's ID (1 - 10) and their grade. 3. Display sum of all grades and av...
[2 replies] Last: I don't know how to find range? (by hxc0203)
Question with Sorting Arrays
 
Hey guys, I pretty much have all of this program finished, but I'm having some difficulty with the last part. I need to build an array with a random amount of r...
[1 reply] : In sortArray , you access outside the boundaries of array . Also, y... (by cire)
NEED HELP with assignment.
 
So any help would be greatly appreciated. I'm trying to write a program for class which involves combining a few previous programs I had to write. The problem i...
[7 replies] Last: is there anyway you might be able to give me an example of that, I don... (by Kmort1990)
segmentation fault, please help!
 
So I have been writing this program and it was running ok, up until I asked the user they wanted to see any of the objects they've created. After it ran and did...
[6 replies] Last: Thank you so much for that clarification. I appreciate your help. (by cher1201)
Please Help ASAP
 
Iset it up so that the key for the encrypting is randomized and stored into a separate file with my intentions of it being like a key fob. So my program will on...
[1 reply] : #include <iostream> #include <string> #include <fstream> #include <... (by Kmort1990)
by m10
Comparing a string to a word
 
I am trying to make a program where the user can input information about a road trip and the program will tell the user about the cost of the trip. The first pa...
[1 reply] : attractionName is an array, not a string. Also, you probably want to... (by Duthomhas)
October 2015 Pages: 1... 1415161718... 57
  Archived months: [sep2015] [nov2015]

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