Beginners (Page 3)

C++ not reading number values from text file
 
Part of my homework deals with reading floating-point values from a text file, and then outputting t...
[15 replies] Last: > when I should have written this: > E:\\CIS 022\\Lab 2\\Files\\stude... (by JLBorges)
Writing object into binary file
 
I have a linked list object, which I want to write the contents of into a binary file. The way I ...
[10 replies] Last: Even I had the same problem ,the best and efficient way I came up with... (by mbsaicharan)
by acmc94
Help with Question and answer program
 
I have taken one semester of CS and after that semester I honestly forgot a lot. can someone please ...
[no replies]
matrix multiplication
 
Hi, I'm trying to write what seems like ought to be a fairly straightforward program but it doesn...
[1 reply] : The problem is in line 97 where the second "column1" should be "column... (by bool maybe)
Problem creating an output file
 
So I'm trying to make this program create an output file instead of displaying it on the console. Ev...
[1 reply] : You have to declare your out_stream variable before you open the file.... (by pnoid)
by MrPain
Class with function parameter problem
 
So it could be problem with implementation or with my logic in general. Code is pretty short and it ...
[1 reply] : Pointer to member function: http://www.informit.com/guides/content.asp... (by JLBorges)
Input Loop Exit Condition?
 
Hi, I'm working on a function here and I'm trying to make the loop end if a '.' is ever entered. But...
[3 replies] Last: Thanks Duoas! Using this now: void getInput(char input ) { cout << ... (by exelbeast)
by Ansev
Vector elements into contiguous memory
 
G'day Is there a way to move the elements from a vector <bitset<6> > into contiguous memory while re...
[5 replies] Last: > I know that this is a complicated program to try for a person who ha... (by JLBorges)
Cannot open file
 
I am writing code to calculate GCD. It say it cannot open a file. Is it a problem with the code? ...
[4 replies] Last: Oh right, I actually never looked in the file before, thats why. (by RUNNER PRO AGARIO)
by kmce
c++ player me / me.name
 
Hello. I am learning c++ from the "learning c++ by creating games in UE4" book and there is a sectio...
[10 replies] Last: Me, no I got another book after, also still on UE4, but it taught me.... (by RUNNER PRO AGARIO)
Need help in writing this program
 
Two employees at a particular company have received a pay increase of $10,000 on their annual salari...
[2 replies] Last: You should know not to give us your homework, Give it a try of your ow... (by RUNNER PRO AGARIO)
formula problem
 
Hey guys,so my program is supposed to calculate a mortgage monthly payment, also figure out the tota...
[6 replies] Last: Thank you you were right, using; cout.precision(2); cout << fixed <... (by b29hockey)
Beginner C++
 
Need to learn C++. Exactly with what to start I need to know what to start doing to learn C++. I...
[10 replies] Last: http://www.learncpp.com/ It has exercises at the end of each lesson. (by RUNNER PRO AGARIO)
Read stdout from another console application
 
Is it possible to get stdout data from another console application? Or, run two consoles from one...
[3 replies] Last: Start a command prompt and type dir \windows | more This will execut... (by dhayden)
inputting into a 2d char array
 
The assignment is to read from a file, put the first two words into a single row of a 2d char array,...
[5 replies] Last: I suggest you stop using C-strings and stick with std::string: std::... (by jlb)
Vector to vector without repeating elements
 
Basically, I have a vector with 10 elements, and I need to create another vector with 6 non-repeatin...
[7 replies] Last: Sorry, I assumed that your source vector has no duplicates. (by Duoas)
Printing symbols using a for loop
 
Hello! I am taking my first ever coding class, and we are using C++. I kind of understand how a for ...
[4 replies] Last: That's exactly what I needed. I ended up figuring it out on my own, bu... (by Skorchy)
by kbs96
Inaccurate Results
 
Hi! Im working on a homework assignment: Cindy uses the services of a brokerage firm to buy and sell...
[1 reply] : netAmount = (sharesSold * salePrice) - totalCharges; You never fact... (by TarikNeaj)
calling a class function in main but it's declared in it's own cpp
 
in my class.h i have. class AddressBook { private: string firstName; string lastName; int s...
[1 reply] : setFirstName(temp); You need an object to call the function., like:... (by Thomas1965)
What is the purpose of the auto keyword?
 
I understand that auto can be used with functions that have return values, but why do people use the...
[2 replies] Last: Great Article, Thanks Cire! (by RUNNER PRO AGARIO)
Pages: 12345... 40
  Archived months: [dec2015]

Cannot post in this page. To post a new message, go to the first page.