15,300 Posted Topics
Re: value pass a copy of the object so what the function changes does not change the original copy. reference pass a pointer (reference) of the object so that what the function changes DOES change the original copy. void foo(int x) { // x was passed by value } void foo1(int& … | |
Trying to delete d:\windows\gzip32.exe (my vista installation) but can't, nor can I rename it. If I copy it I can't delete the copies either no matter where I put them. I now have three other copies that I can't delete. Anyone know a solution to this: Things I have tried … | |
See the words in the grey square large font right half of the screen. What is that supposed to be ? [b]Anti Copyright France <snip> [/b] | |
Re: >>can anyone give me the source code?! Yes. But you have to show your effort first. Post what you have done to solve those problems. | |
Re: moved because this is not a c++ question. To answer your question, download ITunes free from Apple. | |
Re: call RegEnumKey() to iterate through all the timezone keys. The [b]Display[/b] name contains the timezone offset from GMT. You need to create a string in similar format so that it can be compared to what's in the registry. | |
Re: read 32 bytes at a time until end-of-file [code] char iobuf[32]; ifstream in("filename"); while( in.read(iobuf,sizeof(iobuf)) { // write it out } [/code] | |
Re: >>no matching symbolic information found." I couldn't find the cause of this problem. You are uisng the release version of those DLLs which do no contain debug information. That's just a warning saying you can not step into any of the functions that's in those DLLs. Otherwise you should be … | |
Re: how is [b]RemoveQ[/b] declared? Does it actually return a Flight object or a pointer to one? Post the Flight structure. and what do you mean by "it doesn't work"? It doesn't compile? what are compile errors? | |
Re: I always wanted to visit Austrilia because when I was young there was a weekly TV show about the huge wildlife preserves with kangaroos, elephants and other exhotic animals that we can only see here in zoos. The second place is Holland in the springtime when the tulips are in … | |
Re: I saw the problem a couple times when this thread was first started but not since then. IE7 on Vista Home if anyone really cares. | |
Re: The command-line arguments in WinMain programs are passed in the [b]lpCmdLine[/b] argumenmt. Parse it just as you would any other white-space separated string [code] #include <string> #include <iostream> #include <sstream> #include <vector> ... ... vector<string> parameters; if(lpCmdLine != NULL) { string word; stringstream str(lpCmdLine); while(str >> word) parameters.push_back(word); } [/code] … | |
Re: [QUOTE=hbk619;384934]how did he get stuck facing foward if he was crossing the road?[/QUOTE] maybe he (the man in the wheelchair) should have gotten a DWI ? | |
Re: Do you mean you are using an html editor to write the csv file? Then why is this question in the C board? | |
Re: [URL="http://www.microsoft.com/express/vc/Default.aspx"]VC++ 2008 Express[/URL] | |
Re: If someone doesn't know the meaning of a term such as "DHCP" then just use google to look it up. Of course that implies the person knows enough about computers to use google. I didn't know what DHCP was either until just a few minutes ago when I googled for … | |
Re: Sorry, but its a violation of DaniWeb rules for people to post their email address here. | |
Re: I use free [URL="http://www.avast.com/index.html"]avast[/URL] on Vista Home Premium and seems to work as well or maybe even better than some programs that cost $$$. | |
Re: Many films contain sex scenes just to get the R rating and those scenes do nothing to enhance the movie. And as for the hack-and-slash movies -- they are sooo boring. I thought the first Freddy Krueger movie was funny but they got boring after awhile. And I hate the … | |
Re: The most offensive TV ads are about [URL="http://en.wikipedia.org/wiki/Erectile_dysfunction"]ED[/URL]. I don't know what happened but just a few years ago those ads would not have been allowed on TV. Then there are the ads that leave me wondering what it was they were advertising. I watched the entire ad and never … | |
Re: And you probably won't either except maybe some very high-level explainations that don't go into much detail. Microsoft isn't in the business of giving away its company secrets. If you want to know how to use the operating system then there is lots of information about that. | |
Re: I've seen that several times before -- very interesting how we can read words whose letters are mixed up as long as the first and last letter are correct. | |
Re: One way to do it is by using standard C function printf() [code] int n = 123; printf("%X", n); [/code] | |
Re: [URL="http://www.amazon.com/s/ref=nb_ss_b/103-0766854-9412613?url=search-alias%3Dstripbooks&field-keywords=multithreading+in+C&x=15&y=20"]books[/URL] | |
Re: You don't really have to redirect it to the keyboard port but instead stuff the keys in the keyboard buffer. How to do that depends on the operating system. | |
Re: [QUOTE=fennimore;322665]I visited conqueryourniche.com the other day, and they have this great idea to make people want to post! It works like this: everytime you post, you get points. For every five points or so, they'll display your ad for free! But there're too many members there that the only chance … | |
Re: Sorry, but it is illegal for someone to give you their key. | |
Re: [URL="http://www.programmersheaven.com/download/47588/Download.aspx"]Here[/URL] | |
Re: line 39: remove the semicolon at the end | |
| |
Re: how about [icode]fstream file_op("c:\\test\\output.txt",ios::in);[/icode] | |
Re: If you don't want an icon on your desktop then just click once on it to highlit it then press the <Del> key or drag it to the trashbin. Of course, this is after Vista has been installed and ready to go. If you want to add one then use … | |
Re: I have the same problem on my self-made computer (Vista Home Premium edition). I don't know what's causing it either. So I've gotten into the habit of not using the restart option but a complete system shutdown then turn it back on after everything stops. That works ok for me … | |
Re: >>can any body help me to convert this code from C++ to C put $5,000.00 USD in my PayPal account and I'll do it. No guarentee that it'll work though. | |
Re: what operating system. how is the hdd formatted? You can't do that under MS-Windows without writing kenel-level code because the os won't let you. You might try one of [URL="http://search.microsoft.com/results.aspx?mkt=en-US&form=MSHOME&setlang=en-US&q=ioctl&x=7&y=10"]these ioctl functions[/URL] | |
Re: read the line into a std::string object then you can use its [b]find[/b] and [b]substr[/b] methods to chop off the part of the string you don't want. | |
Re: you have to put all that code in a [b]main()[/b] function [code] // includes go here int main() { // code goes here return 0; } [/code] | |
Re: unknown file type -- my computer doesn't know what to do with *.com files. | |
Re: >> it doesn't work What exactly does that mean ? And post your most recent code because the code you originally posted doesn't do anything at all. | |
Re: The in MS-Windows the default heap is not static -- the os will expand it as needed. But since malloc() takes an size_t integer as the parameter the largest amount of memory malloc can allocate at one time is the largest value that can be stored in the size_t integer … | |
Re: Welcome to DaniWeb. Hope to see you around alot in the Tech Talk boards because we need experts like you to teach dummies like me about hardware problems. :) | |
Re: Its nice that you used code tags but you really should have formatted that code better before posting it. No one but a big masochist is going to read through all that stuff. ![]() | |
Re: pop_front is wrong. First you make a copy of head then delete it. When you delete head that also invalidates the copy tempNode. What you want to do is set head then delete tempNode What are you going to use that parameter for ? [code] void pop_front(const T& t) { … | |
Re: In Face::addPoint() you should verify that [b]location[/b] < the allocation size of [b]numberOfPoints[/b]. Actually, you don't need data.cpp at all. Just use inline code in the header files. Can't really help you much more without example data file to work with. | |
Re: what does multithreading have to do with broadcasting packets on a network ? I assume you want to use [URL="http://www.cs.rpi.edu/courses/sysprog/sockets/sock.html"]sockets[/URL] | |
Re: Lets put it this way -- when I put on a Santa suit I don't need any padding :) | |
Re: see the functions in time.h -- such as time(0) will return the current time in seconds since 1970 (or something like that). Then localtime() will convert it to a structure [b]tm[/b]. There is also a gmtime() that converts the time(0) to GMT instead of local time. | |
Re: :) :) :) And here I thought I was going to have to give you an infraction for posting pronography :) :) | |
Re: my favorite is Narue's -- probably fits her personality very well :) |
The End.