Beginners - March 2009 (Page 27)

by Meema
Overloading operators
 
Hello Everyone, I am very new in programming and have a problem that I have no idea as to how to solve. I was recommended to register on this site and told t...
[1 reply] : Look up information on classes first. Create a fraction class to do t... (by firedraco)
by kryz
Shapes/Calculation program
 
Ok... I might be missing something or whatever in the program. The assignment is to allow user to enter in a shape and its dimensions in a file. Also, to calcul...
[6 replies] Last: Nevermind about that. It was compiler issue that I've installed wrong.... (by kryz)
converting int to one single char
 
So far I got the program to output the integers but not the Xs... If I pick 5 for example my program outputs 12345 instead of XXXXX Can someone provide a hi...
[4 replies] Last: True, he did seem to have a loop of sorts. Unless... Say, could you ... (by Albatross)
Exercise Calculator
 
Hello, I am a beginner in the world of C++. I have been asked to perform the following task for a class that I am in. I am not looking for somone to do my wo...
[4 replies] Last: Start using a for loop that counts from 0-6 or 1-7 or whatever and the... (by eker676)
error on overloaded string extraction operator
 
Hi, I'm creating a class BigInt which will be able to hold up to a 200 digit whole number, we want to be able to use it the same way you would use a regular int...
[1 reply] : 1) This will not work because there is no class called BigInt to acces... (by firedraco)
modulo and divide looping?
 
if a number is divided by 10 the remainder will be the last digit.e.g 487 % 10 is 7. dividing the number by 10 and then finding remainder then 487/10 =4...
[2 replies] Last: if you're using the int datatype, you're capped somewhere around 8 or ... (by omegazero)
#include <iostream>
 
So I recently started C++ but in the beginning you must always include something my theory is that it is a library of things you can read from like the followin...
[3 replies] Last: If you want a good tutorial try this: http://www.cplusplus.com/doc/tut... (by Bazzy)
by Oromis
Memory vs. Speed
 
I'm making a BlackJack game in SDL. The cards in this game are generated using a 'front-card background', the symbols of the four colors (hearts, spades, diamon...
[2 replies] Last: Thanks for your answer. I know about the multiple decks, but I'm wr... (by Oromis)
C++ Program to Unzip a zip File
 
Hello Friends, I would like to unzip (extract) content ( mainly *.txt files) of Zip file in the same or speciafied directory using C++ ( MS Visual Studio V...
[1 reply] : http://www.zlib.net/ (by Zaita)
by cr1901
scanf() pointers vs. variables
 
I know in the <cstdio> library that passing variables through scanf("string", pointers) will cause the program to crash. Besides being a matter of form, is ther...
[1 reply] : Why are you using scanf? And not something like getline() etc? (by Zaita)
numeric to string conversion...
 
i want to program which look like this input: 100.00 ouput: abb.bb anyone have an idea pls i need it urgently ;;
[2 replies] Last: http://www.cplusplus.com/forum/articles/1295/ We don't provide homewo... (by Zaita)
i'm almost ther , but still my code works incompletely.
 
my professor said:i should get the sizeof array and then use modulus so i can apply merging. example: Input number of items to sort(must be divisible by 3, ...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ You haven't asked a que... (by Zaita)
Looping issue with BankAccount code
 
My apologies for bothering any of you all, but I have a looping issue with the following code. I'm using Visual C++ 2008, and the code compiles just fine, but i...
[2 replies] Last: http://www.cplusplus.com/forum/articles/6046/ That link shows you how... (by Zaita)
Question about recursive class members
 
I apologize if this has been asked before but I'm actually really not even sure what keyword to search for that explains the question I have -- gotta love those...
[1 reply] : Ok. Inheritence is really easy to decide, it comes down to 1 simple q... (by Zaita)
by omk
Searching and Acting upon tags in a file.
 
Hi, Im trying to make a tool that will read strings from files and place data from those files into classes and its datamembers based on what the tags before...
[4 replies] Last: Yea, read it in and parse it manually as strings. A real PITA but at y... (by Zaita)
how to convert MS visual c++ codes to dev c++?
 
i saw this code from a website by mr. Muhammad Tahir Shahzad but i can't run it in dev c++, please help me debug it so i can run it with dev c++ /***********...
[8 replies] Last: I was suppose to add, don't use Dev-C++ as it's no longer supported. D... (by Zaita)
Don't understand teachers instructions
 
So my professor recently gave us this assignment and I don't understand a lot of it because it deals with rand() and srand() which my professor didn't cover tha...
[2 replies] Last: You could just use a map<int,int> that stores the random number as a k... (by seymore15074)
by Oromis
How often refresh the screen?
 
In motion, you need to regulate the frame-time. But what should be done when the program is waiting for 'input'? For example (reason for the question); I'm m...
[3 replies] Last: Thanks for the answers. I do have a littly experience with windows-... (by Oromis)
How to have classes call each other's method?
 
i have read the topic at http://www.cplusplus.com/forum/beginner/6075/ it is helpful. but i have a further question: how these two objects call each other's me...
[3 replies] Last: still curious if its possible just using forward declaration?? Sim... (by closed account z05DSL3A)
finding out if integer is multiple of 3
 
this is what i have so far. I need to modify this with arithmetic operators to find out whether or not the integer is a multiple of 3. #include <iostream...
[1 reply] : This can be done very easily using the modulo (%) operator. It gives ... (by jdd)
March 2009 Pages: 1... 2526272829
  Archived months: [feb2009] [apr2009]

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