Beginners - October 2011 (Page 36)

variables
 
what is the difference between global scope and local scope variable. an anyone explain it to me. with examples. thank you
[3 replies] Last: Stewbond, from what I know, the reason why global variables are consid... (by hellohellomoon)
How do I fix this while loop?
 
Hi guys. My source code would not loop. It does not go beyond the if statements? I've tried break; and continue; but neither works? How do I solve this? #in...
[7 replies] Last: Yea no problem. Happy coding. (by TheMeerkat)
Help Please!
 
I need some help please with an assignment due tomorrow. Hey I'm kinda new a C++. I have an assignment due tomorrow... and I don't even know how to start. Could...
[2 replies] Last: Most of what you need to know can be found here: http://www.cplusplus.... (by TheMeerkat)
program
 
hey, i am a newbie in c++ . so i need a help can anyone tell me what is : #include < iostream> namespace std variable : - global scope - local scop...
[3 replies] Last: Oh woops. Yeah I should be more careful haha. Yeah, Nova's right. A lo... (by hellohellomoon)
How would I make a column using iomanip?
 
Like this I guess. My column output: Answer 1 Answer 2 Answer 3 Answer 4 Also I need to only ...
[1 reply] : @mrchicken If you already know the number of answers you need, use a ... (by whitenite1)
Help me Please
 
Hello!I am new in c++ and i want to make a program which is below.Could any one help me because i have to give assignment.Question is this below 1.write a prog...
[10 replies] Last: Thanks a lot Intrexa.you helped a lot. (by jahanzab niazi)
How to change all words at once?
 
Hi guys. So when I click on a word in Code Blocks, it highlights all of the same words. Now, how do I change all of those words at once? For example #includ...
[8 replies] Last: Thanks Disch for your help :D. Yeah, I'll remember that CTRL H is stan... (by hellohellomoon)
Can't get it to read my file?
 
#include <iostream> #include <fstream> using namespace std; int main() { ifstream inFile; int even=0,odd=0,x,y; inFile.open ("hw4dataf11.txt"); if(...
[1 reply] : Do you see the error message "file did not open please check it"? (by EricDu)
Need Help
 
Hey guys, I have a piece of code to reverse a null-terminated string here. #include "stdafx.h" #include "conio.h" #include "stdio.h" #include <iostream...
[1 reply] : I think the problem is in line below, you are trying to modify a piece... (by EricDu)
Where to go after console projects
 
Ok well i have been going through several tutorials on the basics of c++. And its the same thing over and over. You get to a certan point and then its done an...
[7 replies] Last: @ascii: Yea it defiantly seems that way. I understand the appeal fro... (by TheMeerkat)
by aiden
drawing grid of acceleration field
 
hey guess im doing an assignment. im not asking you people to show me the code, i just need to discuss with someone on how to draw the grid , as I dont have any...
[no replies]
Why wont this run?
 
Hi all, im trying to get this here program to build, but for some reason, it refuses to do so. Now, I keep getting this message saying that my bottom bracket...
[2 replies] Last: Yep! didnt realize that the "while" section was still technically in t... (by Willy Rodriguez)
problems of template
 
compiler : visual c++ 2010 os : windows 7 64bits learning template and encounter some problem template<typename T> void easyCopyImpl(T const &A, typename bo...
[4 replies] Last: The error I get is about sizeof_array not being found. Is that the er... (by stereoMatching)
Need help - looping through a text file
 
Hey guys I'm trying to read in data from a text file using a loop. The text file has 2 types of data - a bank account id and the balance for each account. W...
[1 reply] : I can't help you with the class and object thing, but to 'loop' thru a... (by Tytrin)
Can i improve
 
Hey guys.Have written some code but wanted to make sure im on the right lines. Is there anyway i can make this more efficient? Although the program works is it ...
[1 reply] : Was just wanting to ask you about this section: else { if ((a >= 5... (by TheMeerkat)
Average of n numbers
 
cin>> n numbers (but there is not exactly n it depends on user how many number he/she will include) n>=2&&n<=1000 how can i find average of them..
[5 replies] Last: how i can include numbers without knowing quantity of them You need a... (by ne555)
still struggling with vectors (1,2)
 
Hi, all – I have an object that contains a vector of values. I need to pass certain locations in the vector to a routine that will assign values to that po...
[22 replies] Last: Hi, ne555 - Thanks for your response about passing a vector. I didn't... (by mzimmers)
Multiple definition woes
 
Hi everyone! I'm working on a program that'll do a class of calculations common in chemistry. For this, there are a variety of information that I need to ke...
[9 replies] Last: Thanks ne555! I had some time to make that change to my Makefile, and... (by Glen Jenness)
No file output?
 
There is no .txt file being made. How come? //This program will take sets of numbers(in 3's) and call //2 functions, one which will print out how man...
[3 replies] Last: sorry about the tags. I will put them on my code from now on. You we... (by Cosimo Vilardo)
by Yooper
Program with switch and sentinel loop
 
Hello, A beginner hoping someone could point me in the right direction with regards to this program. I'm getting confused when working with a sentinel loop. ...
[4 replies] Last: Thank You EricDu and Framework for your help (by Yooper)
October 2011 Pages: 1... 3435363738... 59
  Archived months: [sep2011] [nov2011]

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