Beginners - November 2009 (Page 8)

how to implement the comparator for map
 
I want to employ iterator of a list container as the key field of a map container. I used to believe the map will compare iterators by the precedence of the two...
[4 replies] Last: I think OP wants to compare the values referenced by the iterators, no... (by jsmith)
by disini
Income tax program.
 
I need to create a program for calculating the income tax. The requirement are as follows. The local tax office has contacted you as programmer because ...
[3 replies] Last: Thanks joeriMJ, its working perfectly. (by disini)
getting odd answers
 
so i am just writing a program to organize a two dimentional array as a deck of cards then cout a random card 5 times. for whatever reason it is giving me odd a...
[1 reply] : your card array doesn't have enough elements for the suit. you only as... (by herbert1910)
Classes?
 
I have a Connect Four project, and I need to be able to access a part of another class within one class. class Player pX { private: char player; pub...
[3 replies] Last: try to access board through something like b.board . maybe your com... (by herbert1910)
Turning 4578 into "Four Thousand Five Hundred Seventy Eight"?
 
I want the user to enter a number between 0-9999 and then out put there number as a string that names that number, I assume that I should utilize arrays for thi...
[11 replies] Last: Awesome, glad you figured it out. (by cartpauj)
Console Class; Creating colorful rectangles
 
Alright, so I've worked out how to write my program to create "beautiful" rectangles of various colors with a user specified character. The problem I'm having i...
[4 replies] Last: Ah right. Thank you! My professor warned us about that a long time a g... (by Programmer Will)
Pirority for operators
 
Hey! I'm new to C++ and I need some help on my coding. I have designed a class of vectors (threevector is the name of the class constructor) and overloaded the ...
[1 reply] : I don't think I get your first question. If you want to keep the user ... (by helios)
Play RAW data with playsound()?
 
Hey! I wanted to ask, is it possible to use PlaySound() function with somehow stored in an integer 3-8 sec sound? i mean it would be something like this, you ...
[14 replies] Last: I've never used Dev C++, so I can't say for sure. Googling seems to... (by Disch)
Distance time1, time2
 
Hello everybody! This is my code which distance time1 and time2. But it doesn't work. error message is "Could not find a match for 'time::time()". I don't under...
[1 reply] : time time3; time doesn't have a constructor which takes no arguments... (by Bazzy)
by asdf1
Persistence
 
Hi there... I cannot seem to figure this out. I need to write a function that finds the multiplicative persistence of a given number. The persistence is t...
[5 replies] Last: Thank you so much for the help guys. I'm using Disch's code.. it work... (by asdf1)
drawing a triangle
 
Hey! I'm trying to make a program that would draw a triangle. Heres what i got allready: int chars; cout<<"Enter a number: "; cin>>chars; int i,spcnum ...
[11 replies] Last: rand()%101 To get "more random" numbers, call srand(time(0)) at th... (by Bazzy)
small program to find biggest number
 
Hello i'm Denis, new to programming and i have a question which i'd be verry gratefull if you help me find answer to: ok i'll try to explain as best as possi...
[7 replies] Last: Because i'm learning C++ from 3, 4 days :D Thanks guys for the help (by instruct9r)
Simple Win32 question *argv[]
 
My teacher asked us to create a win32 command line text editor. I have completed the program and it works great. Then he asked us to accept two command line a...
[8 replies] Last: See my original post: void GetDataFromStream( istream& stream ) ... (by Disch)
Char array
 
Hey all! I need some help with array of characters (no, i do not need STRINGS) If user types 5, i want an array like this: *****. i tried like strings: ...
[1 reply] : You need a dynamic char array if you don't want to use strings. I alr... (by Bazzy)
New Function
 
Hello Hello! can you explain me what this function does line by line please Polyline drawFunction(const vector<double>& inValues, double inScaleX, double...
[4 replies] Last: thank you every body it answers to my questions :) (by fleur1990)
random number function
 
Thanks
[3 replies] Last: now that you have read that and are still saying wtf??? #inclu... (by gcampton)
Arrays and Number Repetition
 
I have an array of 10 digits, need to break up each digit as a separate int and then compare each digit to the other to see if there is a repetition. Code so...
[6 replies] Last: There are lines outside of the loop (after it) that need to be inside. (by Zhuge)
program that draws a rhombus, or something like it
 
Hey! I need some help to write a program that would draw a rhombus (not exactly). For example-if a person inputs number 4, it would draw: **** ***...
[12 replies] Last: Nvm, Thanks verry much bazzy, i owe you one. No, make it 10. :D (by award982)
Array of chars, wtf?
 
Hey! Could someone help me with an array of characters? I need to make an array of stars (*) that corresponds to a number that an user types in, something like...
[4 replies] Last: Thanks bazzy, you're amazing! (by award982)
User calling functions in the program
 
I'm making a program to solve graph theory problems and I have certain functions such as addVertex(graph *g, bool directed). I want the user to be able to call ...
[1 reply] : You can parse it using stringstreams or some external regular expressi... (by Bazzy)
November 2009 Pages: 1... 678910... 25
  Archived months: [oct2009] [dec2009]

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