Beginners - May 2013 (Page 45)

Help! Console is trolling me?
 
I am trying to make a connect four game before waving goodbye to programming in the console. But what I now notice is that when I try to update positions on the...
[3 replies] Last: Sorry, for not relevant answer before. http://en.wikipedia.org/wiki/Do... (by JockX)
by jxkl5
Menu for text game
 
I'm making a text game, and I would like to add a graphic menu with: Play, High Scores, and Quit... Think Minecraft menu but simpler. How would I do this? Also...
[2 replies] Last: You can play sounds with out a library. by using http://msdn.microsof... (by giblit)
Converting lines (1,2)
 
Can someone further explain how to use sub string and string find ? I am a beginner in an intro C++ class. I am trying to read a text file for a blackjack game ...
[29 replies] Last: Ok so I tried that, and it is still not working. For some reason my pr... (by RadCod3Win)
by ctdss
Help getting started
 
I can make this program with the basic functions, but when I need to add all of these extra things I get very confused and do not know where to start. When I st...
[5 replies] Last: No problem ! Good luck !! (by RadCod3Win)
how to set the length of a string
 
Hi! I am making a program that generates a random 10 character length password that should be legible according to English pronunciation laws, but I don't kno...
[4 replies] Last: std::string::resize(unsigned) http://en.cppreference.com/w/cpp/string... (by Bourgond Aries)
by zukias
How to generate random numbers in C++?
 
Hi, I'm looking for a way to generate random numbers and no idea how, I've tried looking around the web but no examples seem to compile for me, it's likely to d...
[4 replies] Last: Thanks for the replies guys, problem solved :) (by zukias)
checking for a word from a file
 
I am trying to output the position of a word from a file. I ask the user for a sentence. std::string line; std::getline(std::cin, line); i input...
[4 replies] Last: I was able to implement somewhat the linked program from Rehan FASTian... (by spiritedDedication)
Error: expected constructor, destructor
 
Hello, when I go to compile my code I keep returning the following errors: 41: error: expected ‘;’ before ‘}’ token 43: error: expected constructor, ...
[2 replies] Last: thank you, I just needed a fresh pair of eyes to look at it. I will ta... (by ShoxPhysics)
DevC++ recursive constructors
 
I started to write a text game for university task and realized that i cant create an child object from the constructor. The application just closes without pro...
[3 replies] Last: It does not exit in first recursive call in my debugger. It cannot - s... (by JockX)
Multiple definition errors
 
Hi there, I hope you can help me before my internet runs out as I haven't payed this months bill for lack of money yet (should be able to by Wednesday). Anyway...
[no replies]
Difficulty loading a dictionary in to a char array
 
Hello, I'm struggling with classes and functions and am trying to load a dictionary in to a char array called Engelv. Here is a sample of the dictionary(as is i...
[1 reply] : I think the bug is here: first =gotLine ; in line 88 and here first... (by JockX)
Logical Size of Array
 
Hi, I have a doubt, and wanted to clarify something. Can I get the logical size of an array by doing this: double getLogicalSize( char a ) { int x; for( x...
[8 replies] Last: You could always use a vector then and get the size of that? and why n... (by giblit)
by pata
char[] doesnt end with '/0'?
 
Hi I am brushing back up on char arrays, in the c++ primer it says that is you declare and char array like this, the compiler adds a null terminate to the end: ...
[3 replies] Last: lol sometimes it just takes a fresh pair of eyes, thanks guys/girls.. (by pata)
Prime factor of 600851475143
 
Hi, I'm working on a problem for project Euler and its asking me to get the greatest prime factor of 600851475143. I made the code that would give me it but aft...
[2 replies] Last: Confirmed what cire said, modified your main and after a few seconds i... (by SamuelAdams)
Problem with Files/Structures/Functions
 
I had been trying this week to finish the final project from my introduction class to C++. The purpose of the project has to start opening a file that contains ...
[3 replies] Last: So this is what i had been able to do: #include <fstream> #include ... (by mary 00)
How do i code to check each line individually in a 2d array?
 
essentially i'm working on a project to make a sudoku game and then check for errors. I'm at the final steps and can't figure out how to do two things 1) How w...
[1 reply] : You can solve the problem with loops and arrays. - Create an array of ... (by JockX)
What to use when making 2d games?
 
My question is what type of libraries and engines should I use when making a C++ game. Or at least what I should learn. I've heard people mention stuff as DarkG...
[4 replies] Last: D; (by closed account N36fSL3A)
Word extraction problem
 
An error appears when the program runs , I deduced that is happens after/during "cout<<name" in client class. My biggest concern is that I don't understand the ...
[no replies]
How do I print a specific section of a char array?
 
Hi im new to the forum and this is my first post. I want to print burp first, then followed by b, followed by u, followed by rp. #include <iostream> #include...
[6 replies] Last: First lets take care of your errors. 1) You need to use int main() ... (by closed account 3qX21hU5)
by teand2
Two questions
 
First, I'm getting ambiguous cout error but I cannot what's causing it. Can someone find it? Second, on Line 23, I know there isn't a null character in strings...
[4 replies] Last: lol Zereo I was trying that just as you posted. Also, the ambiguous we... (by teand2)
May 2013 Pages: 1... 4344454647... 66
  Archived months: [apr2013] [jun2013]

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