sorry m8 i accidentally pushed the post button...:(
i should hav known u r lurking...to get your post counter up...
Type: Posts; User: trekker
sorry m8 i accidentally pushed the post button...:(
i should hav known u r lurking...to get your post counter up...
u shouldn't be so hasty....
that's not what i asked
thanx anyway
hi,
i'm puzzled by the use of the extern keyword.
1) when used in functions, it's just for stylistic purposes.
So, that use is pretty clear.
2) when used in variable declarations...
that's exactly what i want to do.
i know the structure should be of my choice,
but i'm asking for any common or popular ways to do so.
I just want the doc for them
i want my program to be able to figure out if an input file
is one that was generated from it.
How can i use the magic number technique ?
Are there any other portable ways ?
TIA
It's not really important.
Foo2 is supposed to construct Foo objects
from a file.
Java programming corrupts... ;)
I've really stuck on this error.
Here's the code:
file : Foo.h
#ifndef FOO
#define FOO
how to i create a password field for a DOS app in C?
e.g.
username:trekker
password:*****
I would also want a few links/books on DOS API programming.
i've finished a small client program to handle
a MySQL db on a remote server.
The cmd line app works fine with the db on localhost
and with the exactly same db on the remote host
through a modem...
you'll probably need to reference the monumental
"The Art of Computer Programming"
Volume 2 - Seminumerical Algorithms
in order to optimize the code.
I've done it only in C
I've tested it on
1) Mac OS classic with Codewarrior
and because the classic mac os implements the
cmd line as a standalone app
on
2) Win 2000 with VC
i think it's more proper to use something like this
while (scanf("%d", &opt) == EOF && opt != -1)
thanks
...
int choice;
cin >> choice;
...
if i enter no numerical chars a cin error occurs
that i can't restore with cin.clear()
i detect the error with cin.fail()
i write a pretty usual while loop like this
...
while( opt != -1 ) {
printf( "Enter option : " );
scanf( "%d", &opt );
// do something here
it's just says 'COMPILER FATAL ERROR' and that I should contact
Tech Support. Well, I may do so in order to inform them about their
'wonderful' compiler.
Note, that MW Codewarrior compiles it...
my odyssey with VS continues...:mad:
i've written a simple string class of my own but i get a
compiler fatal error when it tries to compile the first
'friend' function i declare in the class...
thanks for your answers
your solutions worked fine
it's obvious that I'm using VS 6.0
I've previously tried to use the __MSDOS__ predefined constant
but it didn't work. Any suggestions?
i'd like to provide me with links to help me understand
the foggy area of software licenses.
e.g.
if i want to provide a software project completely
free does the OS licence suffice?
Do i have...
Whenever i'm trying to use the std C header files
with the using statement
in a C++ project with Visual Studio i get an error at compile time
e.g.
...
#include <cstring>
well, perhaps i wasn't clear.
when i say no output i mean that not even the
...
fprintf( stderr, "hello" );
...
here's my code
#include <stdio.h>
#include <mysql.h>
MYSQL db;
int main( int argc, char *argv[] )
{
It depends on the platform you are using CodeWarrior.
So, you may use Metrowerks Powerplant Framework or
Apple's Cocoa/Carbon frameworks if you are on a Mac,
MFC on Wintel box, Java for a...
well, it's a good FAQ
but i didn't find my answer there.
I managed to compile GNU getopt.c file with minor
modifications.
thanks anyway
...so normal strings do have any possibility of causing an error
since the only zero byte in the ASCII table is the terminating null
char.
tnx
i've been browsing through the MySQL C API reference
and found that query strings may contain binary data such as
the '\0' and may cause erroneous results from functions like
strlen().
Any idea...