Beginners - September 2011 (Page 6)

calling another .cpp file from another
 
I'm sorry if this question has been asked before or if i am asking it in the wrong place. I'm trying to figure out how to recognize a call to a .cpp file fro...
[4 replies] Last: no i'm not trying to do this at runtime. i'm trying to remove a chunk ... (by squirtman59)
what is "bool"?
 
I haven't found anything in any of the books I've read, and I cant seem to find anything with google that gives a clear explanation of what it is, so what is b...
[8 replies] Last: Thanks for all the help, I suppose having access to this nice forum ha... (by c0d3Man15)
by codrgi
goto and labels
 
BYTE var = 0; var = some_global_variable; if(var == 1) { var2 = another_global_variable; if(!var2) goto label_1; //some code here } else//Since th...
[7 replies] Last: Not quite. In assembly the only flow control is a "goto" (or branch ... (by Duthomhas)
by gh24
Output Data to CSV File
 
Hi guys, I am having trouble getting my code to output the data into a CSV file. Here is the main function. Everything runs correctly and the main function w...
[3 replies] Last: Thanks for the advice, I changed the code section so that might help. ... (by gh24)
Validation Problems
 
I know this might have been discussed many times and I looked over the solutions but it's really messy... I just don't understand why there is no simple type v...
[10 replies] Last: thank you again! we have to use iostream since we just began c++, I gu... (by trixrabbit)
hi implement an stack using 2d arrays
 
hi my name is elvis and i am trying to do a project where i need to push 10 random numbers to my empty stack of capacity 25, then perform some pop and run displ...
[no replies]
by xordux
Func Overloading
 
Suppose there is a function with following prototype : void f(int=10,int=20,int=30,int=40) If this function is called by passing by two arguments to it ...
[7 replies] Last: @mik2718 : its bit tough , but i'll try :) Thanks a lot (by xordux)
Reference class members
 
Hi all, I have a question about references. Let's assume I have an abstract class A, and several derived classes A1,A2, etc... I want to build another clas...
[4 replies] Last: The reference to My_A1 is created when you enter the B constructor Re... (by mik2718)
Fahrenheit to Celcius
 
#include<iostream> #include<iomanip> using namespace std; int main() { float tempF; float tempC; cout << "Please input the temperature in cel...
[6 replies] Last: No, because tempF and tempC are not involved in the expression. The... (by Disch)
by Boy
Rouding Function
 
I have tried a c++ rounding function and could only round a number to the nearest integer.How to round a long double to the number of decimals specified by the ...
[2 replies] Last: If you will have any problem with cout.setf(ios::fixed,ios::floatfi... (by xordux)
Dynamic Memory between functions
 
I'm still trying to figure out pointers and dynamic memory. Once the dynamic array reaches a value of five or any multiple thereof, this function is called to i...
[no replies]
Functions.
 
Here's my problem: I'm trying to make a function that takes a number, puts it into an array and then prints it. Simple. But, I want the program to stop takin...
[3 replies] Last: *Sigh* Well, I need to look closer into what I am declaring with my ... (by Ben Duncan)
Memory Access Issues
 
I am writing a program that accepts input from a user, and places the input into a dynamic array. The variable counter is used to keep track of the number of el...
[2 replies] Last: Thank you! I knew it was something small I was missing. (by ddwinters45)
Help with iterating
 
Hi there, I've finally decided to take the leap into C++ and have picked up C++ Primer (4th Edition), after a lot of review reading this seemed like one that ha...
[3 replies] Last: Thanks so much guys! These iterators are a new beast for me, I've alwa... (by venusFlower)
arrays converting to isupper
 
I had to write a prog. to accept a string and then change every uppercase to lowercase, space to "#" and fullstop to "@" but after compilation the program disp...
[3 replies] Last: Turbo C++ is really old!(but we are made to use it in school as well).... (by Nisheeth)
by jalfor
OpenGL Models
 
I was wondering if anyone could at least point me in the right direction. With OpenGL when you want to load a model, you have to create your own loader, right? ...
[2 replies] Last: you will need GLUT ( the OpenGL Utilities Toolkit) from: http://www.op... (by olzi)
Detecting Enter Key?
 
Hello, How would you make a program detect when the user enters the enter key. I don't want the exact answer, just a hint to nudge me in the right direction....
[11 replies] Last: Yep, It works! Thanks a lot guys. (by Code Assassin)
mixing c and c++
 
hi Does anybody know how to mix c and c++ together or even how to force c++ compiler's like visual studio to accept "c" code (which I would have programmed) ...
[4 replies] Last: extern "C" is a good solution but if you have a C code, just change fi... (by tolga gerekci)
functions
 
i was bored today in class so i decided to do some coding. i was trying to learn more about how functions worked. i created a simple "number guessing" program w...
[2 replies] Last: thanks mate. i was starting to feel stupid cause i couldn't figure it ... (by even821)
Please help!! If/else loop
 
the program runs, but when I input 1600 it says it is a leap year and is not? should I use double for remainder? #include <iostream> using namespace std; ...
[10 replies] Last: Right here! http://cplusplus.com/reference/ (by JMJAtlanta)
September 2011 Pages: 1... 45678... 48
  Archived months: [aug2011] [oct2011]

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