Beginners - November 2011 (Page 25)

do-while statement
 
I am new to c++ and am in my first class..we are currently working on the do-while statement and i am stuck. Here is the exercise: Write, compile, and run a ...
[3 replies] Last: This compiles and works correctly, but it would be better if line 18 d... (by velcro)
refrence in c++
 
#include<stdio.h> #include<conio.h> int main(void) { clrscr(); int x=100; int&y=x; int&a=x; printf("%d%d%d",x,y,a); x++; y++; ...
[7 replies] Last: thanx for the reply everone my doubt is cleared.......... (by JAI SINGH)
C and C System
 
what is main diff b/t C and C system.......plz clarify the ans
[6 replies] Last: Oh, I see. The text is talking about development tools (a system for w... (by helios)
pointer arithmetic
 
am I doing this right, or am I missing something here, lol. #include <iostream> int main() { using namespace std; int array = {1,2,3}; ...
[2 replies] Last: you are not missing any thing just go ahead............ (by JAI SINGH)
Cin as a parameter?
 
Hello, my professor wants us to use cin and infile as parameters depending on the program arguments. For example, if we have two arguments, one being a input...
[1 reply] : As far as I know cin is used for getting input from the keyboard, and ... (by velcro)
arrays
 
const int = 4; int oldValues = {10, 100, 200, 300}; int newValues ; newValues=oldValues // iknow this is wrong ! //but, can i change to this statemen...
[1 reply] : Array name without s is a constant pointer to that array. You can't c... (by hamsterman)
by jlake
blacjack program using functions
 
im new to c++ and having trouble writing a program using functions to score a blackjack hand. this is what i have so far. #include <iostream> using namesp...
[no replies]
[help]stacks
 
i'm working on a problem with stacks, that's supposed to keep track of incoming and outgoing cars of a garage. the program takes in an input file, and is suppo...
[no replies]
How to read the number of lines from a text file?
 
For example, A file have lots of lines and each lines resemble one "record". So u choose this option of viewing data of file. When u select this option, the...
[2 replies] Last: A line count.. After it reads into the text-file. On the menu, it shou... (by Tampopo)
Can someone explain the purpose of header guards?
 
Hello I have just learnt the purpose of a header file, but don't understand why they need a header guard. I also don't understand the format of the header gu...
[3 replies] Last: Thanks, both those answers have been very helpful! (by ratman3141)
Functions - Examples
 
Hey guys, i don't know anything yet about functions and "passing arguments/parameters" ....but it would be discussed on our next c++ class.. Can you please g...
[1 reply] : 1) Functions with no return value and without passing arguments/parame... (by Dstrayex)
by moot1
Use of functions
 
I really haven't found a use of multiple function yet, so can you please post a very simple program that has two functions that has to use two functions no matt...
[3 replies] Last: another reason to use them is that they can help keep your program mo... (by Dstrayex)
Help with try catch block
 
I wrote a small program but I am having problems getting my try catch block to work. Any help would be appreciated. This is the exception file: #include...
[16 replies] Last: Thanks for the advice. I added the "Return 0;" to main(). I change... (by rinnamorato)
studioh?
 
Whats a good studio free for c++,java,lua,and C because i would like to make a game with a mix of these languages.
[no replies]
Qt Push Button
 
I have a question about my code in a push button. I wrote a simple app that users click check boxes on a number of tabs, and then get an output display, and a m...
[3 replies] Last: ui is the form class I think. You were right though it was in the cond... (by InterFiction)
Meaning of ampersand in value returned by a function
 
Hello everyone, I'm learning C++ for the first time. As far as I understood using that syntax: "int& x" means passing the variable itself, for example as the ar...
[no replies]
Trying to access a member variable before its defined?
 
Ok, so I have a code in which there are 2 separate classes, that have two similar functions that react with each other in a similar way, but the first class's f...
[4 replies] Last: Oh hey, I got it to work! :D I put the definition of the function that... (by jp01cf01)
by moot1
Favorite program
 
Everyone post their favorite program they made. It can be the source code or the actual program. The actual program would be nice. Also how do I post the actual...
[8 replies] Last: stupebrett,chect your private messages (by moot1)
Where do I begin?
 
Hello forumer, Firstly, I suppose I should introduce myself, I am Gol, and well, I'd like to be a programmer (C++ preferably). I had the idea that ...
[3 replies] Last: Wow, thank you for the speedy replies! I will check out these resource... (by Golgotha1995)
how do a make a program calculate a test grade
 
how do I make this program calculate the grade average on this fake test I made? here is the test i made and it all checks out - now I need it to print out the...
[2 replies] Last: Well you could give each question an integer value and each loop decre... (by wolfgang)
November 2011 Pages: 1... 2324252627... 65
  Archived months: [oct2011] [dec2011]

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