Beginners - June 2011 (Page 36)

what exactly is the difference between int main() and void main()
 
I am new to software languages..Please explain me the difference between int main(){ } and void main(){ }
[1 reply] : Since the standard dictates that main has to return int, the first one... (by Athar)
Bubble Sort issue
 
I'm doing the 'Pancake Glutton' exercise listed here: http://www.cplusplus.com/forum/articles/12974/ Actually, I'm working on the ★★★★ modify, tryin...
[5 replies] Last: Thanks, kev82. That got it. (by killingthemonkey)
Database Program
 
i am trying to make a database (of Spanish questions), but i have no clue on how to do this. Once i have a database, i will need help making a program that ran...
[7 replies] Last: I would go with option 1 and sqlite. If you don't know sql, you would ... (by kev82)
by axeves
Help with Headers
 
Hi. Can you explain to me on how to "inherit" (if that's the right word) stuff from a header file, and on how to write one? (A header file) Like if i wrot...
[2 replies] Last: #include "ClassB.h" Just copies the whole content of the file to the... (by Breadman)
Why not Console?
 
Hi everyone, While going through some posts I noticed that if someone wants to do a little extra, may be make a game, then that guy is discouraged to do so ...
[5 replies] Last: The SFML tutorials: http://sfml-dev.org/tutorials/1.6/ (by Athar)
Seperate Computer for programming?
 
Hi everyone I havent even begun programming yet but I am very interested in learning. I was wondering if I should buy a separate laptop to learn to write code o...
[7 replies] Last: Yesterday, I accidentally wrote a program called "ping" that created 2... (by helios)
Help: Installing CLAPACK with VS2010
 
Hi, I am trying to learn C++ on my own and that's why I am in this forum. Anyway, I am trying to perform some linear algebra operation using CLAPACK. Howe...
[8 replies] Last: Thanks modoran for reading my post. Here is scrrenshot uploaded ... (by deeus18)
by fiona
Random Numbers in an Array
 
I am brand new to C++ and working on a homework assignment (just need to get past this hump). I have a function that is working with an array of 3 numbers. I'm ...
[6 replies] Last: Thank you so much guys! My friend told me to use an itoa function but ... (by fiona)
by TAMH
Help with my Blackjack program
 
Hey everyone, For my final program in my C++ Programming I class we had to create a program that we had interest in. Since I enjoy card games I decided to cr...
[3 replies] Last: Something someone should point out, Borland is way out of date (*hint*... (by Danny Toledo)
Complier error
 
#include "stdafx.h" #include <iostream> using namespace std ; int main () { int x = 6 ; cout << x ; x = 9 ; cout << x += 1...
[3 replies] Last: Wrapping the computation in parentheses will change the order of prece... (by closed account zb0S216C)
Char array new form ?
 
What does it mean when the char array is used in this form Char array[1<<19]; Can someone please help? Thanks :)
[3 replies] Last: Thankss ^_^ (by Passion)
by rucafe
Using classes to retrieve data
 
I have a file that contains thousands of numeric entries sorted into four columns. The structure of the data looks something like the following: 3 0.2 0.5 ...
[1 reply] : You want to create a collection. See http://www.codeproject.com/KB/tr... (by webJose)
help with functions
 
Hello everyone, I am new to programming and this is my first class. I am having couple of errors. I am not getting the taxRate info correct unless and until t...
[2 replies] Last: taxRate = grossPay * .23; i think the problem is there. taxRate is... (by Breadman)
STL is a toy for beginner?
 
My senior say, stl is a toy for beginners Because those beginners can't implement the algorithms and data structure by themselves Those mature and skillful prog...
[3 replies] Last: Looks like there are no way to solve this kind of problems Somebodies... (by stereoMatching)
difference between using cin.peek and simply calling a character variable
 
hi, im a beginner to c++ and just recently got stuck on something. consider this program: #include <iostream> using namespace std; int main() { cha...
[1 reply] : [co de] "Please use code tags" [/co de] while (ch == '#') //ch ne... (by ne555)
Check Multiple Numbers With a Switch Statement
 
I am having a problem with switch statements. I would like to check multiple numbers in one case, but can't figure out how to do so. Any help would be appreciat...
[1 reply] : int i = 5; // any value here switch (i){ case 0: case 1: case... (by modoran)
I am beginner to programming
 
After writing a code I tried to run the program. I am getting an warning saying Source file not compiled. and It is also mentioning such a file is not found
[1 reply] : You must compile (or build) the code. Which IDE are you using? (by lfnunley)
use of namespace
 
for what purpose we use using namespace std;
[3 replies] Last: C++ got a proteccion for the colisions with names, for example a funci... (by Aikon)
I typed this program. this program is not displaying the output
 
#include <stdlib.h> #include <iostream> using namespace std; int main() { int x; std::cout<<"Enter the value of x"; std::cin>>x; ...
[7 replies] Last: [quote=helios]There's two possible interpretations for what you said, ... (by closed account zb0S216C)
How do i return an array from a function?
 
I have an array in a function call and i want it to be sent to the main program. //prototype float functionA(float f, float g); . . . float funct...
[1 reply] : It can't be done directly. http://www.cplusplus.com/forum/beginner/436... (by helios)
June 2011 Pages: 1... 3435363738... 41
  Archived months: [may2011] [jul2011]

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