Beginners - December 2009 (Page 11)

by btripp
'operator +' has too many parameters???
 
This is to be used in my linked list class. I have a couple of operators already. Im pretty sure I should get around this by changing the return type to List&...
[7 replies] Last: Thats exactly what I was thinking guestgulkan. The reason I thought th... (by btripp)
Install program
 
What is the best way to write an installer program?
[2 replies] Last: For Windows, I'm partial to Inno Setup http://www.jrsoftware.org/is... (by Duthomhas)
Different output for same expression
 
hi... can anyone say the reason for the different output that i get for the same expression... int a =5; int x; x=++a+a; int y=++a+a;
[10 replies] Last: http://www.parashift.com/c++-faq-lite/misc-technical-issues.html#faq-3... (by Duthomhas)
loop
 
This is my loop with int variable stop being 6 and the int variable sum value being 0. What am I doing wrong? I am receiving no output. for (int num =...
[4 replies] Last: Is your console shutting down right away to where you don't even get t... (by Mythios)
matrix
 
I am trying to make a software that reauires a matrix like this 1 4 0.4 0.8 0.9 4 5 8 15 25 68 19 14 0.8 0.15 5 45 2 7 8 6 1 9 0 5 17 5 9 1 7 0.5 0.18 0.16 ...
[3 replies] Last: The code is supposed to calculate a linear equation for a software tha... (by eduard77)
replacing line of text problems
 
So I'm working on my C++ final and I'm having a problem replacing a line in a text file. The code is supposed to look through the list and replace the work "ope...
[4 replies] Last: Hmmm why do the comments always come up stuffed when I paste them in :... (by Mythios)
test condition
 
is the test-condition in a for statement is tested at the end of each pass? I am very confused on this topic. Thanks!
[2 replies] Last: Yes a for loop like this: for(int i = 0; i < 10; ++i) { //stu... (by firedraco)
GUI?
 
I was wondering if anyone knew of any GUI tutorials. I would like to code my GUI with visual studio. What is the best way to do this?
[11 replies] Last: also what about writing an installer program? Does anyone have any pr... (by helios)
Word counting program using sets
 
Hi, I'm new here. I need help with a c++ program. The goal of the program is to produce a count of the number of times each word occurs in Macbeth, except t...
[2 replies] Last: Thanks! (by felixcamp3)
by GRH
ToH
 
I've created the Towers of Hanoi recursive version, but to my dismay I now see that I have to create one iteratively as well 1. Always move the smallest disc f...
[2 replies] Last: Nah, that uses alot of things I can't even use.. isn't there a way to ... (by GRH)
what is the wrong ?
 
# include <iostream> using namespace std ; int main () { char objfun ; cout << " Please Enter (X) to maxmization and (N) to minmization : " ; ...
[4 replies] Last: if you use new remember to delete (by Disch)
by JRevor
ofstream question
 
This should create a file containing '1'. However, it does not create anything at all. What is going on? int a = 1; cout << a << endl; o...
[2 replies] Last: . yeah.. that was the error. I thought the vector was indexed from 1 t... (by JRevor)
by drzura
passing a class arguement to a function?
 
Hello. I am in the process of trying to write the Game of Life for my programming class. How do I pass a class as an arguement to another function?? In the c...
[2 replies] Last: Thanks for the help Disch. You guys are awesome here. (by drzura)
[C++] Complete beginner at C++, question about overflows
 
Hello everyone, thanks for clicking my message and taking the time to read it, let me introduce myself. Ever since middle school I dreamed about becoming a c...
[1 reply] : That's outdated, even for 1998. "int" nowadays is typically 32 bits... (by Disch)
by harryp
Main return type
 
How should I define main() function - with return type void or int? Actually my teacher says that it's better to use void type '.' main function is called impl...
[9 replies] Last: I don't intend to break the standard, it's just that I don't like to ... (by Bazzy)
Where to begin to start.
 
cout << "Hello Everyone!"; So my ultimate goals for programming, and why I'm trying to learn C++ in the first place, is to develop my own game engine, and su...
[14 replies] Last: Hey if you could, that would be awesome! Even if some of the informati... (by Gaston19)
array of strings problem
 
When ever I include an array of strings, once the file compiles and links it crashes. Does anybody know the cause of this and possibly a fix?
[5 replies] Last: yea while array elements start at the zeroth element that doesn't mean... (by gcampton)
stdio alignment?
 
Is there a way in stdio to align my text? Something like this: int i = 1; int b = 21; printf("num: %align(i)",6); printf("num: %align(b)",6); That...
[6 replies] Last: you can also use minus symbol to make things left justified. %-3d %-... (by gcampton)
moving text characters in the console window?
 
hi does anybody know the code to move text characters in the console window? or maybe a link? i couldnt find any but i think it might have some thing to do w...
[7 replies] Last: U'd be able to rewrite this code: cout << mp1 << mp2 <<... (by melkiy)
by harryp
Heaps
 
Can anyone please suggest me a good detailed tutorial on HEAPS and other data structures?
[2 replies] Last: Well for now I just am starting on heaps. Thanks (by harryp)
December 2009 Pages: 1... 910111213... 23
  Archived months: [nov2009] [jan2010]

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