Beginners - June 2008 (Page 4)

Writing to files
 
I just learned how to write to a file, but when I do this, it completely erases the file and writes what you want. Is there any way of writing something to a te...
[1 reply] : Try using: streamname.open ("filename.txt", fstream::in | fstream:... (by firedraco)
cin>>a(where a has been declared int)(what if user enters char)
 
Hi, what is the output of foll. prog and why? #include<iostream.h> #include<conio.h> void main() { int a,b; clrscr(); cin>>a>>b; cout<<"\n"<...
[2 replies] Last: Um, IIRC, it will glitch and start spamming you with messages and stuf... (by firedraco)
can't understand first program of c++
 
Dear Sir/Madam, I have studied basics of c++ two yrs ago.But now when I agian started to study c++ from the beginning.I am not able to understand starting of p...
[4 replies] Last: You can use both... Depends on what you need. If you don't need alot ... (by Mitsakos)
Actions on abnormal termination
 
Hello everybody, I am trying to make a program that simulates certain keystrokes on another program. My problem is that if the user terminate abnormal and sudd...
[no replies]
converting to binary in assembly
 
Hi I am very new to assembly. I am trying to convert some numbers to binary. I have written most of the code so far, but can't figure out how to convert to b...
[2 replies] Last: *cough* This is a C++ forum, not an ASM forum *cough* (by Zaita)
Struct problem
 
#include <iostream> using namespace std; struct producecomp //creates a structure to be called on in lines 26, 28, and 30 { string name; string store; f...
[5 replies] Last: Gotcha. (by QWERTYman)
SWITCH problem
 
#include<iostream> #include<string> using namespace std; int main() { char action, item1, item2; int progress = 0; bool a = true; sys...
[1 reply] : yes.. I have reformatted the problem code as below with a couple of c... (by guestgulkan)
C++ just beginning????? (1,2)
 
I am using Visual C++ 2008 express edition. When I make a new program, I go to win32 and click new console application, but when I put this in: #include <ios...
[20 replies] Last: Try saving all your files before you compile. I encounter the same sor... (by Angriper)
by ebbo
Pathfinder
 
Hi, Ive taken a little break from programming but now im back. I thought id be ready for my first attempt at some very basic "AI". The goal of the program b...
[2 replies] Last: Its been allmost a day so i think im allowed to kick this topic back u... (by ebbo)
compiler
 
how to identify the type of compiler used?
[1 reply] : Most compilers will auto-define macros that identify themselves. You w... (by Duthomhas)
Fn. Called With Same Arguments' Values Many Time
 
My algorithm uses a function like ....... long double E(int x1, int x2, int x3, int x4, int x5) // x1..x5 start from 1 and go upto few thousand (2,500) { ...
[1 reply] : Why don't you use variable length arguments (multiple arguments) ? (by audinue)
by AndyC
Reading text into an array
 
Hi, I am new to the site and and finding it a great source of information.I would be very grateful if someone could help me with a small problem. I am trying to...
[2 replies] Last: I tried it out and the way I did it is open file ifstream input... (by salman)
Problems again with Operator Overloading
 
Hey again, I'm finishing up a program that was written to learn operator overloading. I got some of the code for me and was told to write the parts about overlo...
[1 reply] : Completed. Used the debugging feature of VS C++ 2008: http://www.mic... (by enduser000)
Switch statements w/strings
 
Is there any way to do something like the following: #include<iostream> #include<string> using namespace std; int main() { string action, item1,...
[2 replies] Last: aaaaaaactually.... I am a beginner. I haz no idear hou 2 do dat. I'l... (by QWERTYman)
Problems with 'keybd_event' in certain applications
 
Hi. I am trying to create an application that takes input from a Wii control and then immitates key presses. I understand there are programs out there that ca...
[no replies]
Program stopped working....
 
Hi! I am writing a payroll program using class, and also finding the average of the employees net pay. I have been working on this program for weeks, and when I...
[12 replies] Last: I figured it out with help! I had to take out the int n; so that the ... (by LostStudent)
by salman
Arrays
 
Hi, if I define an array for example int array ; How come I can define the following without any problems array =1; Shouldn't it give...
[3 replies] Last: ok thankssssssss (by salman)
Starting MFC applications
 
I'm trying to create my first MFC application but the only problem is when I go to the new projects window for MS Visual Studios 2008(Express Edition) I don't s...
[8 replies] Last: What's .Net? and C++/CLI? You see the references with the web addre... (by closed account z05DSL3A)
why?
 
hi , i cant seem to compile my program. what ,must be wrong?
[1 reply] : You will need to be more specific about the problem you are having and... (by closed account z05DSL3A)
clrscr();
 
how can i declare "clrscr"????
[3 replies] Last: Is copying the conio.h ok? (by audinue)
June 2008 Pages: 123456... 13
  Archived months: [may2008] [jul2008]

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