General C++ Programming - October 2016 (Page 9)

Rock-Paper-Scissors Game for Stroustrup's PPP2 Book - Help Needed
 
Here are the specs: Write a program that plays the game “Rock, Paper, Scissors.” If you are not...
[no replies]
eof question
 
Is there a specific code for "is eof" and "not eof"? Thanks.
[9 replies] Last: This is the wrong way to read a stream: while(!fin.eof()) { ... (by Cubbi)
Program runs with infinite loop?
 
I have the whole thing coded, I don't see any errors and program doesn't throw any errors, but it'll...
[4 replies] Last: I got it, thanks everyone for all the help, solid advice. (by Menacing)
Repeating Patterns
 
Hello everyone, I want get opinion about constructing a function which can identify and count the "r...
[6 replies] Last: There are already various applications for sequence analysis. Yes, so... (by keskiverto)
HELP FOR A HOMEWORK ASSIGNMENT!!!
 
Here is the prompt, To distinguish between the different base representations, typically the base...
[5 replies] Last: OP: I've double checked my first post on this topic and the code there... (by gunnerfunner)
by MikeSW
Accessing a file using an array
 
I'm not even sure I asked the question correctly. This is for an assignment, but I don't want help w...
[13 replies] Last: The code above isn't my final code, but thanks. Have a great night. :)... (by MikeSW)
Explanation about Constructors and Inheritence
 
Recently, I started working with classes and, today, class inheritance. I created a simple program t...
[1 reply] : CAverage(int); (line 9, inside the definition of class CAverage) dec... (by Cubbi)
Using ostringstream seems to work 32+ times longer than snprintf!! Why??
 
Hi, I am timing calls to snprintf vrs ostringstream and get an incredible result: the calls to th...
[6 replies] Last: Okay, using -O3 I get: 1106093393 nanoseconds for snprintf 5852622... (by JUAN DENT)
by Peril
Sorting Names In Alphabetic Order - Help.
 
Sorry I posted it twice.
[2 replies] Last: I cannot use vectors due to the rules of my assignment project, anyway... (by Peril)
by Peril
Sorting Names In Alphabetic Order - Help.
 
Hello. This is a program I've been working on for a while, but now I got stuck into one thing. I wan...
[3 replies] Last: Problem is I cannot use vectors, because I am not allowed to (based on... (by Peril)
generating all possible combinations of two data type
 
If i have 2 integers and 2 bool variables in a function and I want to generate all possible values a...
[1 reply] : You can try something on the following lines but given that the # of p... (by gunnerfunner)
Converting base 10 to base 2
 
I have a code to convert base 10 to base 2 but it spits the binary number out backwards. For example...
[3 replies] Last: Thank You!! (by lukebarta)
Hi,whats wrong with my code?
 
Hi folks ,i dont understand why free my resources stuck. This is my code: Class Person { char*...
[6 replies] Last: [quote=skaa]It works perfectly. And Embarcadero sells C++Builder for h... (by closed account E0p9LyTq)
by KVin
I want to make this cool program that can guess your age need assistance
 
HI this is not for school just for fun it would be cool to make this work I want to impress my fri...
[2 replies] Last: what ever you just wrote has nothing to do with what im tring to do bu... (by KVin)
Impossible to catch value of i when he finds an existing name
 
HI all of you.This file works well. Many trials to catch the value of i. Is there somebody to help m...
[14 replies] Last: Perhaps you could explain your problem a little more clearly? Also, i... (by MikeyBoy)
by Sheezy
Code for Me
 
So basically I'm confused by this Problem and i need someone to code for me simply. Thanks in Advanc...
[5 replies] Last: You have wasted a lot of time begging people. If you had used that ti... (by closed account E0p9LyTq)
Overloading a derived class operator
 
Hi, It is either a stupid question or a normal question, but I'll ask it anyway: Is there a wa...
[11 replies] Last: Thanks you helped me a lot! Have a nice day (by leoleoleo)
by jo123
memcpy of structure to a const char*
 
Hello All, I want to copy a structure to a const char* using memcpy. Really need some help. Thanks...
[6 replies] Last: Thank you Cire. Yeah I think this is where I am making mistake in thes... (by jo123)
removing duplicate element from link list
 
i need help with this. im suppose to remove a duplicate from a link list once user enter. this is...
[3 replies] Last: In other words, you don't need to find duplicates. You don't need to, ... (by keskiverto)
Need assistance please
 
every time I try to build the solution it tells me there are several errors. I am using Visual Studi...
[5 replies] Last: You can't have all that code outside a function. There are only certa... (by MikeyBoy)
October 2016 Pages: 1... 7891011... 23
  Archived months: [sep2016] [nov2016]

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