Beginners - November 2010 (Page 9)

addition
 
hi..someone please tell me what's wrong with my program?!and what to do with this?.. #include <stdio.h> #include <stdlib.h> int main () { int integer1,...
[2 replies] Last: thanks....XD (by djdashwood)
enum - typedef enum problem
 
printf("Hello,i'm new to c++ programming and programming in general.I'm trying to build a console application in netbeans IDE 6.8 that counts time in 5 shorting...
[2 replies] Last: false, true and bool are key words. you cannot redefine them that way (by coder777)
Classic Problem: Compound Interest Calculator
 
Hi doing a class exercise where I have to create a compound interest calculator in C++ using a for loop (no functions) I've worked through 99% of it and actuall...
[5 replies] Last: @Browni3141 I posted the for loop I'm using for this exercise above...... (by ExponentialP)
Problems with one compiler error for Sorted List program
 
Implement the template class SortedList. Write a simple driver that reads values from file float.txt, inserts them into the list, prints the length of the final...
[1 reply] : Hi, after trying your code for a while I managed to find the error ... (by shredded)
It wont acknowledge my functions
 
Hey I'm a beginner in the art of C++ and I really cant see the problem here. My goal is to make a little noob-program that asks to put in so many dirty words yo...
[3 replies] Last: In reply to Athar: aaaaah so THATS whats the "return" is for.... ok, ... (by The Failing Student)
Question from class cant seem to type cast +another issue
 
Hi all, I recently got an extra credit assignment for my intro to c++ class and I'm having 2 slight problems. One is if I make the variable "cannleft" see...
[1 reply] : I used setprecision(0)<<fixed; to force the decimals away, but the day... (by syntax010011)
problem with sizeof() function
 
Hello guys. i have a weird problem whenever i try to create a random access file using this function: Subclass base sizeof(Subclass)); the problem i g...
[2 replies] Last: Could you provide some sample code? I don't think that's supposed to h... (by PiMaster)
Converting char into C char* string
 
I've spent hours debugging my program and overlooked this as bring the problem. Weird values have been use instead because of this. If I were to write a nume...
[2 replies] Last: Wouldn't memset do the same kind of thing? I found the problem, for... (by Krisando)
Problems with class program
 
The problem is with the extract function. I can't figure out how to extract each word from the input stream. // Program summary // This program is made ...
[2 replies] Last: I understand what you did, thank you. (by cpluscpluc)
My Whole Program Needs Medical Attention
 
Honestly, I need some help, suggestions everything... You can insult anything I have got on here, please DO NOT CLAIM MY WORK AS YOUR OWN, I have spent three mo...
[4 replies] Last: Thanks I never thought about it like that! (by LittleQuick)
by Jsel
Vectors vs. Linked Lists
 
What advantages does each one have over the other? Are there any cases in which one should definitely be used rather than the other? Thanks.
[2 replies] Last: If you're going to do a lot of insertion/deletion definitely go for a ... (by filipe)
error: expected constructor, destructor, or type conversion before '=' token
 
I'm trying to compile this function and the compiler is giving me: "error: expected constructor, destructor, or type conversion before '=' token" for line 4 G...
[1 reply] : Is that all your CPP file contains? Your CPP file needs to either c... (by Zaita)
I need a simple (but full) example of how to changed directory with a win32 app
 
My code (shortened) looks like this: #include <iostream> #include <windows.h> main() { using std::cout; using std::cin; using std::endl; ...
[7 replies] Last: This sound's like your trying to build yourself an installer. Why don'... (by Zaita)
Always displayed lines/rows
 
Is it possible to keep the first two-three lines always displayed (with information that is able to change), while the next typed lines scroll behind those firs...
[6 replies] Last: @Duoas: Thanks for the link. @Disch: Very interesting topic. Thank... (by kkostas)
Unable to make sense of these compiler errors
 
I have spent days creating this program from psuado and origially had over sixty errors but now I am only down to four, but I don't understand them can anyone h...
[3 replies] Last: Your prototype for int readDials(int, int, int, int, int, int, int, i... (by Zaita)
by nquadr
problem with if else statement
 
// I am trying to code for shipping methods, but I keep getting this error //Error 1 error C2015: too many characters in constant// #include<iostream> #in...
[10 replies] Last: hi, "=" is an assignment operator, "==" is a comparison operator. ... (by obice)
Difference between arrays and pointers
 
Hey everyone, I was wondering why main() doesn't output 5 4 3 2 1? int* getPtrToArray(int& m) { int anArray = { 5, 4, 3, 2, 1 }; m = 5; ...
[2 replies] Last: Ah, I see. Thank you very much. (by thebagel)
Allegro Console Program Error
 
I've got a problem here... I get these errors when i want to make a console programs, using Allegro for an if(KeyDown) statement later. http://p18.img-up.net/...
[8 replies] Last: It's fine (: if i want to make some games text based 1 day, i can make... (by Anders4000)
Just started last week
 
I'm trying to learn quickly through a great book, experimenting along the way and trying new codes out on top of the ones given in the exercises. But this one I...
[3 replies] Last: It worked! I have a tendency to complicate things... thanks for this! (by tmassey28)
C++ PROGRAM problem
 
plz can any one vreate or help me in creating program dat works lyk dat if we enter any abrivation lyk TCP its output comes out Tranmission Control Protocol ....
[7 replies] Last: It looks like you completely ignored the advice Return 0 gave you in t... (by filipe)
November 2010 Pages: 1... 7891011... 42
  Archived months: [oct2010] [dec2010]

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