Beginners - July 2011 (Page 18)

Please Reply
 
hi my name is stackey maria i am a student of software engn. m learning from NIIT. Please Can anybody tell me that how to Run a Program without (Main) in C++ ...
[6 replies] Last: Hey Stackey Mariam, is there NIIT in your country? And what course are... (by afrocplus)
#include 'directories' question
 
if #include calls up directories why wouldn't i just put a massive list of #include 'directories' on each program? What is the good of limiting them until you ...
[2 replies] Last: It takes memory, space, and time to include directories. If you inclu... (by jeffsg605)
by kassik
extracting out an array from a function
 
I want to write a function in which I'd like to extract out an array from that function; I would be so appreciated if anyone could help me.
[3 replies] Last: Probably basic C/C++ tutorials cover this part. Why? Are you having ... (by webJose)
int squaring error
 
I've just finished writing my first program. It asks for integers and then returns a value of that integer squared. In messing around with different values for ...
[9 replies] Last: Thanks for explaining guys. I don't need such a large number, I was ju... (by stranrar)
Making A Function/Loops
 
I'm completely new to C++ and doing my best to learn as I go along, I am currently working on a programme to score a blackjack hand and so far so good I think, ...
[4 replies] Last: Got it working as a while loop, thanks for the help! (by c240589)
by toexii
Deallocating memory
 
int* pi = new int ; delete pi; Before deleting pi, it is a pointer to the first int of the array of ints in the memory. pi Does not know to how many ...
[2 replies] Last: Thanks, the explanation is a bit over my head at the moment, but it's ... (by toexii)
reading a number from a text file and storing it in a array
 
hi, am a novice in programming. i am facing some difficulty in C++ programming, actually i want to read a column of numbers from a text file or an excel s...
[1 reply] : Try this: http://www.cplusplus.com/doc/tutorial/files/ (by toexii)
by Leo94
code problem
 
The following code is not working... #include <iostream> #include "conio.h" using namespace.std; int main() { int a,b; a=3; b=a+5; a=b-2; cout <<"a:"; c...
[1 reply] : Try removing the dot here: using namespace.std; make it: using name... (by toexii)
more help...
 
I think my logic makes sense, but the program is doing half of what I want. the program: #include <iostream> #include <string> using namespace std; int ...
[3 replies] Last: Also, why does "" equal enter? It doesn't. getline() doesn't give ... (by Disch)
Large negative number output
 
When printday is called is see my variables initalize to the required dates, during the debug process, however it prints a large negative number, and I dont und...
[1 reply] : Date::Date(int m, int d, int yr) { int month = m; int day =... (by closed account DSLq5Di1)
How to Set Up DirectX in Visual C++ 2010
 
How do you set up a DirectX project for Visual C++ 2010 (the free IDE). I downloaded the SDK. It's the June 2010 SDK.
[1 reply] : You just need to show Visual Studio where to find the include and lib ... (by closed account DSLq5Di1)
C++ function to stop a number
 
Hello, I searched around some and couldn't find out what im looking for. Somewhat because im not sure what to call it, but im sure experienced coders like y...
[4 replies] Last: Disch, that is very similar. To put it simply, I wanted a box to appe... (by rfmaster93)
String to uppercase?
 
Hello guys! I have a little questions here... I wrote this strtouppercase function which return a pointer to char but I would like to know if there is a shorte...
[8 replies] Last: For your code above it would be wise to have the user provide a char* ... (by closed account DSLq5Di1)
Buffer Overrun?
 
Here is the error i am getting: A buffer overrun has occurred in SFML project.exe which has corrupted the program's internal state. Press Break to debug the...
[1 reply] : You're mixing Debug and Release builds of the library. If you're buil... (by Disch)
by Skizzy
Arrays
 
Ok, im learning one dimensional arrays, I think im confusing my self. Im supposed to make a program that makes 6 random numbers, put them in a array then displa...
[6 replies] Last: @creekist thanks for the code helped me too. I also added a little la... (by eaxx)
Trouble passing value to bool variable from if/else statement
 
After two bool variables have been assigned an initial value, they are assigned as arguments in a function. After being run through the if/ else statement they...
[5 replies] Last: I would like to thank everyone for helping, I discovered I had forgott... (by Chawnman)
Allegro window size
 
I just set up allegro 4.4.2 in visual studio 2010 and when I enter this code #include <allegro.h> int main(){ allegro_init(); install_keyboar...
[2 replies] Last: Well, forgive my ignorance of Allegro, but I believe if you want to se... (by creekist)
Using typedef
 
When you use "typedef" in a class definition (example: typedef char* Cptr), what is the distinction between making it public, protected or private?
[2 replies] Last: I agree, Thanks (by NewProgrammer)
How to save..
 
Hey guys, i wanna make a fstream project and i wanted to test something. I've tried this, but gives me a error. This is my code for fstream... ofstream ash; ...
[2 replies] Last: Yup and its a monster. I would recommend you work with native C++ or s... (by closed account DSLq5Di1)
by Simae
"Hello World" tutorials = 100% fail rates
 
Hey guys I'm a total beginner and I'm having a 100% fail rate no matter what I try I have tried the "Hello World" examples from the "For Dummies" book line ("V...
[12 replies] Last: Cheers all for your help, problem solved ("Hello World!") now prints ... (by Simae)
July 2011 Pages: 1... 1617181920... 54
  Archived months: [jun2011] [aug2011]

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