Beginners - April 2012 (Page 61)

calling functions
 
my function calls aren't working this is where most of them are char gameBoard ; clearBoard(gameBoard,BOARD_SIZE); while (checkEndGame == 0 && numTur...
[11 replies] Last: You call it. while ( 0 == checkEndGame(gameBoard, BOARD_SIZE) && num... (by cire)
String manipulation
 
Working to compare two strings. I want to detect if there is a 1 character deletion between the strings and if not return false. My code is not properly detecti...
[5 replies] Last: If there's only one letter left to compare and difference is 0, it's a... (by cire)
strings. what was I doing wrong?
 
so I know this isn't the best way to find a max sequence in a string but it was a work in progress and an idea, problem is I couldn't even get it to run. I k...
[1 reply] : on line 17 you set j so that j == i You never check to make sure j is... (by Disch)
War (The Card Game)
 
I'm fiddling with a simple implementation of the card game War, and I've hit a bit of a snag: how best to arrange the classes representing the individual player...
[1 reply] : if you know how to use classes this should be very easy ... just make ... (by TwoOfDiamonds)
Add and divide money function
 
I have a project where i need to get the user to input some dollar amounts and then add them and then get the average, however im having trouble with the add an...
[5 replies] Last: @paper32 I know its a mess thats why i need help Look at my first po... (by Shinigami)
by EeAA
build linked list from text file
 
Hello Everyone! I need help to create a buildList function that will build a linked list by inserting one int at a time into the front of the linked list from...
[no replies]
Functions
 
I am having trouble running or even coming up with the functions to put in the void and double sections. Can anyone help with the blank spaces of my program so ...
[2 replies] Last: define your functions below main please. kick our the system pause,... (by Joshua Spears)
maximum sorted subsequence in a string problem
 
My assignment is: Write an efficient algorithm to find the maximum sorted subsequence in a string. For example: aaaaaaabbbbbb returns ab aaaaaaabbbbbbccdd...
[5 replies] Last: I just did a very naïve version for fun. (It is really stupid, though... (by Duthomhas)
Array searching removing elements
 
Hello, I am having trouble working with an array problem, searching and deleting ints.Any help would be very appreciated. Thank you very much! Goals: -array ...
[1 reply] : there are vectors... and your display vector loop is wrong. EDIT: htt... (by ui uiho)
by findme
if statement with files
 
I am attempting to make a program where a person enters a name of a person located on a line in the text file. If the name is in the program, the program will s...
[3 replies] Last: getline will get all chars including white space until a new line char... (by ui uiho)
Small function problem
 
I'm getting a compiler error that I can't seem to figure out. It's telling me that "out" is undefined, but I have it defined. //Here is the declaration c...
[1 reply] : This is the line thats the problem: out << "Ifix is: " << ifix << end... (by closed account G854izwU)
I NEED HELP
 
hi, i am new to C++... i am working on a graded homework.. its a program that asks to: *enter an amount in $ *let the program display the dollar amount as ...
[5 replies] Last: While in a production app that requires real precision (anything deali... (by naraku9333)
wxDev-C++ or Code::Block
 
Which one that is better wxDev-C++ or Code::Block? Thanks
[7 replies] Last: To equivicalize Code::Blocks with Chocolate is like saying Xorg isn't ... (by closed account S6k9GNh0)
Encryption
 
Hello! So I am having trouble getting started with a program. The point of the assignment is to use a one time pad encryption algorithm. So my assignment ...
[5 replies] Last: Still struggling to get started =/.. (by bubbles)
by arooj
Help with a letter guessing game
 
I have a problem with this code in which an output keeps displaying endlessly and incorrectly. My output should help clarify. I think there is something wrong w...
[no replies]
I have NO idea what this error is
 
It states: Run-Time Check Failure#2 - Stack around the variable 'list' was corrupted. Can anyone help me figure this out? This program runs and it does what its...
[5 replies] Last: Thanks for your input guys You. Rock. (by beeginner)
How do you create a txt file from c++¿?
 
I would like to create a txt file where I would have hosted datas from the code. Can anybody help me?
[1 reply] : #include <ftstream> int main(){ std::ofstream file; file.open("filelo... (by ui uiho)
by bbsaid
I cannot find .cpp file in Sources Files
 
Dear All, sorry for this silly question but I am quite new to C++. I created new empty project and I clicked right SourceFile > New Item > Visual C++ > Code...
[2 replies] Last: thank you for your reply. It is not an existing item because I havent ... (by bbsaid)
by nnxen
Splitting a string into multiple strings line by line
 
I'm new to C++ but competent in VB, and I've just come to play about with strings in C++. I'm writing a function that manipulates a string variable (using t...
[2 replies] Last: Thanks for that! :) That's useful to know, much easier way to do it! ... (by nnxen)
Different Learning Approach
 
I am starting to dabble in a few programming languages since I really want to have a career in the near future that is software related and I had a question abo...
[4 replies] Last: With either C# or Java, it should not be hard to make a simple GUI pro... (by Mathhead200)
April 2012 Pages: 1... 5960616263... 66
  Archived months: [mar2012] [may2012]

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