@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11



Comments:

<0> Tchaikovsky is awesome
<1> he's dead
<0> ok, his music is awesome
<0> ;P
<2> Sleet in the forecast tonight
<2> It was 80 yesterday
<2> Weird
<3> you can blame bush for that
<2> http://blamebush.typepad.com/
<4> is there some sort of php time() or mirc $ctime equivalent in linux that I can evaluate in a terminal, like echo %TIME% or something like that
<0> date
<4> wow i thought for sure i joined #linux
<4> why the f did i join c++
<0> and that's not how environment variables are used in Linux
<0> that's the DOS (Windows) syntax



<0> well, at least in windows
<4> yea
<0> I don't remember if real DOS had them
<4> i used the win syntax as an example
<5> $PATH
<0> but right, date will give you seomthign like
<0> Fri Feb 17 19:06:55 EST 2006
<5> ric_ isn't there a little program called date in linux ?
<5> where you can even p*** formatting options/whatever
<0> heheh
<5> oh, yeah
<5> i don't read anything you say
<0> it's ok, most people don't ;P
<5> hehe
<6> http://www.cnn.com/2006/WORLD/africa/02/17/zimbabwe.fetuses.ap/index.html
<1> nope
<7> Werd
<7> Call of Duty 2 Multiplayer pwns.
<2> Yes
<3> more than bf2?
<7> BF2 is crap.
<3> pffft
<7> Besides, COD2 has helped me cut down smoking.
<7> whereas, BF2 made me smoke more.
<3> sounds like bf2 is as good as ***
<3> jb can only guess
<7> No, but it's level-loading gives me ample time to smoke, drink, go to the store.
<3> haha
<3> yeah
<7> COD2 loads levels in like, well, 10 seconds.
<3> though i think the time has been slightly reduced with the last patch
<8> BF2 is brilliant in terms of the new gaming genre it introduces. Someone tried to do it with another game called Veitnam: Airborne Cavalry something, but it was very lousy.
<7> Agreed.
<7> BF2 is good.
<7> BUT
<7> they **** at coding. (DICE, not EA)
<9> I'm a real tyro at programming. However, I've taken a bold step in learning C++ as my first language, besides my mother tongue and a few other spoken languages :0). I'm using Dev-C++ as my compiler. I wish to know the steps to include a custom-made header file into a .cpp file. Can someone help me please?
<7> and they **** at making more interesting combat scenarios
<7> "Capture All The Flags" gets old quick.
<0> krg2006, create the .h file (it's just a plain text) and put it in the same directory (or a subidreoctory) from your code
<0> then #include "file.h"
<9> Is that all? Do I have to add any directories in the compiler options in Dev-C++ or something?
<10> krg2006, why don't you directly use g++ ?
<9> what is that?
<0> krg2006, nope, that is all
<10> krg2006, the compiler
<9> thanks cn28!
<0> if you pout the header somewhere else you would need to modify the compile line
<0> but if you put it in the same directory as your .cpp no need
<11> Dev-C++ :/
<12> gcc
<10> threat, what do you mean ?
<11> while your at it just get cygwin
<11> not just g++
<11> gribouille, I am not a Dev-C++ fan.
<9> one more question: Isn't a .h file supposed to have a .cpp file which includes the definitions for the functions declared in the respective .h file? Please excuse my faulty terminology, like I said I'm a real beginner
<10> krg2006, not necessarily
<10> krg2006, a library can consist solely in header files
<9> ohh
<10> krg2006, a header file can contian definitions



<11> gribouille, though not recommended, unless it's a template library
<10> threat, sure
<11> gribouille, oops I ment krg2006 :)
<11> gribouille, I am sure you already know that
<10> threat, good guess
<11> :P
<9> ok
<9> Here's one excerpt from 'Thinking in C++' by Bruce Eckel
<9> What follows is an example that demonstrates the use of all the operators involving bits. First, heres a general-purpose function that prints a byte in binary format, created separately so that it may be easily reused. The header file declares the function:
<9> //: C03:printBinary.h
<9> // Display a byte in binary
<9> void printBinary(const unsigned char val);
<9> ///:~
<9> Heres the implementation of the function:
<9> //: C03:printBinary.cpp {O}
<9> #include <iostream>
<9> void printBinary(const unsigned char val) {
<9> for(int i = 7; i >= 0; i--)
<9> if(val & (1 << i))
<9> std::cout << "1";
<11> haha
<11> so very n00bed
<10> rdragon, why ?
<5> don't flood the channel
<5> use the paste site
<13> no flod
<11> krg2006, wb :) use pastebin or such
<9> what happened? why was I booted from the channel?
<11> krg2006, of the one listed in the topic
<10> krg2006, what are you trying to demonstrate ?
<5> krg2006 - because you flooded the channel. use a paste site next time
<9> what is a paste site?
<5> a site where you can paste stuff, so that it doesn't flood the channel ;)
<11> krg2006, its where you can copy and paste your code into, then you just paste the URL to it here instead of your code
<5> like http://www.noidea128.org/
<9> ok, thanks
<9> i think i'll just forget it
<5> or you can be lazy and forget it
<9> no, i mean i don't want to be a bother!
<5> just paste your code, and ask your question
<9> How is a command-line compiler for instance Borland C++ different from an IDE GUI compiler like Dev-C++? Can I, as a beginner, use Dev-C++?
<14> the IDE has nothing to do with the compiler, it's just an interface to make it easier for you to build your apps
<9> what is a command-line compiler anyway?
<9> why is it called command-line?
<10> krg2006, a compiler you call from the command line
<5> because you can run it from the command line, heh
<5> I don't know of any compilers that aren't command-line compilers
<9> is Dev-C++ a comman-line compiler as well?
<5> no
<5> dev-c++ is an IDE
<5> and it uses the mingw compiler
<9> oh
<10> krg2006, to learn C++, you don't need an IDE
<9> what do you suggest gribouille?
<15> A good IDE is a good thing for a beginner ( at least, it was for me )
<15> On windows, get visual c++
<10> krg2006, just call the compiler from the command-line
<9> that's the scariest part. How do I do that gribouille?
<5> just get VC++ 2005 express
<10> krg2006, if your program is test.cc, just write "g++ test.cc -o test" on the command line
<10> that's not very hard
<16> Just a common question. In wich language is Windows coded in? I think ***embly from basics, and C++ as kernel?
<0> probably mostly C and C++
<5> Pjott my guess is almost exclusively C and C++
<5> and ***embly for the parts that must be in ***embly
<15> It's in C with some ***embly
<9> k, thanks griboulle
<15> c++ was bad at that time
<10> krg2006, you're welcome
<5> so? look at mfc
<15> mfc is a win32 wrapper
<5> didn't stop anyone from coding in it
<5> it's written in C++
<5> albeit horribly C++, but c++ nonetheless


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#linux
WHERE DID IAN BOTHAM SCORE HIS 149 NOT OUT TEST SNATCHING INNINGS IN 1981
jax dicer
#gentoo
#linux
#windows
what is nah
#linuxhelp
#linux
#javascript



Home  |  disclaimer  |  contact  |  submit quotes