Beginners - March 2011 (Page 41)

How do I perfect this? :D
 
A fairly simple program used to solve the missing length of a right triangle! It works perfectly fine but I would like to know what i could do to the code to ma...
[1 reply] : Improvement suggestions: 1)Replace the goto by a loop. Makes the wh... (by hanst99)
Histogram program
 
I am trying to make a histogram program with two different histograms. The data is brought in by cin and consists of two columns the first being number of grai...
[no replies]
Scope of base class
 
Hi All i am still a little confused with scoping methods of a base class for a derived class. class A { private: int a; public : void doSmt...
[3 replies] Last: Let's just put it simple: public inheritence is basically inheritance.... (by hanst99)
by lalala
output keeps running on
 
My output keeps running on and when I put a for loop at the beginning only one line works. Can someone please help me. Thanks in advance. #include...
[1 reply] : #include <iostream> #include <string> using namespace std; i... (by vlad61)
Reading strings and integers from .txt file and printing output as strings only
 
Hello, I'm new to C++, and I'm trying to write a short C++ program that reads lines of text from a file, with each line containing one integer key and one alp...
[1 reply] : Hint: Look at what your output does. Suggestion: Close the file using... (by hanst99)
trouble getting functions to work right
 
i cant get it to print the area, it basically just prints the number 1 for no reason, also i am having issues with my functions, can anyone help explain why you...
[3 replies] Last: Well yeah, I can tell you why. void PrintResults( int gallons, i... (by hanst99)
Pointers not working?
 
Hello, I'm having an issue trying to get a code to work, its a call by Reference program, and I've gotten everything to work right, tax rate show up, dues, brea...
[5 replies] Last: No, what I mean is this: taxRate = FICA_RATE/* This part doesn... (by hanst99)
A good C++ GUI Library
 
Hey does anyone know any good C++ libraries that allow you to design GUI Applications and that work with CodeBlocks? I need a library that doesn't change the C+...
[5 replies] Last: In windows it's done through callbacks, and letting windows do it's jo... (by hanst99)
Initialize static template class data members
 
I'm having an issue with declaring and initializing in a small manageable way, the two alternatives which I know do work aren't exactly ideal. 1) Specialized...
[2 replies] Last: Sorry, that was a typo. Thankyou, placing the initialization in the... (by Krisando)
Image File Type
 
What sort of Image file type what would work in C++ and leave the background of the image transpartent?
[2 replies] Last: +1 Computergeek01 I always use png's for my transparency in my game... (by ultifinitus)
Need suggestions for C++ OOP concepts for beginners
 
Hi all, I'm new to OOP concepts and Data Structures of C++. I'm very much comfortable with Java OOP. So I would like some suggestions from you guys on the bo...
[no replies]
Method return types
 
Please explain the difference between following methods. I need to know what they actually returns and their use. Both complied and ran same way, class Cl...
[2 replies] Last: Yes, thank you. (by rajimrt)
pointer question
 
Create a class that obtains storage for integers. It should have a store() function to insert an int value at the next available location and a get() function...
[no replies]
Preprocessor Directive Question
 
In the sys/types.h header, I've noticed some preprocessor directive defines( #define ) that haven't been assigned a value. Here's what I'm on about if you d...
[3 replies] Last: Thanks for your replies. (by closed account zb0S216C)
Read float data from txt file to array
 
I've got a data file where each row has a float with two decimal precision, where each row represents a month, and there are 28 years worth of data. I'm trying...
[3 replies] Last: Nevermind; it seems to be working now! (by mybluesock)
Is std::tr1::ref really pass the reference?
 
I saw both of std::tr1::ref and std::ref in GCC4.5 what are the differents between them? Is ref really pass the address of variable into the functor or cap...
[no replies]
Pyramid of X's
 
This is my first time on the forum and I have a problem of printing a Pyramid of X's. The Pyramid should be 20 lines high. I have to use three for loops to p...
[2 replies] Last: I for one love when teachers give you the wrong instructions in your a... (by Computergeek01)
malloc crash
 
Hi all, I have written a simple program that runs OK within Visual Studio 10 (both Debug and Release), but it crashes when I run the program directly from t...
[2 replies] Last: file1 , fp , and pcap_dump_open aren't declared; what header files... (by Moschops)
What's big-O notation
 
I'm sorry I'm new to programming!
[1 reply] : It's a way to show the complexity of an algorithm http://en.wikipedia... (by Bazzy)
Tic Tac Toe using 2d Array
 
I have rewritten my tic tac toe console game using a 2d array. I'm having trouble making it work though. Line 48 to 93 checks to see if the players move is v...
[3 replies] Last: Here's one I made a while back. This is the code for checking for a... (by Lynx876)
March 2011 Pages: 1... 3940414243... 52
  Archived months: [feb2011] [apr2011]

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