Beginners - May 2011 (Page 31)

by ghada
c++ array program..need help please
 
this is the Qustion: Write C++ program that contains two functions: main and a function named "reverse". You should initialize an array of floating point value...
[1 reply] : duplicate: http://www.cplusplus.com/forum/general/42786/ ... (by writetonsharma)
What's wrong with this??
 
You have invented a vending machine capable of deep frying twinkies. Write a program to simulate the vending machine. It costs $ 3.50 to buy a deep- fried twink...
[2 replies] Last: WOW Thanks! (by TunaCan)
assinging an object into a private string
 
I need to make my monday object print Monday as Mon to the console, but I am stuck at this point can anyone provide some insite? This is what I have for err...
[8 replies] Last: It was just to test. I eventually fixed the code and it worked out gr... (by twentfiveu)
by CStu
Millionaire Prgm.
 
I need some help with a program and was hoping if someone here knew how to do it in a quick way. Here are the instructions: Step 1: Find 11 questions of you...
[2 replies] Last: Just a suggestion: randomize the choices. D always being right will gi... (by personak)
Replicating Windows' Run Command
 
Hey everyone, I was wondering how can you make a console application that acts like windows' run command. When you type a programs name in the application, it r...
[2 replies] Last: No point really, was just wondering :D Thanks for your answer, I'll be... (by Shintuku)
Trouble Using String Pointers
 
I'm working on a program that, among other things, simulates a command line interface. I've got my code set up such that the first word in the line that a user...
[7 replies] Last: bah i realize my example is screwed. i was going for something more l... (by ascii)
by JWP
finding the odd/even positions in a list help!
 
Well I need help trying to display numbers that have the odd number subscript such as x , x etc and also for the even x , x etc. how would I do that? Can a...
[1 reply] : The for loops you're using are unusual. for(n = 1; n <= x ; n++) The... (by closed account D80DSL3A)
by goosen
Project troubles.
 
Hey everyone, first off i wanted to say its nice to find a good information forums where everyone is welcome. Down to business. My project i am working on n...
[3 replies] Last: I also understand im going to need an output function. Where in the pr... (by goosen)
Cin statements skipping
 
hey im making a program to output a bill based off what a user enters but for some reason when i enter something for one cin statement it skips the next cin inp...
[1 reply] : Sorry. I didn't bother reading your post. I have a feeling that a "cin... (by hamsterman)
by db863
Understanding C++'Variants'
 
First of all... Hello :) I'm new to the forum but looking around, this looks like a helpful friendly place! nI really could do with some help understanding wh...
[2 replies] Last: Cool. Thanks for your reply :) Very much appreciated! (by db863)
Const Member Function
 
Hi, Want some help with a question. Below is the question:
[4 replies] Last: I hate these guys. They get their answer and delete their posts to ob... (by webJose)
output prints twice for some reason
 
Solved thanks!
[2 replies] Last: Thanks!! (by GamexCoder)
by bbcc
Standard Template Library
 
Can any one help me with this: The simplest way of declaring a vector of integers is as the following: std::vector<int> bob; in which int is the type of ...
[2 replies] Last: 1. Like in your example with int, EverntGenerator* is the type stored ... (by hamsterman)
by JWP
reading integers from a file into an array. Help!
 
so my hw problem asks to write a C++ program to read integers from a file into an array. Assuming that the max number of integers that can be read from a file i...
[4 replies] Last: Thanks for the reply but the problem I'm having has to do with is putt... (by JWP)
by bbcc
streaming operator and operator over loading
 
Could any one please help me with the meaning of <<operator over loading>> and << streaming operator>> For overloading I am wondering why we even need them ...
[1 reply] : I am wondering why we even need them We don't but it might make our c... (by hamsterman)
by snakec
c file handling problem
 
hi I'm new to c .i just want to know how to add two file . i have two file ram.txt and another one is sham.txt . i want to add these two file using c program ...
[1 reply] : You can use the ios::app flag to append. Anyway, have you read the f... (by Zeillinger)
by ogward
Dijkstra's algorithm with an 2d-array
 
Hi there! For the past few days I've tried to implement this algorithm. This far I've managed to make my 2d array and insert the distances between nodes, a fun...
[1 reply] : Hi It would be helpful if you show how your code is working for the m... (by noddie)
Sort by choice
 
Hello So to strengthen my learning in c++, I'm trying my hands on a few algorithms I found in a book to sort arrays. However, that's in pascal and I don't qu...
[12 replies] Last: Ah yes, I oversaw his post. Memory leak means that this memory goes s... (by BananaCode)
C++ ques doubt 2 and 3
 
Hi, I had an exam on
[5 replies] Last: A copy constructor is like this. explicit Y(const Y& x); explicit ... (by writetonsharma)
quick inheritance question
 
Hi. I'm currently reading some stuff about how names can be hidden in public inheritance. Could someone explain to me how the overloaded function becomes hidd...
[3 replies] Last: Ah I see... Even if overloaded, the name is only considered once per ... (by flclempire)
May 2011 Pages: 1... 2930313233... 48
  Archived months: [apr2011] [jun2011]

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