| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Comments:
<0> test.cpp:33: error: no matching function for call to `test(float[5])' <1> But really, you don't want to do that. <1> void test(float* p, size_t elements) { for (int i = 0; i < elements; ++i) { p[i] += 1; } } <1> Compare to... <0> ah, you mean i would have to write ugly things like test<5>(p); ? <1> void test(std::vector<float>& v) { for (std::vector<float>::iterator i = v.begin(); i != v.end(); ++i) {*i += 1; } } <2> it would copy your whole array every time. <1> If you're using static arrays, use the first example I typed. <1> If they're dynamically allocated arrays, use vector instead and the second example. <0> thx <0> what i wanted to do works well now :) <1> Tell your boss to hire me, Victor. <1> Unless I have to move to Wyoming. In that case, never mind. <3> void test{transform(v.begin(), v.end(), v.begin(), bind2nd(plus<float>(), 1.0));} might be slightly better <1> Indeed. <4> Solamente: you up for telecommuting?
<3> Solamente, unfortunately, the stuff we'd need you for wouldn't work well w/ telecommuting <2> no *** please <5> holding hands is not allowed <2> I didn't know Solamente could gives m***ages. <1> I'm having a hard time imagining a development project that isn't suitable for telecommuting, anymore. <1> I only go to the office to allow people to stop by my cube and ask me inane questions. <2> Can't they use irc for that? <5> dont need a cube for that <1> I stay here when I want to get real work done. <1> Run, these people apparently don't get e-mail, IRC, instant messenger, or telephones. <5> turn off the mobile and off you go <1> I don't mind talking to people and answering questions, but it's pretty much all I do when I do have to go to the office. <2> I'm definitely not happy with how graphviz displays things... it's way more messy than necessary imho, <3> Solamente, agreed, the problem is that it's not all development... we have some serious design / architecture decisions <1> vawjr, I do like being in a room for that stuff. <1> But even now, most of the design meetings I have to do are with customers in remote locations. <1> So it depends on whom you're collaborating with and the nature of the collaboration, I guess. <1> And four of the other members of my current team are located in Ohio or elsewhere, so even in-group design discussions are teleconferences. <3> you have video also? <5> webcams are cheap <1> Not for the lowly peons, no. <6> Run? <1> I'd like for us to use some collaboration software, but I'm the only one savvy enough to even screw around with it. <1> That's annoying. <3> which have you been looking at? <1> Nothing recently (because nobody else is interested), but even NetMeeting would be better than nothing, and it's no great shakes. <5> skype <1> I can't even get them to use a Wiki. <5> stone age programmers there? <3> well, I can't even convince them to move away from VSS <1> Ancient Unix C coders, so yes. <3> gotta run <7> Off to office <1> later <8> hello <9> hello <8> i'm from argentina <8> and you?? <8> i'm new user c++ :-) <10> Apple7 : buy a good book, and read it carefully <8> have questions about c++ <11> I recommend the books at http://rudbek.com/books.html <8> exception OK <8> GOOD:-) <11> ask away <9> Im from the us <9> Need somehting? <8> sorry by my inghish <12> damn... I have to go to my bank and yell... my debit card isn't working. Too bad I don't have a cellphone, then I could go and wait for the phone call I'm waiting for... shoot <13> aww crap... just found out my uncle was in a car accident. he's fine and all, but his new Prius is totaled <11> rdragon was he thinking of getting that 3rd party enhancement to it? <13> don't know <8> BeOS is good system <14> back <15> how do i fork in dev c++??? <5> using the c++ spoon <15> huh? <15> is it possible in windows??? <11> dev c++ is an IDE w/ the g++ compiler <11> fork is an OS thing <16> It's CreateProcess (IIRC) and it doesn't work as fork works in unix-like systems.
<17> fork() is POSIX, you won't get that on Windows unless you use cygwin <5> one doesnt fork in windows <5> you can use CreateProcess which is about the neaqrest <15> owww... ok.. thanks a bunch <17> djgpp included fork() for the purpose of making it easier to port programs (it just always returned failure) so it's possible it might exist in mingw for a similar purpose <1> mongerz: Are you literally trying to fork a process, or are you just after having another thread of execution? <15> oh and one more thing. All the samples i've seen demonstrate only a couple of processes concurrently running. i need 3 processes.. just a process Solamente.. <5> you want to hve 3 processes running? <1> You'll need the Win32 SDK (MinGW provides bare-bones linkage), and the API is CreateProcess, as previously mentioned. <15> How do i make it that only 3 processes wud run. one for addition, one for multiplication, one for subtraction..? <5> and how will these processes communicate w/ each other? <1> Whoa... what? <9> hy? <9> why? <5> i think you need threads <9> just curious <1> Indeed. <15> no need to communicate. i'll just have to show the d processes are running concurrently. <11> this is a project for school, right? <1> mongerz: On Unix systems, processes are lightweight so forking a new process isn't a big deal. <15> it's for our ***ignment. our teacher wants us to use fork. <9> yea thats what i figure <1> On Windows systems, however, it's not smart. <1> Win32 processes are heavy and you *never* want to create one unless it's going to do significant work. <1> I don't care what you prof wants, either. <15> yeah.. i'll try it later on linux. am runnin windows ryt now. just checked to see if it's possible.. <17> mongerz, if your teacher wants you to use fork(), the target platform is most likely going to be a Unix, and so developing it on with the Windows SDK doesn't make any sense. You'll need a Unix system to test it on. <15> it's supposed to be done on linux actually. i was just curious for windows. <1> If you install Microsoft Services for Unix or cygwin, they provide fork() and a Unix-like environment. <11> mongerz what cl*** is this for? <15> ohhh.. i see.. "Intro to OS". <15> we're using linux actually. was just curious. <15> anyways, how 'bout 3 processes??? <11> how about them? <1> fork, fork, fork <11> if you "must use fork" use *nix <5> sppon spoon spoon <1> bork bork bork <15> shoud i call fork twice??? or a nested if? <1> www.google.com/search?q=man%20fork <10> mongerz : be very very carefull with fork in a loop, it's an easy way to use all of the system processes <15> i will. i don't think i have to use it in a loop though.. i know how to make 2 processes.. the thing is i have to add another which does another job.. <18> alright.... http://pastebin.com/548545 <15> i need 3 processes doing different jobs. <11> methody it's NOT iostream.h <18> eek, okay well there's one thing ill change rightaway <10> mongerz : so have one parent, that forks twice. be sure to check that only the parent forks the second time <11> methody lines 15 and 17 don't return anything, cant tell about 16 <15> yeah! that's it. how do i fork it twice? <11> methody your indenttion and grouping {} ****s a casual glance would convince you that line 86 will never execute <18> vawjrwrk, well it's supposed to just put what it gets from the main into the arrays <18> oh yeah.. <11> line 28: what is a <11> have you even tried to compile this yet? <10> mongerz : you call fork(), check the returned value. if you're child - do first child's job. <18> vawjrwrk, do you really want to know what a compiler would say to it? <10> if you're parent - fork() again, and check the value. if you're child - do second child's job, otherwise do the parent's job <11> no, I'm wondering why YOU don't apparently know what a compiler will say about it <19> does anyone know how can i put a timer in c++? <14> bye all <15> ok am gonna try it. i'l reboot to linux. thanks a lot. <18> well here are the first couple of errors... (there's only eight but there'd probably be more if i made those work) <18> U:\cplusplus\cprogram\adsfa.cpp(16) : error C2059: syntax error : '&' <18> U:\cplusplus\cprogram\adsfa.cpp(17) : error C2059: syntax error : '&' <18> U:\cplusplus\cprogram\adsfa.cpp(17) : error C2535: 'int __thiscall database::time(void)' : member function already defined or declared <18> U:\cplusplus\cprogram\adsfa.cpp(16) : see declaration of 'time' <11> methody it's YOUR program, fix it <19> heeeeeeeeellllllllllo <18> do you think i'd p*** like that vawjrkwrk :P <18> it'd* <20> post the program on pastebin. Errors arent any good to us <11> methody hell no, it won't compile <18> it has to get some mark.. i mean it's go SOME similarities to a c program right..?
Return to
#c++ or Go to some related
logs:
#teens change option of select in javacript #linuxhelp #skype #chatzone oral sex in Germany have a radio button checked by deafult undernet Dr|shadow picture ayuda What was the name of TV's Channel Islands detective There doesn´t seem to be GNU Make file in PATH or in Dev-C++´s Bin path
|
|