Beginners - February 2009 (Page 17)

by ghamon
[SOLVED] creating a subclass from an abstract class EDITED : NEW PROBLEM
 
I am trying to use a keyListener class from OIS (Object Oriented Input system) that looks as follows : //from OIS.h class _OISExport KeyListener { ...
[2 replies] Last: solved thank you ! (by ghamon)
by Sathed
Polymorphism and the broken laptop!
 
I'm going to punch my laptop in the face... aka the screen! Here's my code: // File Prologue // Author: Clint Pedersen // Course: CS 1400-002 // Proj...
[4 replies] Last: Never doubt the compiler. It knows more than you do. I also know mo... (by helios)
by Brutal
adding count to a var problem =/
 
Ok I am trying to do a while statement and cannot figure out how to add the count to a name of an input =/ By looking at it you will get the just of what I am...
[4 replies] Last: OK, thanks for your help =] (by Brutal)
by tke301
Display the largest and smallest integers
 
I have this programming question that asks a user to enter a series of integers, to end input of the integers the user needs to input -99. Once all the integer...
[3 replies] Last: Thanks for the helpful tips, I got the code to work...much appreciated... (by tke301)
stuck in math
 
well I've gone nuts making the coolest and biggest calculator type programs and they will even do all kinds of polygon geometry calculations including drawing t...
[2 replies] Last: Oh wow! Thank you so much Scipio. The first link didn't work but I wen... (by hardstylurr)
method pointer question
 
i'm trying to use method pointers to simplify my logic. however, i'm getting compile errors and i dont know why. any help would be appreciated. -- in my he...
[4 replies] Last: The answer is because every member function, by virtue of being a memb... (by jsmith)
Visual C++ (windows XP) can't compile #include <iostream>
 
I'm all new to C++ I wanted to check out if I could compile one easy script, that began with #include <iostream> When I compile the script i get 200 lines...
[6 replies] Last: c and c++ are different languages, aldo they're really similar. But no... (by Scipio)
by quant
C: printf str
 
hi all, for (i=0;i<4; i++) { id = (address >> (24-i*8)) & 0xFF; p->srt += ntohs(id ); if(i < 3) { p->srt += ntohs("."); } printf("%u",p->srt); ...
[4 replies] Last: Hm, possible I do a mistake. Because function ntohs would be return in... (by quant)
by Claymz
memory
 
i was just wondering, which program is best if were looking at mamory in first version of program, sign is created only once, and in second ver. its created ...
[2 replies] Last: With a good optimizing compiler, the loops should be equivalent, in th... (by jsmith)
[Error] funtion calling and missing argument
 
Description: Error 1 error C3867: 'MisFunciones::cuadrado': function call missing argument list; use '&MisFunciones::cuadrado' to create a pointer to member ...
[15 replies] Last: Thanks for everything, I will write the code again, without erasing th... (by PSPMAN90)
I can accept that system('') is bad, but...
 
Hey oh I joined here after reading over the long posting on the troubles with system('') anything, this function being bad one to use. I have worked throug...
[2 replies] Last: @helios I saw you do the ascii facepalm, and rather I feel that way... (by keeperofthegood)
linking file stream with input file?
 
ok i was given an assignment but i have no clue how to do this. can someone please explain to me what i'm supposed to do cause i'm really lost. this is the prom...
[1 reply] : Don't double post. (by helios)
error C2011 while compiling class
 
I have been working on our new assignment, which is a statistics class. I had the header and implementation files all written and could not get them to compile...
[5 replies] Last: It's included in some file included by some file [...] included by ios... (by helios)
by Xyzk
Two different strings get same value
 
My program is supposed to 1. read how many numbers will be given 2. read thix x numbers 3. give us sum of all numbers Program has to tell the result in shor...
[11 replies] Last: Well as I didn`t have enough time to use all your advices, my program ... (by Xyzk)
by lerwys
Linking Headers - Doubly Linked List
 
Hi all, I'm having some trouble about linking my project with the IDE Visual Studio C++ 2008. If anyone could help me I would be thankful. See code below:...
[7 replies] Last: Well, for what I have been reading about software enginnering the prof... (by lerwys)
by SioS
How to get started in C++
 
I'm a grade 12 student and i'm in a programming class, what they teach is VERY basic. I'm wondering what others have done to learn basics and on from there. so ...
[6 replies] Last: Deitel Books are good but very expensive. If don't have the slightest ... (by eker676)
by berge
how does exists() work?
 
I have seen the function exists() been used in source codes, but can't find any information about how this function works. So how does this function work?
[1 reply] : It's not a standard function, so you'll have to give a little more inf... (by helios)
by wretch
cannot convert from 'char *' to 'char [20]
 
void main() { char charray ="charray"; string strPtr1="charray2"; strPtr1 = charray; //this compiles charray = strPtr1 ; //this will compile c...
[1 reply] : charray = &(strPtr1 ); What you want to do here is not possible wit... (by helios)
Overloading Operators
 
I am currently reading this topic. The textbook gives an example but cannot function properly. I am using Dev-C++. It uses the operator +, to make it a tool to...
[3 replies] Last: The way you're using it, yes, you should see "Obama" acting as the arg... (by RedXV)
by airowe
Output Error
 
I can't figure out why I'm getting Your balance is 1.6767e-307 when I hit b after the first prompt. Any ideas? #include<iostream> using namespace s...
[3 replies] Last: Return 0, Thanks. An overlooked error on my part about the double ... (by airowe)
February 2009 Pages: 1... 1516171819... 22
  Archived months: [jan2009] [mar2009]

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