Beginners (Page 94)

Two dimensional array with vector
i made function, but I do not know how to test this. #include <iostream> #include <cassert> #in...
[1 reply] : Exercise 10: Flatten (5 points) vector flatten(int a )Íž Write a fun... (by leeli0830)
Compiling issue?
Hey guys, I'm wondering why my program won't compile. Thank you in advance! I'm getting errors that ...
[6 replies] Last: Yes, the functions want an integer, but you are feeding them with a fu... (by EssGeEich)
Ending elements in array with period
I don't know how to end the elements of the following array with a period instead of a comma. ...
[4 replies] Last: Ah i see now, thanks for your help (by bgold12)
[1 reply] : Please put your listing above between blocks so we can run it. Whil... (by kemort)
by kali17
calculating the average in a multiset
Hi everyone! I'm trying to search a multiset for a two values, then calculate the average of the ra...
[5 replies] Last: Thank you JLBorges and keskiverto :) You were very helpful. (by kali17)
Creating a shell
Hello so I am a bit rusty, and by that I mean like SUPER rusty. I have this program that creates a ...
[no replies]
No matching function call in main error
I dont understand why I am getting the error, 'No matching function call in main ' each memb...
[2 replies] Last: o wow thanks (by bgold12)
Error with classes and multiple files
I've spent the last day fixing the errors in my program and I'm stuck on these. This program messes...
[2 replies] Last: You get the redefinition error because you include both date.cpp and... (by YokoTsuno)
by aggsyb
Creating a header file / managing multiple cpp's
Ok this one is probably really simple but all example of header files I have found seem to have all ...
[5 replies] Last: Each of your .cpp files should have #include "MyProg.h" near the top... (by dhayden)
by Danny7
Ending while loop with user input
I am stuck with this program. So far the user can guess an age and if they get it right the program ...
[4 replies] Last: @Jacobhaha, thanks. (by InfinityCounter)
Error with strings and referencing, please help.
I'm working on a homework assignment and I got rid of all the errors and now I'm getting some jibber...
[5 replies] Last: I don't get any compile errors when I compile your code and the protot... (by jlb)
by Phaxen
The switch statement
This lab lets students work with the switch statement. Copy and paste the code below in a fil...
[8 replies] Last: meanie poopoo head:the marines favorite sentence lmao (by DAoliHVAR)
by leo255
Can Someone help me understand this code (sorting)?
Hi all, I had a test yesterday. Overall, I got everything correct, except for this one function. ...
[1 reply] : You've got two decks of cards with the face up. At each step you take ... (by ne555)
by cGuru
Vector Randomization Confusion
NOTE: If you can provide any help without suggesting anything having to do with " std:: ", that ...
[2 replies] Last: Thanks, exactly what I needed! (by cGuru)
Reading Lines from a txt file into a string
Say I have a commant.txt file that contains something like: num_chars logfile.txt num_lines settin...
[2 replies] Last: Crap. I haven't thought about using getline(). This makes it much eas... (by Extreme112)
Recursive return of string
I am really new to the idea of recursion, I cannot get this to work properly. It is supposed to retu...
[no replies]
Hello. I am new to coding. I just started and I am following a book called "C++ for Dummies" this bo...
[7 replies] Last: Try posting what you have now and please use code tags (<>). In the m... (by admkrk)
minimum, average, and maximum of a file array
I've been given this task at University: Write a program that reads a column of numbers from a file...
[5 replies] Last: You don't need that array at all. At start the count of values is 0 a... (by keskiverto)
Add While loop statement to program
17. A new author is in the process of negotiating a contract for a new romance novel. The publisher...
[no replies]
why won't my program display the contents of a file?
I am trying to write binary "raw" data to a file and so far I am able to do that. However, I am havi...
[5 replies] Last: string sentence; ... file.write(reinterpret_cast <char *> (&sentence... (by Disch)
Pages: 1... 9293949596... 110
  Archived months: [oct2014]

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