| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13
Comments:
<0> nope <1> whats is for? <1> sorry for my eng <2> char **p; <-- pointer to pointer to char <0> well I don't actually know, but that looks like bad c++ language <0> oh ok, my badd <2> double pointers are actually very useful <1> cn28h thanks <2> np <1> so thats mean that <1> if i have char *t; <1> i can use p to point to t? <2> yes <2> p = &t; <1> nice <1> and thanks again
<2> np <0> can you help me now? <2> help you what? <0> masterbate, I need a hand here <0> c++ code <0> MFC crap <2> MFC isn't part of C++, and really I know nothing of it, sorry <0> ok, so b it <2> I'm mainly a *nix programmer <0> cool <0> I want to get into linux <0> debian <2> I run Slackware, here <0> that's supposed to be the best <0> I'll work my way up to it though <2> what's supposed to be the best? <3> emacs <2> (I actually did try MFC once about, oh, 5-6 years go, but I found it harder to use than straight Win API) <2> emacs is nice <4> cn28h "when?" are double pointers useful? <0> cool, yeah I did a little of that Win API <0> should I start nix with debian? <2> when you need to modify a pointer in a function? perhaps you are interfacing with C code -- or if you need to build a dynamic 2d array (I know this can be done with STL) <4> I meant in C++ <2> sure, it works fine in C++ <4> change a pointer in a function? reference to pointer <2> either way, reference is just syntactic sugar for a pointer anyway <2> pfloyd345, never used Deb, but it's supposed to be good <4> cn28h somebody has taught you wrong <2> how so? <3> When you have a crappy UML generator that models one-to-many aggregates as pointers to pointers <3> (in C++) <4> try overloading say operator + withOUT using your "syntactic sugar" <2> I didn't think you could overload operators on primitive types <2> wouldn't really make sense <4> cn28h what's that have to do with what I asked? <0> well, just wondering, my program is moving certain things with the movement of the scrollbar, but it's not removing the old ones, ne1 know why? <2> pointers are primitive types, no? <0> brb somking <4> cn28h yeah, what about it? <2> so you can't overload an operator for them <2> you just overload it for the type it points to <4> I said try overloading operator + (for ANY type) without using references <2> and dereference <2> oh <4> oh <4> try writing a copy constructor or and ***ignment operator without them <2> but this is a different context <2> from modifying in a function <4> I was just challanging your statement that ** is useful and suggested that *& is "more useful" and you decided to ***ert that reference is "just synctactic sugar" <2> well I'm not trying to say they're useless, but I don't see why you would say that ** isn't a valid way to go in C++ <2> some functinos use them even, like std::strtol <4> lol, yeah, picked up from the C library <2> ;) <0> well, just wondering, my program is moving certain things with the movement of the scrollbar, but it's not removing the old ones, ne1 know why? <- mfc <4> and YOU don't need to use them to use strtol, strtol does <2> well, what if you want to use one of the execv*() functions? not C++, but a POSIX function <4> and strtol is written in C <2> no c-bot :/
<2> it lets you run another process <2> and it takes a vector of arguments <2> for argv <5> I'd wrap the function in whatever it would take for me not to have to worry about a pointer. <5> And the optimizer would reduce it to whatever I'd have had if I'd created appropriate C code with necessary error checking. <2> well, you'd have to worry about them in the wrapper :) <5> Once. <5> Anytime I have to interface with C code, that's usually what I do. <5> And that's what you're describing: A C interface. <5> As in, not C++, so no references or std::vector or whatnot. <2> well, it is a C interface, but C++ was built to be able to interface with C, and most C even is valid C++ <5> Yes. And C++ provides better ways to abstract away the inherent nastiness of C. <5> Which I use every chance I get. <2> heheh, well I won't disagree -- C++ does make things a lot easier <6> CrazyBandit CrEw OwnEz mE! <7> ... <2> haven't seen that in a while <4> that's the 2nd one I've seen in a week <2> I actually have to write some secure C string handling functions right now for one of my cl***es, it's going to be a challenge <4> cn28h point out to your prof it would just be simpler to use C++ (it's a better language anyway) <2> well, he said it's a good example why we should investigate using other languages when possible <4> or just grab the src directory for MS's new "secure" C library <2> I like C, simple and powerful, but it's true that it's hard to cover all the boundary conditions <2> well, I develop on Solaris mostly :) <2> but I am trying to get back into Windows dev a little <4> they _had_ a C++ compiler <2> they do <2> CC <4> it had a few gotchas when I was using it 5 years ago <4> I think we were using Forte <2> do you play with .NET at all? <4> which had a very nice featur in it's debugger... yuou could load a "core" file and it would put you right at the place in the program where it blew up <4> not yet <2> ah, like gdb? <2> ok, I'd like to use .NET if I can make portable GUIs with it, but I'm not sure i tha'ts possible or not <4> dunno, the last gdb I used was "console only" <2> I know there is gtk# and Qt# but I don't know if those only work on Mono or if they work on MS .NET Framework too <4> mono works on *nix, I'm told <2> yeah, gdb is console only <4> Qt certainly had some very nice controls... I liked the "radio dial" with inertia..you pushed it and it coasted to a stop <5> I haven't played with Mono's implementation of Windows Forms in a while, but when I did it was already binary portable. <5> As is anything else, really. <2> hm, cool <5> So a GTK# program will run anywhere that has GTK# ***emblies for the platform, just like Swing. <2> so I can use Windows forms on *nix Mono? <5> Except better, of course. <2> ah <2> yeah, I never cared for Swing <2> AWT isn't a treat, either :) <2> they're not bad, but they don't look like natie GUI programs <2> native <0> u guys can't talk MFC in here? <8> What do you need, pfloyd? <0> I need to get these extra text's off my screen <0> I have a program that will draw text with the scrolling of the mouse <0> it does move with the mouse but when I scroll to the left again it still shows all the things, <0> all the other ones... <8> That's a bit tricky <0> yeah, I'm using the OnScroll member function <8> Nope, I don't remember how it's done offhand <8> If you check out some of the edit controls at codeguru.com, you should see stuff like that <0> it's ok, I'll find out sooner or later <0> ok, ty <8> I imagine the principle would be the same in any library <0> well, I actually moved the elements, but I guess I need to call an onupdate for when I scroll <0> do people from other countries have a harder time learning computer related subjects than people here in the US? <8> Indians don't seem to <8> Honestly, I don't know <8> I'd imagine there are fewer translated books available <0> I've seen some elite looking indian people who are programmers but it could all be appearance <9> pfloyd345: There is books and intelligent people outside US ;) <8> Haha <0> I know foo, but how is the translation and the ability to write code? <0> lol
Return to
#c++ or Go to some related
logs:
#linux ''Roger Waters Dawnload'' #linuxhelp #skype #AllNiteCafe #linux grub hangs at LOADING STAGE 1.5 poweredge #chatzone WHAT IS THE FAMILY NAME IN THE H E BATES STORY A LITTLE OF WHAT YOU FANCY #c++
|
|