General C++ Programming - November 2015 (Page 24)

Help Please!!
 
I am learning programming in c++ by the book "Programming Principles and Practice Using C++(2nd Edition)". I have got a problem with some code..... Code: ...
[4 replies] Last: Guys this is the final code... That runs perfectly well..... #include... (by HelloWorld23)
-SFML- What do I put in referred to draw function to not get error?
 
Sprite classes initialize images to them and Player takes a reference to window: #include "Player.h" Player::Player(sf::RenderWindow &_window): window(_...
[6 replies] Last: This (std::string, int ,int) is a parameter list. Only functions hav... (by coder777)
Please help
 
Hi I have wrote this for a homework, but can't get it to work. Not allowed to use other libraries than those I used so you know. The problem is that my c...
[8 replies] Last: The thing is, if we can't see the code, we can't fix the problems. Th... (by MikeyBoy)
comparing three values
 
To compare the values of a,b and c? #include<iostream> #include<conio.h> using namespace std; main() { int a,b,c,max; cin>>a>>b>>c; max=a; if(max<b)...
[1 reply] : What is your problem? Please give us more details. (by aquavillan)
Need Help (Stack)
 
Hi . I am new in c++ programming and I need some help to complete my assignment. I have no idea how to begin and what to do . Please somebody explain it to me a...
[5 replies] Last: You can start with: 1) use code tag 2) describe each line 3) try to w... (by fcantoro)
Need help with keycard generator
 
Hi everyone, I got the assignement to write a program which generates hole patterns for keycards, however, they have to differ as much as possible. Problem i...
[4 replies] Last: Thanks again, your advice really helped a lot! (by MHughes)
Remove a specific object from an existing list of object
 
I have a class called WeigglhBridge which has one of this method named removeTruck(int). The class I mentioned above has an account object named Truck record...
[6 replies] Last: AFAIK, myclass in your case is Truck. I suggested you to use vector in... (by fcantoro)
member, non-member friend, non-member non-friend?
 
Sorry to bother you with it, but I couldn't find a suitable example online so I had to come here. So, for a simple example of an advanced data type, how wou...
[3 replies] Last: @Peter87 Okay: Everything within the class can be considered a member... (by coder777)
Automatically Call Function in Derived Class
 
Alright, I'm not completely sure the best way to explain what I'm trying to do, as I'm trying to wrap my head around the concept. I'm going to use an example t...
[1 reply] : I don't know Unity, but from the name alone Update() sounds like a fun... (by helios)
by mi011
Please help with Array! What am I missing? Thanks :)
 
The output should be like this: Grade 1: 90 Grade 2: 86 Grade 3: 95 Grade 4: 76 Grade 5: 92 Grade 6: 83 Grade 7: 100 Grade 8: 87 Grade 9: 91 Grade 10:...
[1 reply] : Your "average" var should not be an array, but a single value. And you... (by magnum pi)
data structure needed
 
hello guys I wanted to ask you if you know of some data structure that gives you the max(min) element of an array with complexity of O(log n) (or less) and can ...
[11 replies] Last: Okay, I figured something out, but it only works if we assume that the... (by helios)
Get list of site (point) with its bounding edges in voronoi diagram
 
Hi Everyone, I implemented C++ code for Voronoi Diagram in http://www.skynet.ie/~sos/mapviewer/voronoi.php. I need to print all point generators together wit...
[no replies]
Converting decimal to fraction, infinite loop.
 
I have written this program a million times in TI-BASIC. It takes a decimal number and converts it to a simplified fraction. I've been trying to rewrite it in C...
[3 replies] Last: Fixed it, thanks. (by RealGiganitris)
sorting an array
 
I have to develop and implement a program that sorts an array using the index sort algorithm, although i was also told I could use bubble sort. I also can't cha...
[no replies]
Case Statements with functions inside.
 
Hello all! I'm new to the forum. I have a question that has had me pulling my hair out for the past six hours. I have a simple menu code with case statements ...
[5 replies] Last: Before any function is called, the function calling it must know about... (by ForTheReallys)
Read a sequence of chars.
 
I'm trying to write a program that reads a sequence of chars for a voting problem. The input is as follow: YNNAPYYNY YAYAYAYA PYPPNNYA YNNAA NYAAA # '#' indicat...
[2 replies] Last: this is what i have so far: #include <iostream> #include <iostream> #... (by mazaret)
Completing function for dice game
 
Need help completing the methods for the functions of getBet and wonTheBet. Please help asap! #include <iostream> #include <cstdlib> #include <ct...
[3 replies] Last: Here you go, but it's really likely that not everyone will paste compl... (by MHughes)
Counting every fucking vowels!
 
Hi fellas, I have a problem when I try to count every vowel in a txt file. Input and output when dealing with txt files is no problem. But in my program, I have...
[4 replies] Last: Oh, I see. Thanks! (by Osej Alhasad)
by Dongua
Loops will kill me :'D
 
I have an assignment on loops which i pretty much suck at i need help aah D: The question is *cough cough*: 2. (Prime Numbers) Write a program that prompts...
[2 replies] Last: could u help me with i I'm sure any number of people would be happy... (by cire)
lost with this assignment
 
I have to write a program that will take the score of 5 judges and then drop the highest and lowest and then out put the average of the remaining three. This is...
[4 replies] Last: You supply the names of the variables to the function. double result ... (by cire)
November 2015 Pages: 1... 2223242526
  Archived months: [oct2015] [dec2015]

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