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 familiar with the game do some research (e.g., on the web u...
[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 run and the only thing that will be displayed is "Master Fi...
[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 "repeating n-digit sequences of numbers/characters" in a strin...
[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 of a number is attached as a subscript (if there is no subs...
[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 with the whole thing, at least not yet. It's our longest prog...
[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 to expand my perception of inheritance. The program calculate...
[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 the latter take about 32 times longer in Visual Studio 2015 Up...
[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 want to sort my product names for example (Bed) for product 1, ...
[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 and input all these values to a function. I want to seek help...
[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 putting in 4, my program will return 001 instead of 100 #i...
[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* name; public: Person(const char* name):name(NULL) { Thi...
[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 friends haha. Can you who ever reads this help I thought of th...
[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 me find. Many Thanks. Here is the code : /*ref.cpp*/ #in...
[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 Advance This is not an Assignment or Project You can post th...
[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 way to overload a << operator differently for ostream and fstr...
[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, Actually I want to put the data members of a struct into ...
[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 the code to find duplicate Node* cur = head; int ...
[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 Studio. Can anyone help please? This is what I'm supposed to do ...
[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.