Beginners - April 2009 (Page 27)

by turke
Character place
 
How can I take characters from their place and put them into variables? Example: User input : 5+9+7 a=5(1st) b=+(2nd) ... I hope you get what I mean =P ...
[6 replies] Last: Yes it is but I wanted to do it using str.at... (by turke)
If Statements
 
NULL
[2 replies] Last: Thanks for the link, got the program working and functioning fine! (by jayray23)
Format Text - ofstream-ifstream
 
I'm having problem with a program im trying to write that reads a .text sourcefile and then format the .text file while removing excess whitespace. #include ...
[2 replies] Last: I did that already, What i'm trying to do is remove the excess white s... (by ghost305)
Trouble with FIFO(Queue)
 
Description Create a Queue class that implements a queue abstraction. A queue is a FIFO list (First In First Out queue). A simple example is waiting in line,...
[4 replies] Last: isn't mpHead the first item on the list? The removeItem is supposed... (by ghost305)
Decimals are all zeros?
 
I've heard that there is an assignment in school that says you have to write a code for the quadratic equation. I decided to try my hand at it. The equation see...
[3 replies] Last: Forget the 20 local variables you have. Simplicity is the key #inclu... (by eker676)
Enum
 
What is an enumeration? What is its purpose and how do I use it? Your help is most appreciated!
[5 replies] Last: Not exactly. Sometimes it is quicker and less error prone to use an en... (by eker676)
by jzackt
Combining arrays?
 
Is there a function you can use to combine arrays in C. If not, does anyone know how to do it? Also, the two arrays are of different types...char and double.
[7 replies] Last: ok thanks i will try it (by jzackt)
New to C++ and programming...stuck on programming project
 
Hi. I am new to the world of C++ and programming, i have been self studying it for approx. 3 weeks now and am working on a programming project and am stuck o...
[15 replies] Last: Thanx, youre awesome x) (by zydeoN)
Yes/No Statement
 
I want to know how to make it a yes or no statement. How to make it Yes I want to buy the shield, or no then NOT buy it Any help please? #include <iostre...
[3 replies] Last: Put quotes around the y if (buy == "y") (by eker676)
Problem with a template class.
 
This is for practice only; My knowledge of C++ is extremely limited and I'm wanting to expand. I want to make an "iterator" class that works with a vector to ai...
[11 replies] Last: I don't care either, I was just posting the information in case anyone... (by firedraco)
by gogo
What's wrong
 
I want to get the maximum number from input numbers and get area, bat program doesn't work!can anyone tell me what's the problem #include<iostream> usin...
[1 reply] : Take a look at lines 60-61. Every time the user inputs a number, you ... (by jdd)
Initializing a normal array through a non-constant variable
 
My teacher keeps insisting that this will work. int number = 10; int myarray ; Indeed this does compile and run on the ten year old compiler that we ...
[8 replies] Last: I told her that it wasn't standard and declared a dynamic array instea... (by eker676)
reading file stops at 0x1A
 
I am reading file to char, checking readed chars and writing to another file with fputc() and fgetc(), but function doesnt read all file. I opened file in hex e...
[2 replies] Last: It helps. thx. (by sigutis)
Problems with scanf() and getc(stdin)
 
Hi, I don't know why I need to use two getc(stdin). Some people said me it was a newline in the buffer and I shouldn't use scanf(). Why shouldn't I? How wou...
[5 replies] Last: You are doing fine. The better alternative, if you want it, is to s... (by Duthomhas)
by masiht
constructors
 
I am trying to make programs with constructors . Can anyone please tell me what is wrong with this program. #include<iostream> using namespace std; class ...
[15 replies] Last: When an object of a class is declared it calls the constructor so Cl... (by Bazzy)
Changing tags from upper case to lower case
 
I am making a program to determine how many html tags and comments are in a file, the program has to correct any tags that have been entered in upper case ( <P>...
[3 replies] Last: So far I have got the program to open the files, check if the file is ... (by mat1989)
multuple struct in seperate switch case
 
hi, i am wondering , can you put different structs in seperate switch cases . is there a method to do this , as i am trying it and it is not working . any...
[4 replies] Last: Disch was putting it lightly. Honestly, I don't have the slightest cl... (by kempofighter)
A problem here
 
#include <iostream> using namespace std; class Car { public: Car(double a,double b) {oil_weight = a; car_weight = b;check();} void check(); private: d...
[1 reply] : Line 32 is wrong. Look closely. (by jsmith)
Timer
 
So I just made a pretty simple little game, and I am trying to make it that if you don't complete a certain task by the end of an amount of time, then you lose....
[2 replies] Last: Oh sorry guess I didn't notice that :P. Thanks I'll see if I can put... (by epiqu1n)
by sobi
Creating a 2 dimensional array in C
 
Hello, I'm having a problem trying to create a 2 dimensional array in C.The array consists of a table with 12 rows and 8 columns.I've written the table and sav...
[3 replies] Last: I have a good example of this being done in a small program that takes... (by closed account S6k9GNh0)
April 2009 Pages: 1... 25262728
  Archived months: [mar2009] [may2009]

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