Beginners - May 2010 (Page 2)

My first project (need insight from regular users)
 
Hello everybody, I'm new to these forums and also to C++. I started experimenting a bit yesterday and today i made my first *useful* program. It is a BMI cal...
[3 replies] Last: Thanks M4ster, that's a really helpful post, however I don't get what... (by crazzyguy101)
How do you find the max/min without arrays
 
Hi, this forum was very helpful earlier. hopefully you guys can help again. I have to convert the temperatures from farenheight to celcius and then find the max...
[4 replies] Last: You could save the first value you read into two variables (max and mi... (by filipe)
why won't my pause function work with my getChar function?
 
Hi, I'm fairly new to c++ and programming. In my program I've written a function pausing() (see below) which I was hoping I could use anywhere in my program ...
[7 replies] Last: ah but basically you mean that I should check if there is anything in ... (by SirSkorpan)
reading a .txt file
 
hello, i just started learning to program and i need some help. I've tried searching but i dont understand any of the answers. so im given a .txt file that...
[3 replies] Last: Thank you all for the quick replies!! It took me a while but I got... (by allthepeople)
Getline Skipping (1,2)
 
Hi guys, #include <cstdio> #include <cstdlib> #include <iostream> #include <string> using namespace std; int main(int nNumberofArgs, char* pszArg...
[22 replies] Last: Thank you :) You helped me a lot. Thanks (by SirPereira)
Retriaving any data type for a method/function
 
I want to create a method that saves any data type in a char array.I already have done the casting stuff..(I finished writing some functions like intToChar() ch...
[6 replies] Last: if you are able to read the memory you are able to store it in a char ... (by sourena)
How do I fix this?
 
Hello dear cpp users and developers. I'm pretty new to C++ and made my first program. It's a simple calculator that totals up 2 numbers ... the interesting thin...
[2 replies] Last: I was able to fix it thanks to your tip, bluezor. The program works fl... (by avelqual)
"new" keyword
 
what does exactly it return? is it the same like in java? can i do this class cell{ //some attributes cell * nextCell; }; class memory{ cell * head...
[8 replies] Last: The use of void* is considered evil, just as a warning. void* effectiv... (by Albatross)
Play a sound file or a simple beep from C++
 
Hello! I have read all these posts about sounds, but no one answered my questions. Please note, that I do not want to complicate me with operating syste...
[7 replies] Last: I think ignoring it is justified given that it wasn't so much a reques... (by chrisname)
by TH 113
Taking out zeros
 
Okay I am making a program and I want the user to input some data that starts with zeros, this code here displays an example of what I am talking about: #...
[5 replies] Last: @R0mai THANK YOU SO MUCH! (by TH 113)
by devvit
Errors during multiple compilation
 
I was studying modular programming, and tried to compile two files: "stack.h" and "a.cpp" together. STACK.H FILE: namespace Stack { void push(char); ch...
[2 replies] Last: As hamsterman wrote, you need to define your Stack.h functions in a St... (by mr muscolo)
insert array
 
#include<conio.h> #include<stdio.h> double a ,b; int i,n,vtri; void size () { printf("\n put size array : "); scanf("%d",&n); } void ar...
[1 reply] : Could you please elaborate more on what you're trying to do? What do y... (by closed account Lv0f92yv)
Before I Go Any Further...
 
I am planning on making a RTS-esque game from the DOS (thinking about it, it's like a variation of pen and paper game you would play). So this is what I have so...
[1 reply] : Lines 77 thru 81 suggest a class-based implementation wouldn't hurt. C... (by closed account Lv0f92yv)
While loop with two conditions :(
 
Hi there, for some reason, this loop does not work, if any of the conditions evaluates to false, it stops the loop... :*( Any ideas why? My objective would b...
[3 replies] Last: Ok, I got it now, thank you very much :) (by rodomir)
by Adeon
Using and making custom libraries.
 
Ok, I'd consider myself on an intermediate level with the STL, and I want to move on to creating and using other libraries, but I don't understand how. My quest...
[10 replies] Last: Nevermind, I figured it out. I switched from using bloodshed to MSVC, ... (by Adeon)
how to use malloc to allocate memory
 
i want to know how to allocate memory using malloc........ i created a linked list of 500 nodes and i need to allocate that memory to implement something on top...
[1 reply] : http://www.cplusplus.com/reference/clibrary/cstdlib/malloc/ But I w... (by magnificence7)
by ETep
Changing char array value using pointers?
 
I'm trying to understand pointers. Can someone please explain why this doesn't work. However, if you change all of the types to type int, and the Z to an inte...
[no replies]
Inheritance Problem
 
I have written my code for my class and i keep getting a couple of errors. Could someone take a look for me and point me in the right direction. Here is my ...
[1 reply] : First of all, the next time you post code, please use [ code ] [ /code... (by filipe)
have multiple codes in one project?
 
Hello! I need to know if there is some way to have multiple codes in one C++ project. As in the main code, then some branching codes, but the entire thing fits...
[9 replies] Last: Create header file and a cpp file. In your header file, declare (bu... (by Albatross)
while(*userText) stops at a whitespace
 
Hi again all. First of all I wish to apologise for posting so much on this recently - C++ for dummies still isn't clear enough for me... My current proble...
[18 replies] Last: Note: getline() and cin.getline() can take up to three parameters.... (by Albatross)
May 2010 Pages: 1234... 33
  Archived months: [apr2010] [jun2010]

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