@# 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 12



Comments:

<0> Hmm... I've got two computers downloading Firefox 1.5.0.1
<0> http://www.mozilla.com/firefox/releases/1.5.0.1.html
<0> Fixes some leaks, apparently. About time.
<1> I got a function called: void scan (const string& filename); in a cl*** declaration (C++)
<1> and another function: void scan (matsparse *m, char *filename, int binary); (C code)
<1> will they be mixed together if I call the C-file scan() inside void scan (const string& filename) { } ?
<1> or does C++ differentiate
<1> because right I am getting a couple of errors because of that
<1> and I am including the C-file inside the C++ file of course
<1> both *.cpp and *.h
<2> use ::scan for the C function
<2> when you call it
<1> ok
<1> does the :: operator have any name?
<1> so that I can read more about it
<3> "if you're seeing something like oral *** in pornography, it looks like the easiest thing in the world, when in fact there are all sort of issues with the way the camera is low and the light is to the side. And it's extremely difficult to actually pull this off."



<3> nice
<1> that perfectly answers my question
<0> scope resolution operator
<1> oki
<1> switching to O'Reilly C++ pocket reference
<0> Why haven't you bought "Accelerated C++" yet?
<1> because I am too slow
<1> ok, using ::scan for the C function invokes the global function
<1> what would an error like this mean: http://rafb.net/paste/results/TsqR9K46.html ?
<1> I have #include all over
<1> those mentioned functions are there
<4> hehe
<4> \// Project : peepal
<4> found that comment in one of our source files.
<2> I can load the function, execute it. but afte the function that loaded the dll-function ended, the entire app shuts off :
<2> :(
<1> a very general question
<1> if I compile couple of *.c files which yields *.o files
<1> and I include the header files containing the C codes inside C++ src files
<1> will the compiler check for the the #include filenames in the *.o files ?
<1> or will it try to compile the *.c once more time....
<0> You really, really need a book.
<0> Include files have nothing to do with .o files.
<0> Compilation and linkage are two different processes.
<1> can you try to answer why this happens: http://rafb.net/paste/results/pbOYmP23.txt
<1> those are functions in C files
<1> and they are being included in the C++ code
<1> and I am using g++ -Wall -o foo.app *.cpp
<1> still can't understand why they can't be found
<0> Because you don't understand linkage
<1> because of main()
<1> ?
<0> Where in your compile line up there do you tell the linker where to find the .o files produced from the compilation of the C modules?
<1> nowhere
<0> Bingo
<1> simply including the C headers won't do it?
<1> hm
<0> I'm getting really tired of teaching C and C++ in here. Go get a book.
<1> ok, I will
<0> *Basic* C and C++.
<5> ffs get a book
<0> Hell, read the documentation for your compiler.
<1> g++ -Wall -o ${output} *.cpp ${c_code}/*.o -lm <-- satisfied :) ?
<1> it worked
<6> you're building a makefile?
<7> I am trying compile a c++ project in windows, and i do not have VS, are there alternative compilers i can use for this ?
<0> Bob77: Visual Studio 2005 Express is available for free
<6> for free stuff --- http://www.thefreecountry.com/compilers/cpp.shtml
<0> http://lab.msdn.microsoft.com/express/visualc/default.aspx
<7> no ide
<0> Alternatively, there's MinGW
<6> you can get express from that link...well links to it anyway
<0> Yes, there's an IDE
<0> Go look.
<7> i am in school and i cannot really install any software, i need something command line
<0> ffs
<6> and there's dev-cpp
<6> what the **** are you babbling about?
<6> cannot "install" any software
<0> What I just gave you will work, and there's also http://www.mingw.org/
<6> what do you think you do with ANY compiler



<0> You have to *install* either one.
<7> i meant i cannot install large software that uses registry and so on
<7> relax
<7> does minGW offer stl libs?
<0> You mean the standard C++ library?
<0> Yes, otherwise we would not recommend it.
<7> standard template library
<5> a computer lab that doesnt allow installing compilers?
<6> it doesn't exist any longer
<0> The STL is only a part of the standard C++ library
<8> the stl is just a misnomer.
<7> well can i use <sstream> and so on
<0> Heh... sstream was never part of STL.
<0> But anyway, the standard library is in there.
<7> i never mentioned that you were stupid
<7> :)
<8> I think mingw or msys don't write to registry.
<6> why the **** do you think we'd recommend somehting that is NOT STANDARD?
<7> look
<7> i downloaded some stupid lcc compiler
<0> Easy, vawjr
<7> and it does not have <sstream>
<6> what is sstream ?
<7> so before i waste time, i want to make sure i will have everything ready
<7> string stream
<0> Bob77, both of the compilers recommended provide a standard C++ library implementation.
<0> Go get one.
<7> ok
<7> thanks
<0> We don't recommend compilers that aren't standard.
<7> i am just not too good at setting them up
<9> vawjrwrk, you don't know what sstream is ?
<7> but i will check em out
<0> Time to learn
<7> thanks again
<7> and vawjr, chill guy
<7> no offense meant
<6> gribouille I do, I was misreading Solamente's comment, thought I'd misrememberd the name
<6> no offense taken
<7> peace :)
<8> I'd kill for peace
<7> i'd **** for virginity
<7> by the way gcc is c++ or c compiler ?
<7> because there is also gcc-g++
<0> g++ is the C++ compiler.
<8> there is one package (mingw*.exe) which has what you need for compiling c++ code.
<6> gcc SHOULD pick the correct compiler and options, but it ****s up if the file is .cpp
<8> and there is msys*.exe which has the commandline stuff which has the environment settings for the mingw installation.
<8> these two are installers. I don't think they access registry.
<7> perfect
<8> msys will ask where you installed mingw.
<7> how do i allocate an array of 24 chars in c++, using new instead of malloc() ?
<8> first, you open your book which has a section on freestore
<8> there you read about new and see some examples
<6> Bob77 use std::string instead
<6> or std::vector
<7> thing is, i need to store filenames in std::map and i need to be able to access them case-insensitively and also to be able to access them with or without extensions
<7> std::vector and std::string are not very good for that
<6> char array is worse
<6> and attempting to produce a std::map with a case insensitive compare will be interesting
<10> with or without extensions -- why is that?
<10> just lowercasing it would work better
<6> melfar generally, yes
<7> i have a list of sounds that i cache into memmory and i want to say Sound.play("rain") or Sound.play("rain.wav")
<8> I wish I had tasks like that.
<7> what kind of tasks do you get ?
<6> what's the "meaning" of Sound.play("rain"); ?
<10> maybe you don't really need the extension here? all you need is the unique name here I suppose
<8> "design an algorithm which does <weird thing> in log N complexity"
<6> cynic_X_ ah, real programming
<8> =(


Name:

Comments:

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






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

#c++
my.ini ansi mysql
Couldn't find package azureus
lasat problems skype
#skype
protect against ddos centos
e2fstune
multiple-processor specification
avl operator+
hung balls



Home  |  disclaimer  |  contact  |  submit quotes