Beginners - October 2011 (Page 49)

Cin one character at a time
 
I am trying to make a program that inputs one char at a time using cin. I'm using a loop with a set count and each loop should gather one char. cin >> char;...
[5 replies] Last: @LostProject To put the inputs all on one line, try looking here for a... (by whitenite1)
by hfo4
Debugging Z is not initialized
 
Alright I have this code done, and I'm not sure what I should be doing to fix the error message it is giving me. The computer is saying something about z not be...
[5 replies] Last: I have made the changes you suggested and now have made it through the... (by hfo4)
c== cli array
 
Hello I am trying to create an array to hold a String value. However, when I try to input it with a value then it comes up with this compile error err...
[3 replies] Last: Hi Guys Thanks for your replies. I managed to fix it just now befor... (by shamas21)
Help with date validation.
 
Hi, Im a student and new to c++. Im using code::blocks and i can seem to get the output right. we where given a program that validates a date including the leap...
[no replies]
For loop troubles
 
Hello, this is the code I'm having trouble with. for(int i=0; i<= maxWidth; i++) { flush+=words .size() +1; ...
[1 reply] : for(int i=0; i < maxWidth; i++) can you try it without the = in thi... (by ThangDo)
this program not work
 
I try to make program the user selects the first number and last number so show the evens numbers between the first number and the last number that user is s...
[2 replies] Last: Why declare double double fri=0 , num=1 , last=0 ; when you are loo... (by ThangDo)
how to make this into a function
 
So I made this program to find remainders without using the % operator. I'm still pretty new to C++ and I'm wondering how to go about doing this using remainder...
[1 reply] : #include <iostream> #include <cstdlib> using namespace std; void C... (by ThangDo)
Delete dynamic multi-dimensional array
 
= #include <iostream> using namespace std; typedef double* DoubleArrayPtr; class TwoD { public: TwoD(); TwoD(int,int); TwoD(const TwoD& copyMe)...
[9 replies] Last: const void TwoD::setEntry(int theRow,int theCol) { double value; co... (by hentaiw)
help!!!
 
i need help i just started attending my class in C++ programming yesterday and we had an assignment can someone help me with the tasks??? 1.Make a program th...
[3 replies] Last: http://www.cplusplus.com/articles/DjGEy60M/h (by Pyrius)
by lirik
First test tomorrow! some help questions!
 
Hey guys, so I have been acing all my programs so far and getting perfect scores but I have a couple of questions. I am having my first C++ test tomorrow and i...
[9 replies] Last: Well, as Knuth once said: programs are meant to be read by humans, and... (by helios)
by Claymz
pointer problem with vector
 
Hi, i have this container of pointers of base class, so i can get dynamic type of derivaed case (which i put in this vector container). The problems strucks,...
[8 replies] Last: about signed/unsigned types, i meant like so: signed i or unsigned i. ... (by Claymz)
Unsigned Char
 
Hi again; I have a function defined as: void button_build_hor(long px,long py,long width,long high,long c_bt,unsigned char *tx,char num_tx,long c_tx) Which...
[3 replies] Last: [quote=SrWalterR]So if I understand, you are suggesting I need to chan... (by closed account zb0S216C)
How to add two integer array
 
Hello guys, here is my code so far. This is Java. I already converted string into an integer. My only problem is, how you add two arrays? import java.util....
[4 replies] Last: Then you'll have to pass the length of both arrays to the function. Al... (by closed account zb0S216C)
Is it possible
 
Hello All, I have not done any C++ for a mighty long time, and my career has deviated from traditional programming to "other" types of programming, namely I ...
[5 replies] Last: @sohguanh - no problem! Yes I do clinical data processing using a lang... (by a142763)
by lrockm
Struct Question
 
Hi I am kinda new to C++, and am still at the learning phase. Hope that I can get some guidance from you guys~ I'm kinda stuck with this: struct database...
[1 reply] : The declartion you proveded is an abreviated form of: struct database... (by kbw)
C++ Word Program Help!
 
First of all, this is not schoolwork but rather me trying to read about c++ and through program examples and see if I can write my own. So help is much apprecia...
[no replies]
arrays
 
so im making a program that will help me practice making arrays. i thought it was a really rockin code (at least for me) until i tried to debug and i got a few ...
[11 replies] Last: no problemo! i saw what you were doing so i never read the code and th... (by f1ddl3r)
list
 
Hello, I have to sort the linked list by the last name and by the balance. The function has two modes. If the user want to sort by balance then the mode is ...
[12 replies] Last: Then you just have to code your own sorting algorithm. There are so ma... (by sohguanh)
Assignment hlep regarding while loop and a a bell curve
 
What I need to do is use either a while or for loop to demonstrate a bell curve, and then find the maximum amount of profit and said profit's corresponding tic...
[no replies]
Code only partially does what it's supposed to
 
Here is the code: #include<string> using namespace std; class romanType { public: romanType (string=""); ...
[2 replies] Last: made it easier to read (by zero7741)
October 2011 Pages: 1... 4748495051... 59
  Archived months: [sep2011] [nov2011]

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