Beginners - February 2013 (Page 60)

do while loop
 
I am trying to write a do while loop that asks the user for a series of integers one at a time, and when the integer 0 is entered, it has to display the number ...
[2 replies] Last: First, a couple of points ... if (a, b, c, d = 0) The above code... (by jim80y)
by hvigil
String Problem
 
Hey guys, I was wondering if you could help me out with this problem on my program. I ask the user to guess a letter. If the letter is not found in the string ,...
[3 replies] Last: how do I fix it, if I put it in the for loop it will print "wrong" man... (by hvigil)
Unsolved External
 
Hey guys I was just trying out Visual C++ Express 2010. Keep on getting this error. 1>------ Build started: Project: SomethingElse, Configuration: Debug Win32...
[1 reply] : Is this source file included in your project or just open in the edito... (by cire)
How to change fonts in C++?
 
I found a topic close to this on this site but it was closed and didnt fully teach you how to do it (the guy posted code with errors in it and everyone correcte...
[3 replies] Last: Thanks, I am new. I have actually Moved on to API. ME and friends are ... (by Willmannn)
If comparison is not working properly
 
Simple example: A windows form with a textbox for password, button for event, and label for go or no go private: System::Void button1_Click(System::Object...
[4 replies] Last: txtPassword and setPassword are pointers to System::String objects. Y... (by jim80y)
Arrays
 
Hi i am trying to write a function using my own addition algorithm and printing it out using arrays.. I am having trouble printing it out. I keep getting a memo...
[1 reply] : I think you have a problem with your loop, it's hard to tell because o... (by randisking)
What is "void" good for?
 
I read in my book that it's "no data". Void pointers can used on most variables etc. I'm not really sure on when the best times are to use void.
[7 replies] Last: Thank you so much guys, that clears up a lot. (by Austin J)
find a word in a string array sentence
 
We have to make a program where you ask the user to input a sentence and a word. Then, the program will check if the word is in the sentence. If it is, it will ...
[8 replies] Last: Also keep in mind that if a word starts the very first word of the sen... (by randisking)
by SeanKD
Handling user input of a type double variable
 
I am currently taking a course in C++ programming at college. I wrote the function getDoubleInput to better handle user input of a variable of type double. I w...
[2 replies] Last: There's no main() function because this function is meant to be called... (by SeanKD)
by ckw77
Craps Game Help
 
I have to create a craps game. I hope everybody already knows how craps work. But I need this to include a function, something about a pause. It will not work. ...
[6 replies] Last: i tried your code. if you add these lines: return 0; } you can w... (by karakale)
by Dannie
Need Help Converting Pseudocode to C++ to find Branch-and-Bound for the Early/Tardy Problem with a Common Due-Date
 
// main() function. // It initiates the search for the optimal solution. main() // Create the root node. create(root_node) root_node.Type := LEAF root_no...
[1 reply] : Write a node class. There are some functions in pseudocode. Define the... (by karakale)
Classes
 
solved, thanks
[7 replies] Last: erm.. yea that was pretty stupid of me.. get back to you in 5 haha, ... (by Pieface)
by ggplz
[homework] Craps simulation
 
I've been learning C++ for the past 2 weeks and this is my assignment: Craps is a simple dice game often played in casinos. A player throws a pair of dice (o...
[7 replies] Last: I'm going to move this to the thread you've created, so as to not hija... (by MrHutch)
Software or tool to run and compile a C++ Code
 
Hi, I am very new to C++ and i dont even know of any tool .So,can someone please help me with the name of a tool which is nice and reliable to run and compil...
[2 replies] Last: Dev C++ http://orwelldevcpp.blogspot.com/2012/12/dev-c-5304-released.h... (by SamuelAdams)
Class Declarations with JPEG
 
I am trying to write my own class, and would like to add a picture as part of the class. How can I do it? I am using either CodeBlocks or Visual C++ 2010
[4 replies] Last: CImg can be downloaded from here. ((I have had it for some time but ... (by guestgulkan)
[homework] Reading in numbers and integers
 
I am in a C++ class at my college and I am having trouble reading in strings and integers. I will post the instructions, text file, and my code and any help or ...
[4 replies] Last: well I think you can pass an additional argument to getline: (this is ... (by cPlusN00b)
by delmi
Initializing a variable in the function argument is giving me an error
 
For this code below, I am getting these errors: default argument given for parameter 1 of `void Point::print(double)' after previous specification in `void...
[4 replies] Last: You're welcome! If you're still following this.. I wonder if you shoul... (by cPlusN00b)
Comparing ints & using sstream with get functions
 
Hi Guys This is my first question here, so I hope it's clear enough :) Today I had my first exam in c++ in uni - I study computer science - and I didn't get...
[2 replies] Last: Thanks, The second issue is resolved. I changed it to this now: ... (by Nouri Alnahawi)
by herold
Confusion in find function of algorithm
 
Hi, Here is my program definition: Create a student class that include a student's first name and his roll_number.Create five objects of this class and store ...
[5 replies] Last: The predicate is a function object that you, the programmer, are suppl... (by Cubbi)
Finding longest palindrome
 
Ok so i have this int a ={9,5,3,3,3,6,5,6,4,3,3,4,6} and i need to find the longest palindrome there could anyone explain and give me the algorithm please? ...
[16 replies] Last: You can simply substitute the sizeof( array ) with the length of the... (by Lynx876)
February 2013 Pages: 1... 5859606162... 67
  Archived months: [jan2013] [mar2013]

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