Beginners - October 2009 (Page 20)

Can't understand the syntax
 
I have a problem to understand the following code. Can anybody please help me to understand it. indication = MediumIndication::IDLE; catIndication = bb->s...
[4 replies] Last: yes thats right 'bb' is a pointer of a class. (by turtail)
Dont know what is wrong with program?
 
I have a calculator program it ask you a for a number then ask for an operator +-*/.. this is where it goes wrong then once you type the operator in it j...
[8 replies] Last: Warnis, it's a do-while loop. (by Chewbob)
Need more knowledge over c++ and programming in general
 
Hi all, new here. I was wondering if anyone could tell me what to do now? I'm 15 years old, have mastered HTML, CSS, PHP (and sql) and JAVASCRIPT. I know th...
[6 replies] Last: cool sending them now, if you have trouble downloading due to live not... (by gcampton)
File Handling
 
void main() { clrscr(); fstream frnd; frnd.open("C:/store.txt", ios::in|ios::out); if(!frnd) { cout<<"\nMemory Error!!!!"; getch(); exit(1...
[no replies]
while loop using char
 
Total Noob here, but I'm having a bit of a problem using the while loop using characters.. Can anyone point out my fatal flaw? char ChooseStack() { ...
[4 replies] Last: AHHH! Thanks so much bluezor!! That makes a lot of sense! (by keewong)
by hannes
const
 
How can you make a constant in a class so that every instance has that constant. but every instance has an other value in that constant, thus you have to assig...
[2 replies] Last: That is simply a non-static constant member variable non-static c... (by guestgulkan)
comparing arrays...
 
I'm completely lost on this project. I want to make a program that has two arrays. One array will have 2 variables while the other has 5. I want to record data ...
[3 replies] Last: You said your arrays will contain "variables". Are they different var... (by PanGalactic)
write a simple programm in C (tax calculating)
 
I WOULD LIKE TO CREATE A SIMPLE PROGRAMM THAT CALCULATE TAXES according to the ARRAY BELOW: ΤΑΧ % ΤΑΧ ΒASE (in Euro) 0 Income until 19 500 20% 19501...
[5 replies] Last: Well i'm not going to write a complete program for you, but i'll help ... (by khimaira)
While loop problem
 
The problem is: Write a code segment using a While loop that sums the integers, counting up from 1, and stops when the sum is greater than 10,000, printing out ...
[6 replies] Last: you can also do a if flow control statement. Put this in the functi... (by brokenbot)
I don't know how to calculate average
 
I am doing a homework about calculating average. It is about calculating average of some intergers. I do not know the number of intergers entered before a user...
[11 replies] Last: There are several ways of receiving input that way, some more robust t... (by jRaskell)
headers
 
Hi.I am starting to write projects with separated files using .h and .make. However, I am very confused in the usage of headers. Can someone give me a guideline...
[2 replies] Last: Take a look at this article as well for even more detail. http://cplu... (by kempofighter)
Whats the point in pointers?
 
Hi :) I have been programming in c++ for only a little while and im going through semi ok and enjoying it, but no matter how much i look through the net i cant...
[11 replies] Last: http://home.netcom.com/~tjensen/ptr/ Excellent, very detailed, tutori... (by chrisname)
Another question that confuse me - Give an advice
 
Give an advice about How many lines will be appeared in the following part of the code ? for(i = 0; i < 5; i = i + 1) for(j = 0; j < i; j = j + 1) ...
[5 replies] Last: being able to read and understand code without compiling it is an impo... (by closed account z05DSL3A)
by eiba
Code::Blocks, where to turn off end of program message?
 
I've just started using Code::Blocks, and one thing that bugs me is that when i build and run the program i've made, it sends out this message right before "Pre...
[4 replies] Last: Yep, i didn't think it was my own program that gave that line in the e... (by eiba)
Can anyone advice me about what is the price of variable x given
 
what is the price of variable x given in the following command x=f(3,3,4); which f declared as following: int f(int q, int b, int c) { int p; p = q * ...
[4 replies] Last: yes. (by jsmith)
by robezy
Could you spot the error in my code?
 
Hi, I'm trying to convert a 2d array given in the form of strings to integer 2d arrays. ie, the array will be given as a vector of strings and i need to ...
[5 replies] Last: Hi, thanks for this intput. I never used sstream before. So couldn... (by robezy)
Cursor problem?
 
Ok this is a sample code right here: #include<stdio.h> int main() { int num; char letter; printf("Welcome to ICT 110 bank\n\n"); printf("Please ch...
[no replies]
by wachtn
char array
 
How can I make this code work? What I want to do is assign a string value to a char based on user input. #include<iostream.h> int main() { char cat ...
[6 replies] Last: That worked perfectly. Thank you! Now I can finish my program. =] (by wachtn)
by mcb413
2D arrays
 
Can anyone guide me with this please? 1. Array uses and notation Review the material presented in the slides of Section 2.13 2. Reading data into an arra...
[1 reply] : We don't do homework here but maybe this will help. http://www.cprogr... (by wachtn)
by Regine
What's wrong w/this prog.?It doesn't run.
 
#include <iostream> using namespace std; int main() { cout << "15.0 plus2.0 equals " << (15.0 + 2.0) << endl << "15.0 minus 2.0 equals " << ...
[3 replies] Last: It may be a typo in your post #include <iostream> using namespace... (by closed account z05DSL3A)
October 2009 Pages: 1... 1819202122... 25
  Archived months: [sep2009] [nov2009]

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