im redoing it to invovle a key and useing files instead of input ought to be pretty nice thanks for the help fixing those problems.oh ya and about file i/o if i just use
ifstream(file.txt)
does it...
Type: Posts; User: 0927
im redoing it to invovle a key and useing files instead of input ought to be pretty nice thanks for the help fixing those problems.oh ya and about file i/o if i just use
ifstream(file.txt)
does it...
when i compile a program se i find these files where made what are they do i need them?
se.obj
se.tds
i fixed my earlier problems now it is this
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <windows.h>
#include <dos.h>
here it is
#include <iostream.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <windows.h>
#include <dos.h>
i use
#include <iostream.h>
#include <stdlib.h>
int main()
{
cout<<"So do I"<<endl; //endl == end line == \n
system("pause");
when i compile with borland 5.5 it compiles to
c:\borland\bcc55\bin
is there a way to have it put what it compiles to
c:\borland\bcc55\bin\programs
or something or i might just not know what im...
i was searching through conio.h included in borland 5.5 and i saw the function ungetch() whats it do im just curious
what if it's on 'z' does it go to 'a'?
I want to learn more about strings and char's like replaceing a character in a string or adding a string onto the end of a string. If anybody knows of any good tutorials on string handeling please...
Ok lets say i made a header file header.h and i want to use it in my program i know i would use
#include "header.h"
but that means im going to have to give it out with my program right. and if so...
int main()
{
int bob;
bob = rand()%6;
cout<<bob<<endl;
}
would output something between 0 and 5
here it is
void overloadMeessage()
{
char OLstring[256];
cout<<"OverLoad:"<<endl;
cout<<"\t OverLoad Message"<<endl;
cout<<"\t\t Enter Message to OverLoad: "<<endl;
ive been thinking of ways to use getch() in a menu im makeing so i figured i'd try to use it first and made this:
int mian()
{
char test;
test = getchar();
if(test == a)
{
cout<<"Hello";
}
Anyone know any tutorials my book that i bought discused it a little but what i want is to make a header file to shorten my typeing time by doing things that normaly take forever to do a simple...
before i started learning c++ i learned visual basic and in it there was a type of thing to do key press how do i do it in c++ to where its like
cout<<"Enter commmand"<<endl;
//user presses a...
Hi im makeing a program and what i want to do is have usernames just to keep prefrences straight so i want it to open user.txt and match the user input and find the one in there then make a variable...