Beginners - November 2012 (Page 63)

Good Compilers?
 
Hi, I'm a new member here. I have programmed in Java for a while, and want to start picking up C++. I see a bunch of good compilers on the internet, but I want ...
[no replies]
Difficulty with Do/While Loop
 
Hello all. I am attempting to write a program that will generate a random number after entering 'y' or 'Y' when prompted. In each implementation, the program ...
[6 replies] Last: Also, if you make use of the std::toupper function, you can avoid test... (by TheIdeasMan)
what else do I have to do?
 
here is my code #include <iostream> #include <cstdlib> #include <ctime> #define ASIZE 25 #define SCALE 100 using namespace std; void fillarray(int a , int n...
[9 replies] Last: I didnt get it man sorry my english limited I didnt understand the ass... (by dylanlara44)
c++ using a functions info for another function
 
Im doing a program assignment where i need to: Create a minimal DateType class which provides at least these operations: 1) SetDate to assign a value to an exi...
[5 replies] Last: nice q and a, helped me too XD (by devonrevenge)
Simply Array Question
 
Hey, guys so I have to enter the multiples of 15 for values 1-10 into my second Array. So for 1 = 15, 2 = 30 and so on. I would then call upon a function which ...
[1 reply] : int main() { const int N = 10; int LArray = {1,2,3,4,5,6,7,8... (by vlad from moscow)
by mdr86
Member variables with no default constructor
 
I am trying to create Point and Line classes, to store a point in 2D space and a line connecting two points respectively. Currently, the Point class looks like ...
[5 replies] Last: Unless you pretend to make `Point' polymorphic or shared, there is no ... (by ne555)
Array manipulation
 
Hey guys, I am stuck on an array our prof. told us to do: •Given one array, remove all repetitions so that the array has unique numbers. I am really stu...
[7 replies] Last: @Stewbond How else would you "remove" a number. As there is no po... (by vlad from moscow)
Random Numbers
 
When I was making this code, every time the program produces a random number, it is the same thing. I have already seeded the random number so that it makes a r...
[6 replies] Last: I'm sure we already did this. http://www.cplusplus.com/forum/beginner... (by Moschops)
problem with loop
 
i have been asked to write a program that will get a series (unlimited) of real and positive numbers from the user. for every number in the series, the program ...
[1 reply] : So your problem is with a loop doing the averages? Can you be specific... (by Forseth11)
by dusty
Loop statement issues
 
I am not by any means looking for someone to do a problem for me but I am really struggling conceptually, I need a push in the right direction. I am writing a ...
[2 replies] Last: Thanks, I will give that a try. (by dusty)
organize code to blocks
 
Hey How do I put my code into proper blocks. I know I saw ashortcut but I cant figure it out now. Meaning: if(i=0) i=1; and not if(i=0) i=1; ...
[4 replies] Last: There is a <> button to the right that you can use. (by Peter87)
by Noble
Need help with looping!
 
Hi everyone, my current assignment is to make two triangles out of asterisks with a width and height of a given integer (between 1 and 15). Now, I have comp...
[1 reply] : Hmm, this sounds kind of similar to an exercise I had to do once... ba... (by Raezzor)
[Win32API] ComboBox Not Selectable Item (1,2)
 
title says everything, how to? plain win32 API somthing like Section Name - not selectable Section item 1 - selectable Section item 2 - selectable
[20 replies] Last: so it's just basically something like custom control but it's not tota... (by mekkatorqu)
Cin in arrays within for loop
 
Hello! How can i use cin in an array ? I want to store more names in an array within a for loop. I tried this but it didn't work.... #include <iostre...
[7 replies] Last: thank you,it works now :D (by Guzfraba)
number guessing issues
 
Hello. I am fairly new to programming and I'm stuck with an assignment. I know there are many already done programms like this, but since it's for University I...
[4 replies] Last: Hey Doubt, It looks like the reason for your troubles is in the rand ... (by Roastern)
by marhit
difficulties with functions
 
I can't figure out the error. :/ #include <iostream> #include <iomanip> using namespace std; // function prototypes double getSales(double); double c...
[2 replies] Last: You intend to pass by reference but do not specify this in the functio... (by pogrady)
MSDOS Window
 
I have a console application that calls graphics.h to use BGI. Its a GUI. but when I run the code, both MSDOS and GUI opens up. Is there a way I can quit the MS...
[2 replies] Last: Thanks, that helped (by msdagiya)
Arrays and Functions
 
Hello all, I am having trouble getting my output to come out correctly in this program. Please give suggestions where I messed this thing up.
[1 reply] : #include <iostream> #include <iomanip> using namespace std; const int... (by JBIRD304)
Passing an fstream object to a function help.
 
Basically, I'm trying to right a program that reads a list of winning lottery numbers from a text file and outputs how many times each number won. Each line of ...
[6 replies] Last: good is a function of fin, not a member. Instead of: else if (!(fin.... (by Stewbond)
create buffer and file
 
hi how create buffer in c++? and can i create file in it?
[5 replies] Last: You're single sentence, incredibly general questions may be the reason... (by Stewbond)
November 2012 Pages: 1... 6162636465... 75
  Archived months: [oct2012] [dec2012]

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