Beginners - May 2015 (Page 22)

word guessing game Random generator problem
 
i am currently working on word guessing game but my random word generator doesn't seem to work properly in the loop. would be nice if someone could look at my c...
[2 replies] Last: hey VaMpZzz please help me.please solve this question of c++.please pl... (by chiragsaurabh)
Unresolved External Symbols and Completely lost trying to find it
 
So, I'm working on a project for my C++ Class, and I've gotten most of it nailed down (2nd Function isn't full written) Went to debug and run to verify it wa...
[2 replies] Last: ah. I see where I blundered completely. Paris in the the spring proble... (by ArmaSwiss)
Function is returning 0, and it shouldn't be
 
Howdy! I'm a long time lurker and a 1st time poster trying to learn C++ on his own. I made a really standard "99 bottles" program, featuring Jay Z! So I m...
[7 replies] Last: I don't mean to sound dumb, because I think you and the tutorial fired... (by KillaCosby)
how to get rid of two errors in template linked list code?
 
i have two errors but I'm unsure if they're because i declared the template wrong or something. i read all the tutorials but i don't seem to understand template...
[8 replies] Last: thanks for clearing that up for me! would you mind helping me out with... (by misslyss)
by Kackel
Trying to return a created .txt file
 
Hi. I'm having trouble returning a .txt file that is being created and cant seem to get it to work. It will create it, but once i try to select it, it will: rea...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ Look at the flags. (by closed account NUj6URfi)
by kunz
calling function inside a function
 
Is this the correct way to call function in side a function char selectRPS(int rocks,int papers ,int scissors);//function 1 { if ((rockcounter==papercoun...
[3 replies] Last: Look at the tutorial. It has functions. Those functions are called. ... (by keskiverto)
by kunz
confused
 
how can i write this code if "a" , "b" and "c" have the same value then print same value
[4 replies] Last: thanks mate :) (by kunz)
population help
 
cannot figure out what is wrong with the program btw I have to run on the linux server if that makes a difference In a population, the birth rate and death ra...
[3 replies] Last: Ah I see.. (by mutexe)
Having trouble with nested loop pattern
 
I'm supposed to be printing out a total of 7 symbols per line when I enter a 7 according to the instructions but I keep getting 8. How can I make sure only 7 sy...
[7 replies] Last: Then the for loop should not start from A given by the user, but from ... (by keskiverto)
Question on this program!
 
Hi can someone explain to me what the static_cast char function did in my program? I did everything else up to the static_cast <char> and I looked up the intern...
[3 replies] Last: That makes sense thank you! (by closed account yR9wb7Xj)
c++ mortgage with inheritance
 
trying to write a simple program that will figure a mort payment but this program is not compiling ... I use Codeblockers and it shows me where the errors are b...
[12 replies] Last: I think now you're in a good position to address my comments from the ... (by mutexe)
Wrong outputting the input file.
 
I'm trying to get my input working, but it doesn't seem to output correct. Any help ? #include <fstream> const char CDfv = "U2.txt"; const char CRfv ...
[18 replies] Last: Then perhaps you need one of the other IO formatting flags? http://www... (by jlb)
issues with file writing loop
 
Ok so I can get it to write a sentence to the file but im having issues looping it. I have it first create a file and write something in it then update the file...
[3 replies] Last: You can probably get rid of line 14 as well. And you really should sta... (by jlb)
Can't clear file before writing to it with fstream
 
Hello, all! I am programming a login authenticator and password management system using sha256 and salted password hashing. I have implemented a Binary search t...
[4 replies] Last: What do you mean by it fails? How do you know it is failing? By th... (by jlb)
Guessing game need help. Basic C++
 
I need help with changing my program. The program is a guessing game where it chooses a number from 1-100. We need to input a number and if it works, it outputs...
[1 reply] : And your "second" code? You don't seem to understand the difference b... (by jlb)
throw out used rand numbers
 
Relatively new to c++. I have written a game that generates a random number, which it does. However every now and then it will repeat a number. Is there a way t...
[4 replies] Last: There is randomness and there is randomness. Same number occurring mo... (by keskiverto)
how to make a graf
 
Hi, a just started learning C++ from e-book Jumping into C++. from: Alex Allain. At the end of each capitol there are practice problems. and i dont know how t...
[no replies]
Vending machine project
 
So for my college course I've been told to make a vending machine project, I've got the money side of things to work but I can only get it to output the option ...
[8 replies] Last: Wow that was stupid of me... Thank you! I would have been there for da... (by Stackz18)
Synchronizing streams
 
I read this code on internet and I have no idea why the output is b a c Why does sync_with_stdio() do? The article said that it synchronizes C++ streams with ...
[2 replies] Last: Setting sync_with_stdio() to false causes the C-stdio functions and th... (by jlb)
by koopey
class and inheritance beginner help
 
I can't even begin to understand the following question. Any help clarify the question would be gr8. question is: Implement a sort function that takes a vect...
[1 reply] : Implement a sort function that takes a vector of pointers to an inter... (by dhayden)
May 2015 Pages: 1... 2021222324... 40
  Archived months: [apr2015] [jun2015]

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