Beginners - February 2010 (Page 12)

Type Declarations and Division Accuracy?
 
Hello, all. I have a very simple problem, but it's making me crazy, and I'd appreciate it if anyone could shed some light on this for me: float quotient; qu...
[2 replies] Last: kbw, thanks for your rapid and enlightening response. With my versi... (by vencabot)
Is it just me but are there just not any good class examples
 
I am new to OOP and cant find a good tutorial for Classes.. I get the basic concept but every time I find a tutorial with an example the example is useless. ...
[3 replies] Last: Well functions perform a task, whereas classes represent a "thing". ... (by Disch)
class variables
 
Can anyone tell me why, when I set a private string variable in a class in one function. when i go to another function and use a getXXX() function to get that p...
[8 replies] Last: Thanks mate that helped alot! (by xyriene)
Is it possible to use forward declaration with a template class?
 
Is possible to foward declare a template? Testing says I couldn't, but maybe I didn't write the code right (which is what is included below) class aFrien...
[2 replies] Last: Although you don't need to forward declare friends. It looks lik... (by AlwaysLearning)
Basic Loop
 
I'm working on this loop where i can add all odd integers. (ex: 1 + 3 + 5 + 7 = 16) I have to make sure any input value from 1-10000 will work. I don't know the...
[9 replies] Last: while (i <= 10000) what the! of course it will output sum == 10000.... (by olredixsis)
Getting Started
 
I tried learning C++ a couple years ago, and ended up quitting due to a vast amount of confusion. Since then, I've learned quite a bit about Java programming la...
[2 replies] Last: Actually, you're right about Eclipse, I didn't see that. I also now... (by shadowayex)
by peaco
Linked List
 
I have the following functions: void list::insert(const ElementType &item) { nodeptr prevNode = first; nodeptr newNode = new Node(item); node...
[8 replies] Last: I updated previous post with all code. I compile and link list.cpp ... (by peaco)
is there something wrong with my formatting?
 
Im trying to write a program that will print the numbers from 1-100 in this format: 1 3 5 7 9 12 14 16 18 20 21 23 25 27 29 32 34 36 38 40 41 43 45 47 49 ...
[14 replies] Last: @harini1111 comment: C-style programming. use cout instead of printf.... (by olredixsis)
For loop problems.
 
It seems like my for loop is running through code when it should wait. Could someone look at it & tell me why it's doing this? Extra caveats: The problem...
[9 replies] Last: thanks roshi. A master, you are. (by brokenbot)
[Linker error] -- won't compile
 
Hey, I'm having a little trouble with my program. I asked my friend, and the teacher's assistant and they both can't help. Can anyone see the problem with my pr...
[5 replies] Last: @ Computergeek: No, my code is correct. *filename is bad because... (by Disch)
Reading and Writing From Text File & Label Problems
 
Hello. I have been working on a simple program (GamerNet), and I keep getting the same errors, no matter what modifications I use. Here's the source code: #...
[2 replies] Last: Thanks! While you modified my code, I was searching around some more ... (by GMTechnical)
C++ Assignment Errors
 
I am having trouble with one of my school assignments. If someone can please help me with my errors I would be extremely happy! I will include my assignment, ...
[15 replies] Last: Test1.cpp #include "Account.h" #include "Customer.h" #include ... (by tarheelfan08)
by Timbo1
SDL Errors
 
I have started using SDL and am having trouble. Please bear in mind I AM ONLY 13. I have this code: #include <SDL/SDL.h> #include <SDL/SDL_image.h> #i...
[1 reply] : 1. you missed 'switch' on line 146 2. there are no such variables as ... (by hamsterman)
#include <windows.h>
 
Why would you get a compiler error saying that no such file or directory exists when you try and use the windows.h file? Its included as #include <windows.h>.
[8 replies] Last: The current MinGW msi applies the Win32 API for you, but otherwise you... (by Duthomhas)
trouble with using classes
 
I have an assignment where I need to write a program that calculates and prints the parking charges for each of four customers who parked their cars in this gar...
[1 reply] : You're more then 3/4 done what's the trouble? If you don't know how to... (by Computergeek01)
by cppbeg
trouble with input
 
njknjk
[2 replies] Last: I don't see a question here. Maybe it's the reason that guestgulkan po... (by Computergeek01)
Calling Two Functions Simultaneously
 
Hi all, just wondering if it is possible to call two functions at the same time? basically, i have created two functions, each of which plays a MIDI tune in ...
[5 replies] Last: What? Don't say that. Help is always good. (by Duthomhas)
Computer guessing game, where the computer guesses my number from 1-76
 
I'm having trouble with my program.The program should use the random number generator (where I seed the generator, and only seed it once per program when i run ...
[3 replies] Last: sorry if that wasn't helpful, the OP's can do that. I'm not authorize... (by foobarbaz)
by Nikoru
Question involving Graphics?
 
Okay, so I want to add some graphics to a c++ program. However, I am having trouble getting my compiler to load up the pictures. I have added the pics into the ...
[2 replies] Last: I found this interesting http://en.wikipedia.org/wiki/Comparison_of... (by foobarbaz)
uno card
 
uno card design
[6 replies] Last: i have design it.. (by jobarteh88)
February 2010 Pages: 1... 1011121314... 32
  Archived months: [jan2010] [mar2010]

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