Beginners - July 2011 (Page 15)

by sf123
1/3=0?
 
I noticed that when I divide a small number by a large number such as 1/3 it is equal to 0. Is there any alternative for me to divide small number by a larger n...
[3 replies] Last: Yeah that will be fine also. (by LBEaston)
by Baso
problem with _atold and strtold
 
My compiler doesn't recognize the conversion string functions _atold() or strtold() I included the header #include<cstdlib> and #include<stdlib....
[2 replies] Last: Thanks Turbine for your replies I fixed it by using stold() functio... (by Baso)
Where to put .h and .cpp(imp)??
 
I need some help trying to create a class and I am confused about where to put the files. When creating an executable program including a class where do you inc...
[2 replies] Last: Yep, there are some exceptions where you must write the definition in ... (by Turbine)
problem with atoi function
 
i have numbers stored in my text file and i need to sort them..each number is been stored i a different line...here's my code #include<iostream> #include...
[14 replies] Last: Heres a detailed link about debugging in wxDev C++ http://wxdsgn.sourc... (by Nisheeth)
by codrgi
turn timegettime into minutes?
 
im using the TimeGetTime function, it works great but i have a question, when i set a variable as timegettime how would i turn that value into minutes or even s...
[1 reply] : Never heard of that function, it must be a Microsoft one. Assuming it ... (by Turbine)
graphic user interface
 
can i get a tutorial on GUI programming???i am using wxdev c++ on windows 7
[1 reply] : This combination you're using is quite simple to use, you can generall... (by Turbine)
what's wrong with this?
 
#include <iostream> using namespace std; void z() { cout << "z"; } int main() { cout << "the name of function: " << z; cout << endl; return 0; ...
[3 replies] Last: omg what a careless mistake! thx guys.. haha, long time didn't touch c... (by Eldy Voon)
multiple definition of... (class function)
 
class aClass { ... public: aClass(); // constructor aClassFun(double aParam); // public function }; This class, with its public function, is decl...
[7 replies] Last: Thanks everyone. The last post and the link to header guards made the ... (by paolopiace)
dynamic memory question
 
I just started learning c++. I'm using the tut on this site and I bought 2 books. I'm now experimenting with dynamic memory and I got confused. When I try to...
[3 replies] Last: Yes, do not forget that delete p only marks the memory spaces p poin... (by Maese909)
by omzy
How to step off the basics?
 
Hello, Omzy here : I was wondering how i could step off the begginer programming level off c++ to do more complex things. I started programming c++ for a r...
[4 replies] Last: There is a nice tutorial on this site http://cplusplus.com/doc/tutoria... (by Mathhead200)
by Method
Consol issue
 
For some reason, this little program I made to act as a cheat sheet for Ascii codes keeps displaying a new line and the number, '10', after the desired output. ...
[3 replies] Last: No problems. By the way, try to use the [code ] and quote templates... (by eidge)
2 SDL questions
 
1. I am trying to make a pong paddle move by holding down a button. Rigtht now, it doesnt move at all. Here are the functions that are suppose to move the pad...
[11 replies] Last: Okay i fixed it yVel was never intialized lol. Thanks everyone for hel... (by nano511)
test problem...undefined main
 
// Fig. 3.3: fig03_03.cpp // Define class GradeBook with a member function that takes a parameter; // Create a GradeBook object and call its displayMessage fun...
[5 replies] Last: ok i figured it out...i had to update code blocks (by metulburr)
#define and just declaration
 
What's the difference between #define BLAH_BLAH_BLAH 123 and int BLAH_BLAH_BLAH = 123; ? Thanks.
[7 replies] Last: I was assuming something like this. #define BLAH_1 123 const int ... (by shacktar)
two dimensional array bouns calculating program
 
This is a class assignment and I'm stuck to say the least. I have been working on it most of yesterday and today with no luck. Up until now I've gotten everythi...
[1 reply] : Couple of things, first and most important: remove your name from the ... (by Intrexa)
question about loops
 
i am writing a program for my introduction to c++ (and programming) class that has us writing code that determines the square root of a number using the formula...
[4 replies] Last: thank you that got it to work. thanks!!!!!!! (by seawolfmoose)
keyboard input question
 
hello everyone i am pretty new to C++ and have looked over many topics about this but cant seem to grasp it what i want to know is how can i have it to where i...
[1 reply] : Windows provides many functions to make using the keyboard easy. If yo... (by Intrexa)
Can someone explain this structure?
 
struct node { node(int data_p) { data=data_p; next=0; } int data; node *next; }; Line 3 is the problem for me. Have absolutely NO idea wha...
[5 replies] Last: Oh OK. That means we are entering the realms of C++. I was hoping I c... (by Sputnik)
odd and even test wont work
 
#include <iostream> using namespace std; int main () { cout << "please type in any number to define whether it is odd or even" << endl; cout << "If for some r...
[1 reply] : #include<iostream> using namespace std; int main() { int valu... (by creekist)
by nand
how to make dungeon crawl with classes?
 
Hello, I recently the dungeon crawl exercice (http://www.cplusplus.com/forum/articles/12974/) Make a program that outputs a simple grid based gameboard to...
[3 replies] Last: Hi, I implemented something that works using classes and a vector, as... (by nand)
July 2011 Pages: 1... 1314151617... 54
  Archived months: [jun2011] [aug2011]

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