Jishnu 160 Posting Pro

Naveen, would you explain me what is l337 all about? There are many references to that in this thread, but all of it appears to be nothing but crap..

Jishnu 160 Posting Pro

blew...

Jishnu 160 Posting Pro

blew

Jishnu 160 Posting Pro

its a tuff game leave some words for me to type Jishnu ..

change a letter or two AND type one word only

Okay :)

boss

Jishnu 160 Posting Pro

route, tour, rot

compliment

Jishnu 160 Posting Pro

Aia's avatar is also good..

Jishnu 160 Posting Pro

Whether you choose to do this or not you've got a lot of homework ahead of you.

Yes, of course. These concepts are very much new to me and it will take quite a bit of time to have a decent grip over them. Thank you very much :)

Jishnu 160 Posting Pro

Sorry, I missed the point. Can you explain it to me?

It is the point that AD and vmanes stated. See posts 3 and 4.

You should start noticing smiley's in posts. They help in knowing the sentiment with which the post was made.

Right :)

What the hell is all that crap I'm sure glad I learned English

Same over here.

Sure you can read it, but it slows you down and possible gives you a headache. You might get arrested by secret government police, who undoubtedly think you are using encrypted spy code.

Haha, if everyone can read it, why not secret government police? ;)

Tihs is a clpmaxeretnuoe to the aoitressn mdae avobe, yet it fwollos the rtnemeriuqes gvien in the avboe oanigirl psot. But nodboy can cltcerroy ierpentt its ctnetnos wuhotit a luoirobas eovaednr.

:) That is one level harder. But, one can understand as long as the words are familiar.

Jishnu 160 Posting Pro

Haha... on smiliar lines,

Which one is better?
a) Computer Engineering
b) Information Technology Engineering

Jishnu 160 Posting Pro

-498

Jishnu 160 Posting Pro

just or pest or best

Jishnu 160 Posting Pro

I like Salem's too. Very original and thought provoking :)

Jishnu 160 Posting Pro

More motivation for l33t speak. Sigh, what has the world come to. :-)

Wow, sos that was horrible.
|33t? It's 1337 dude. Pipe (|) is an I. And if you didn't know all the 1337 letters to that word, why didn't you just type leet? 0|-| /\/\'/ 90|)
7|-|47 5|_|<|<5 73|-| |\||_|75 |=0|2
j00!

Could anybody tell me what all is going on here?

Jishnu 160 Posting Pro

aidnI

Jishnu 160 Posting Pro

4272

Jishnu 160 Posting Pro

flee or flea

Jishnu 160 Posting Pro

seed, bless, led

however

Jishnu 160 Posting Pro

Important is a relative word.

Jishnu 160 Posting Pro

Hey, let me clarify. I don't mean that spellings aren't important. I'm just stating a point.

Jishnu 160 Posting Pro

I huess you misunderstood Narue. Narue was just giving an example. I think this is something you are looking for:

for(i=0;i<256;i++)
{
    cout<<i<<'\t'<<(char)i<<endl;
}

It displays the entire ASCII character set.

Jishnu 160 Posting Pro

I like AD's and mine :)

Jishnu 160 Posting Pro

CAN YOU READ THIS??

fi yuo cna raed tihs, yuo hvae a sgtrane mnid too.
Cna yuo raed tihs?
i cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg.
The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at
Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a
wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be
in the rghit pclae. The rset can be a taotl mses and you can sitll raed
it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed
ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I
awlyas tghuhot slpeling was ipmorantt!

Jishnu 160 Posting Pro

I'll try to be a bit calm (for a change ;)) and more resolute in pursuing my goals..

Jishnu 160 Posting Pro

And as explained by ssjarish it doesn't matter what computer language the programs are written in as long as that language supports sockets.

Do C and C++ support sockets? Are any special libraries required?

Jishnu 160 Posting Pro

Wishing you all a Merry Christmas and Happy New Year...

Cheers,
-Jishnu.

Jishnu 160 Posting Pro

@Duoas

You could do it something like that, but it introduces more problems than it solves:

fork() doesn't work on Windows. Even if it did, you would still need to set up some IPC to make things work right (that is, keep state, avoid excessive process loads and task switching, and I/O buffering, response time, and message configuration).

I agree.

Another option, if you intend to have a "end-user programmable" AI, is to provide a basic language interpreter (embed Tcl or Python or somesuch), and execute each AI's code in a sandbox environment.

I didn't understand this, Duoas. Please would you elaborate a bit? Terms like basic language interpreter and sandbox environment are completely new to me.

@ssharish2005

The LISP routine would normally find the path for me, the output of that function (Which is nothing out the path) will be sent to my C code using sockets.

Do you mean that I can send a value from a function written in one language to the main function written in another language using sockets? I'm new to the concept of sockets.

You could use sockets to communicate between routines if your wanted. Which makes it more simple, some thing similar to RPC or RPCgen which you are requesting for a routine to be called on the server and the output of that function would directed to the client to the client.

I don't know what is RPC and RPCgen . Are these related to sockets? …

Jishnu 160 Posting Pro

In case of VB, try searching for MSComm controls on google.

Jishnu 160 Posting Pro

AD has already answered this.

How to send/receive on serial port is operating system dependent. The code you posted was written for MS-DOS and Dev-C++ only compiles for MS-Windows. You can not use any of the code you posted with that compiler.

