Beginners - October 2010 (Page 21)

using IF statements
 
Hello World!! I am trying to compile a program whereby the user in puts 3 numbers in a loop. Within the loop i then try to assign the users numbers to variab...
[2 replies] Last: Thankyou Zhuge! Your helpful guidance is most appreciated!! (by steallen)
by dardar
STRTOK question
 
i have a problem using strtok. i'm trying to write a c program that counts the number of words in a sentence. i'm using strtok , but for some reason i get an ...
[4 replies] Last: Hello dardar, in the link above it says: C string to truncate. Th... (by coder777)
somebody teach me how to make a program with BOUNCING TEXT?
 
guys pls give me an example of a program and that is a bouncing text.. your help will be appriciate.. tnx..
[4 replies] Last: You could at least show people what you've started rather than just co... (by rej3kt)
C++ math.h functions
 
Hi guys. I'm new to the programming field (first C++ class in a CIS major). My instructor has given an assignment to calculate altitude and velocity of a weathe...
[7 replies] Last: Thank you all so much for your help. I really appreciate you guys taki... (by tresk21)
Variable not declared in this scope
 
Was trying out the example in my textbook but keep hitting this error 'sizeofYardInSqFeet' was not declared in this scope" when I try to compile it. #incl...
[2 replies] Last: Thanks. I need to make lesser of such mistake >.< (by jellyfish)
How do i assign things on a .txt list to a variable?
 
I am not understanding, and sadly getting frustrated, on how to assign the info from a 10 line (ex. of one line: 10 0 Im Frustrated) list in a .txt file to vari...
[1 reply] : When the right-hand side of << is a... what is info? Ah, yes, a charac... (by Albatross)
ASSISTANCE NEEDED!!! Thank you
 
I have a project to complete and i am new to c++ can you assist me. Here is the question: 1) 1. Create a program that will take an integer number as inp...
[14 replies] Last: This operator accepts one parameter, which can be either a type or a ... (by Albatross)
Logical operators in a function
 
Here's the code: long sum ( int m, int n ) { int o = 0; int p = m; if (p > n) (o = 0); else (p <= n) (o = o + p), p++; cout << "...
[2 replies] Last: Of course, thanks. Wood for the trees and all that. I've always been a... (by rassilon256)
Using limits to give an error message for a negative, non-integer
 
Hey! I'm currently writing a program that calculates the factorial of a given number. This number has to be positive, and it has to be an integer, ie, not a ...
[2 replies] Last: And just to let you know that you can, you could actually crunch that ... (by closed account 1yvXoG1T)
Great C++ Beginners Tutorial
 
Here's a tutorial that I think a lot of beginners would find helpful. It explains things very well and I also found it helpful. It can be found here: http:/...
[no replies]
every 3rd integer
 
For a class assignment I have to get input from a text file using a while loop. I also have to computing the sum of every 3rd integer that is read from this fil...
[2 replies] Last: Hamsterman, Thanks for your reply. That example returns the same resul... (by ALOTANOTA)
My first program
 
Hi. I'm new to programming, i started reading and playing around with it like last night so i'm a big noob. I use Codeblocks for all my programming needs. I ...
[2 replies] Last: return 0; is not necessary for the main function, as it will implici... (by Athar)
Code will not compile for program using class/derived class
 
I am very new to programming. I am having problems getting my code to compile. I thought I followed the samples in the book but obviously not. Is there someone ...
[10 replies] Last: My apologies. Now I see why I was supposed to include the tags. I upda... (by linsll68)
by wtf
Trying to learn pointers.
 
Could someone tell me what is wrong with this code? I'm just trying to re-teach myself the syntax but I can't get it down right. I'm trying to create a li...
[1 reply] : In the first loop you're assigning list->next (which is uninitialized)... (by Athar)
by airowe
Inheritance/Polymorphism Issue
 
Since you all have been so helpful recently, I wanted to ask for your help again. I'm getting some invalid output on a program written to demonstrate polymorph...
[2 replies] Last: #include <iostream> #include <iomanip> using namespace std; #inc... (by airowe)
Best practice, global variables
 
Hi everyone, i've read a number of articles saying global variables are bad for good reason. I'm trying to stay away from them but its proving hard. I have a pr...
[2 replies] Last: Thanks dude, just seems like i am creating variables in main and tr... (by berabus)
by wtf
What could be causing this:
 
I have isolated another error in my program. It occurs in my dlist class. I don't know how to explain it. My dlist class uses a bool digits ; wi...
[2 replies] Last: It checks if N = 0, and it exits the program telling the user (i.e. me... (by wtf)
Can't understand array sorting code.
 
Hey guys, I got this program from my book, but need help understanding it. I will type it out with comments on what I understand, and what I don't. Really its a...
[2 replies] Last: void sort (int n) //the function takes the length of the array { ... (by blackcoder41)
equality on char type
 
I'm making a program that receives input from cout and uses cin to put a value in a char. char name ; cout << "name? "; //types in name 'bob' cin >>...
[8 replies] Last: if(strcmpi(name,"bob")==0... Eww, no. strcmpi is not even part of t... (by Athar)
by ARWA
how to call the base func in the derived class!
 
how do we call the functions of the base class in the derived class? is there any presedure shulde i use?!
[11 replies] Last: from what you posted I don't see any reason fo that "pointType " is N... (by coder777)
October 2010 Pages: 1... 1920212223... 42
  Archived months: [sep2010] [nov2010]

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