This particular code fragment runs till you press escape (Cred for the arrow-key detection system to Prelude :D)
It is supposed to show the objects of a class from a file. (Note, the program works...
Type: Posts; User: ultrabot90
This particular code fragment runs till you press escape (Cred for the arrow-key detection system to Prelude :D)
It is supposed to show the objects of a class from a file. (Note, the program works...
But what should I do bout the junk values? o.o
Yet another problem...I tested the program thus -
1. Compiled+Run once, then added an entry, quit.
2. (no changes in code) Compiled+Run again, started function 1 (read from file), quit.
It just...
Ouch, thanks (But surely you didn't think I put those single quotes in deliberation? Awful mistake of mine.)
Another question...When the program inputs a line from the user in create_new_record(),...
I have a project here (console address book program)
#include<iostream>
#include<fstream>
#include<windows.h>
#include<cstdio>
#include<string>
using namespace std;
void clrscr(void)...
Omfg I went and confused it with a character array which has an '\0' in the end to help in comparison...Pwnd. I am using the dynamic memory allocation method now, which should've bin done ages back...
@matsp- A const is just what I dont want to make it
@anon - "and do not miraculously substitute dynamically allocated arrays."
That's nailed it, then.
I dunno what's a GUID....e[] is just the same...
What do the following errors mean?
1. variable-size type declared outside of any function
2. no match for 'operator!=' in 'e[temp]!='\000''
candidates are BOOL operator!=(const GUID&, const...
Yep I did that in the main code.
Yeah, I noticed how I couldnt do it in Borland C++ v2 (MS DOS sorta thing)
I'm afraid I dunno how to do that for arrays.
I saw that bit, thanks for pointing it out...But this is just a part of the whole program.
1. This is function will be executed every time the program starts. (And the default value in span.txt is...
That points to 'readspan' here.
But all the same...
int main()
{
int in;
Entry e[bookspan];
ifstream readspan;
readspan.open("span.txt", ios::in);
I need a part of my program to read an integer value from a text file (there's nothing else in that file) and assign the found value to a number. That number (bookspan) is not a member of a...
Hey, yeah, I googled std::vector and found a guide (http://www.codeguru.com/cpp/cpp/cpp_mfc/arrays/article.php/c4071/) and linked lists are what they're using in class, I think (linked lists google...
I'm working on a huge (by my standards) address book program, and it consists of the array of objects of a class Entry. Each element is one entry in the book.
Please help me by telling-
1.How to...
Thanks o_o
But what if I need response for, say, an alphabet or a numerical key?
Edit - Googled around for 'keyboard code map', no go, no index of keyboard codes...sigh.
I need to give the look of 'pages' in a console app, eg Right arrow key will show the next object, Left will show the previous object etc. Basically, I just need to know how to get that kind of a key...
Thanks for that one o.o
I wonder how I can do away with the recursion here, though...?
matsp, on the link you gave, it says...
string s;
getline( cin, s );
cout << "You entered " << s << endl;
But I thought string wasn't a keyword? O_O
And Im afraid I did not understand...
Uh, length shouldnt be a problem at THIS stage, I guess, its just experimental -_-
Whatever is recursion? O.o
And this app is meant for a school project...if I were making something for myself, I'd...
class Email
{
char email[20];
int count=0;
public:
void enter_email();
};
Email::enter_email()
{
cout<<"\nEnter email...";
I was working on a project, and I was wondering if I can make something like a email entering system, probably using a class. I want it to do the following -
1. First perform a prelim check for any...
Uh, whats execl()? What does it do? Just asking for experience... o.O
Noobs *rolleyes*
I wonder why the program terminates, though?
I'd replace the...
if(D=0)
...with a...
if(D==0)
Whats PDCurses? o.o
And whats gcc/g++?