General C++ Programming - April 2015 (Page 15)

Spent all night trying to do this.
 
I'm at my limit, I feel as if the teacher shoved way too much material for an intro course to Programming. I just started learning how to program C++ and for ou...
[14 replies] Last: I realize this is marked solved already, but it wouldn't work if it'... (by fg109)
Set <string>
 
How can I move through a set of strings?
[2 replies] Last: for(auto const &str : my_set_of_strings) { std::cout << str << st... (by LB)
Printing out a double pointer 90DEG clockwise
 
Hey guys, sorry for posting another problem. I made a function and my console keeps crashing but I'm convinced I have the notation right. All I'm doing is outpu...
[2 replies] Last: Wow it works! Thanks that was so quick and simple. I didn't think suc... (by BarelyOtaku)
by LB
When would you ever need to re-use a file stream? (1,2)
 
So, I see a lot of code (even the tutorial on this site) that explicitly use the .open() and .close() member functions of file streams. In my opinion, these...
[21 replies] Last: My life lately has been... challenging. The FAQ is not dead, though i... (by Duthomhas)
Tabulate in a .txt file some 'double' results
 
When we tabulate just a phrase inside a .txt file and we repeat it, it is easy. But the thing with numbers, specially with 'double' is that the numbers of decim...
[no replies]
sorting through 2 vectors at the same time as one?
 
so right now im working on a class that has two vectors at it's heart, one that stores a list of objects (Classes), and the other stores how many of those class...
[5 replies] Last: When you find yourself using parallel arrays, then it is a sign that y... (by Smac89)
need help with programing assignment. thanks
 
Create a function “int roll()” that returns a value from 1 to 8. Section 2 Main Function. Set the random number seed with 1 followed by last 4 digits of you...
[8 replies] Last: # include <iostream> #include <stdlib.h> using namespace std; ///////... (by sami9633)
How would i write this code?
 
Design a program that will be used at a local night club. Users of the system will be managers, waiters and bartenders. Waiters and bartenders will have the sam...
[4 replies] Last: Please edit your post and make sure your code is [co de]between code... (by TarikNeaj)
Loop for converting F and C
 
I need to write a code to convert Fahrenheit and Celsius and it has to go up to 20 this is what I have so far and don't answer if you're one of those snobby pro...
[4 replies] Last: You mean the effect of line 15. "Two digits", you say. Two digits you... (by keskiverto)
Help
 
Administrator menu should be able to 1) sign-in, sign-out, 2) see all employees, 3) see checked-in employees, 4) see outstanding orders, 5) see all completed or...
[1 reply] : Please Do Not Double Post - http://www.cplusplus.com/forum/general/162... (by TarikNeaj)
Help Needed to write this program
 
● Read this description carefully as you proceed through each step. ● The main program must declare a 2­dimensional array: a matrix. ● You have to crea...
[1 reply] : Please note, that this is not a homework site. We won't do your homew... (by keskiverto)
basic programing
 
about oops
[1 reply] : what is your Question? (by DVSProductions)
Write a cpp program which displays the grade of a student when the score is entered.
 
I figured it out but I dont know how to make it return a plus symbol if a student just missed the next higher grade by one or two points(for example: if a stud...
[6 replies] Last: @lensalexis PS: use code tags: http://www.cplusplus.com/articles/jEywv... (by DVSProductions)
unresolved externals
 
gdfgdsfgdfs
[1 reply] : base from the errors, you have a problem about linking the files (by xenovia12)
[HELP] Overloading << >> operators in a class
 
I am writing a program which will overload a few operators to make it so I can perform function to a class. I copied code from a very similar program in the tex...
[6 replies] Last: int getMonthNumber() const { if (monthName == "January") monthN... (by xenovia12)
Duplicate integers in array
 
User enters 10 integers in array and all numbers needs to be different and if he enters a number that was already entered (duplicate) how to give him another ch...
[2 replies] Last: can someone write me code No. Whatever the container is (array, set... (by keskiverto)
ASCII Game Engine
 
I have an issue with a game I am creating. I have created a doublebuffer system using the CHAR_INFO buffer, and it works perfectly. I have also created its own ...
[13 replies] Last: Take it as a tile map game, and that's what I was talking about, I nee... (by lordseanington)
I need a program that can be use in store (OUR PROJECT)
 
I need to do all this . View all the product records - done with this Add New Item - no codes for this yet. Delete Item - not sure if my codes are right menu #...
[1 reply] : We can't help without code. Make sure your code is [co de]between co... (by LB)
by yj1214
char* error
 
https://www.youtube.com/watch?v=Px5kXp_t2-U int save(int x, char* y){ return 0; } save(6, "hello"); why is this not working? why is the code...
[12 replies] Last: Well, no, its just that when you want to open the file later, you woul... (by lordseanington)
by nte40
Turning user input into an array
 
Hi everyone , I am learning c++ by myself and just entered the topic of arrays . I have a question about turning the user input into an array . The object...
[3 replies] Last: It is generally a good idea to lean about vectors before arrays and dy... (by LB)
April 2015 Pages: 1... 1314151617... 28
  Archived months: [mar2015] [may2015]

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