Beginners - February 2011

Open a C++ file from another C++ file?
 
Title seems confusing but it is not in reality . What I'm trying to say here is that , From a C++ file (Compiled), when the user chooses the second option, I w...
[3 replies] Last: For your first question: http://msdn.microsoft.com/en-us/library/ms682... (by Computergeek01)
Run-time Error 2
 
Can anyone explain to me why I am getting a run-time error when I run this program? #include<iostream> #include<iomanip> #include<cstdlib> #include...
[2 replies] Last: else { //problem here - new_random_seat... (by guestgulkan)
by gigic
Problem with Calculator Program
 
Write a program, which will act as a simple four-function calculator. That is it will read a number, read an operator, read another number, then do the operatio...
[2 replies] Last: Hey...sorry so long to get back. When I first tried a reply, system w... (by gigic)
Output problem
 
#include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; const string ID = "David Lab 17";...
[6 replies] Last: Try changing fout to cout. (by Moschops)
How do I tell how many bytes are in a file?
 
also is EOF 1A like it is in assembly using windows?
[5 replies] Last: You can use stat... struct stat st; stat(filename, &st); size = ... (by ultifinitus)
Binary codes in a txt file
 
My codes: #include <iostream> #include <fstream> #include <bitset> using namespace std; int main(){ char *a; ofstream file; dosya.open("Binary code...
[9 replies] Last: Thnx Duoas for ur helps.But tried this method beforehand.I wanted to m... (by Helegurbann)
Fibonacci numbers
 
What are fibonacci numbers realistically used for in programming? I was in a lecture where my it was mentioned but I didn't get their purpose. Apparently it has...
[1 reply] : How about this: http://en.wikipedia.org/wiki/Fibonacci_number#Applica... (by Zhuge)
Fibonacci numbers
 
What are fibonacci numbers realistically used for in programming? I was in a lecture where my it was mentioned but I didn't get their purpose. Apparently it has...
[no replies]
Problem with sorting function
 
I am having trouble sorting the netpays in a payroll program. My prof emailed me a sample and I tried to incorporate into my code, but it still will not compile...
[11 replies] Last: That error might be because of line 191, at line 51 you tell the compi... (by Computergeek01)
by jm13
pseudo code into a program
 
Hi i am a beginner to c++ and need some help in converting the pseudo code into an actual program. If anyone can please help it would be greatly appreciated. ...
[no replies]
catch stack overflow
 
Hi I'm working on a task which requires us to excecute a recursive function and then when we've reached the stacks limit clear the stack and then excecute anoth...
[2 replies] Last: The recursive task you're describing would cause a page fault before y... (by Computergeek01)
How to change ASCII address in memory
 
as topic, I must chane ASCII formats with address changely but I could not it. I saw some scripts but that about int formats(4 bytes) I want about ASCII, ple...
[3 replies] Last: I'll take a leap and say that this is a question about casting integer... (by Computergeek01)
about pointers
 
what is teh differnece between int* ptr; and int** ptr; what does dereferencing actualyl do?
[3 replies] Last: By the way we aren't trying to be dismissive, especially about a subje... (by Computergeek01)
Combination of Function, Loop And If-Else Statement
 
My question is as below: You, as a programmer are required to develop a C++ program that checks the status of Air Pollution Index (API) based on the table be...
[2 replies] Last: where should i put the while loop?? in function or main body?? (by richgirl)
Our project
 
HEEEEELP!!! I see no error in our source code, but the Borland saw my error I didn't see!!! void P_TRIANGLE(void) ...
[4 replies] Last: GEE, THANK YOU SOOOOOO~~ MUCH, GUYS!!! THAT REALLY HELPED!! :D THANK Y... (by maisetsuna)
by tonnot
The best way to use buffers / streams/ strstreams ...
 
I have some confused with all of this. I'd want to 'connect' the char data input with file.read() with the best way to work with it. What is ? stream, strstrea...
[2 replies] Last: Yes, I have a great confusion about streams... Now, I can able to rea... (by tonnot)
Error Message
 
Every time I try to run the following program, an error message occurs saying Program5.exe has stopped working. I was wondering if anyone would be able to tell ...
[1 reply] : int seat_stop = 1; //... int new_seat = rand()%(100 - seat_stop);... (by closed account z05DSL3A)
i Learned the Basics of C and C++.what should i do next.?
 
i Learned the Basics of C and C++.. whats the best step that i should take forward to be a professional programmer. what should i learn next.. i am not aware...
[4 replies] Last: i like playing with the inner system files,making application to chang... (by aimancplus)
by altug
Compiling Error
 
Hey guys ! I just started to C++ on today and from the beginning i have compiling errors as in the following image ; http://img696.imageshack.us/f/errorvh.jp...
[2 replies] Last: Thanks, i created a new empty project though solved the problem.Thanks... (by altug)
Returning Values
 
Can a function return a whole array?
[2 replies] Last: Can a function return a whole array? No. You would also have pro... (by guestgulkan)
February 2011 Pages: 123... 43
  Archived months: [jan2011] [mar2011]

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