Jishnu 160 Posting Pro

Right. But just in order to demonstrate the dynamic nature, we must use command line arguments rather than using a constant value. Then the OP can set n to the value obtained from the config file in his code.

No issues :).

Jishnu 160 Posting Pro

the basics in c++ i did solitiare game and tic tac toe game so far

I forgot to put this inside quotes.

If you are interested in game programming learn OpenGL. If you already know it, try making games like bingo, reversi/othello, go...

Apart from games, you can make many management systems like attendance management system, employee management system, library management system etc.

Jishnu 160 Posting Pro

Correct. But to make it dynamic in its real sense, you need to pass the no. of files by command line arguments to main and then use that no. wherever you've used the fixed value 10..

Jishnu 160 Posting Pro

If you want to confine your program for DOS only (warning: highly unrecommended!) and shun learning (warning: again highly unrecommended!) what AD said, you may try to compile this code with some MS-DOs compiler.

Jishnu 160 Posting Pro

the basics in c++ i did solitiare game and tic tac toe game so far

If you are interested in game programming learn OpenGL. If you already know it, try making games like bingo, reversi/othello, go...

Jishnu 160 Posting Pro

thanks all for your fast help i have succeded in the first time in my life with C++

Congrats ;)

if i want to check that the string contains $GPGLL

Use strstr function after copying the file contents to a buffer/string.

Jishnu 160 Posting Pro

The point is, I don't like red spots on my profile just due to the wierd nature of someone else. I would not have started this thread if there was a valid reason for the neg rep..

John A commented: You are obviously taking reputation far too seriously. Anyone who judges you by the number of green or red spots on your profile is an idiot. -2
Jishnu 160 Posting Pro

but it is listed in your profile.

But, why should I bear even that just for nothing?

Jishnu 160 Posting Pro

Hello,

I wonder why am I getting negative reputation for starting threads in the geek's lounge.

Take a look over here.
http://www.daniweb.com/forums/member115698.html

When I put the cursor on the link to geek's lounge, the screen tip says, "A random forum for chat about anything... ". I did not say that Murphy's Laws explain everything. It is just a thread dedicated to Murphy's Laws, nothing else. I don't think there was any valid reason for iamthwee to do this.

Regards,
-Jishnu.

Note: iamthwee is refering to something in this http://www.daniweb.com/forums/thread102006.html thread and the negative reputation is given for some other post.

jbennet commented: if you care that much then heres a green square +22
jasimp commented: Just becasue you care so much about it -1
Rashakil Fol commented: Your avatar is adorable. +6
~s.o.s~ commented: You have to learn to ignore suckers. +20
Jishnu 160 Posting Pro

Actually I've coded a common interface for a two-player fighting (strategy-based) game. Now, The strategy (technically speaking, A.I.) code has to be written by the players in separate files. I thought I'd include those two files at runtime (because there would be many strategy files, each of them numbered) in my main code to start the game.

Thank you all for your replies :).

As this approach won't work, I'd appreciate if you show me some another way of doing the same thing in C.

Jishnu 160 Posting Pro

The phrase 'Murphy was an optimist' is the 'law' called O'Toole's Commentary. As you yourself pointed out, the hypothetical original Murphy would seem to have been somewhat, if not severely, pessimistic. So how pessimistic must O'Toole's outlook have been?

I guess that would be pessmistic beyond the realms of reality.

Jishnu 160 Posting Pro

You can not surch or enamurate all functions of a executable.

You misunderstood me. I'm talking about methods to achieve what I want. I'm not using the word methods in the sense of functions.

Jishnu 160 Posting Pro

Don't know.. How can one know that by just visiting the site?

Jishnu 160 Posting Pro

Meaning which place has the highest no. of members...

Jishnu 160 Posting Pro

However, it is more platform specific than language specific.

I'd like to start off with the most language specific and the least platform specific way.

Just chuck the purpose; “#include” is a PREPROCESSOR directive. You would like to include header file even before you start compilation.

In that case, I'd rather reframe my question to: How can I select which function to execute at run time, all alternatives being stored in different files ;)

There are many ways to achieve an objective, You need to select one which suits best to you.

Suppose I want to search for such methods, what keywords should I use?

Jishnu 160 Posting Pro
Jishnu 160 Posting Pro

You can not include header file as such during runtime.

Aw, that makes me feel sad :(

There are other ways to include code at runtime like load dlls, but to answer your question you cannot include header file as such on the fly.

If that is the case, then I'd appreciate if you list some methods to do it beyond the premices of C.

Jishnu 160 Posting Pro

I didn't say that we don't create objects dynamically ;). Anyway, this is not something the OP is interested in.

Jishnu 160 Posting Pro

When we create object from a class, it is created on stack or heap. The existence of an object in memory (stack or heap) is called instance of an object. These are interchangeably used.

Jishnu 160 Posting Pro

The files I want to include are header files. They contain definitions of some functions. I want to specify which definitions are to be used at run time.

Jishnu 160 Posting Pro

Unfortunately, I don't have any other usb devices with me. And yes, the usb controller is installed. Thanks, I'll go through the link and come back to you.

Jishnu 160 Posting Pro

I'd say some of his observations sound pessimistic (sometimes even wierd); but they are surprisingly realistic.