15,300 Posted Topics

Member Avatar for bis student

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& …

Member Avatar for twomers
0
128
Member Avatar for Ancient Dragon

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 …

Member Avatar for DimaYasny
0
209
Member Avatar for Ancient Dragon

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]

Member Avatar for Ancient Dragon
0
43
Member Avatar for sweetangel_aiza

>>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.

Member Avatar for Ancient Dragon
0
125
Member Avatar for oilujtigre

moved because this is not a c++ question. To answer your question, download ITunes free from Apple.

Member Avatar for uniquestar
0
46
Member Avatar for eranga262154

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.

Member Avatar for eranga262154
0
174
Member Avatar for tootypegs

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]

Member Avatar for Ancient Dragon
0
93
Member Avatar for sadaka

>>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 …

Member Avatar for sadaka
0
101
Member Avatar for sivaslieko++

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?

Member Avatar for dubeyprateek
0
204
Member Avatar for brainchief

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 …

Member Avatar for MidiMagic
0
723
Member Avatar for crunchie

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.

Member Avatar for MidiMagic
0
189
Member Avatar for todd.sifleet

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] …

Member Avatar for Ancient Dragon
0
207
Member Avatar for The Dude

[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 ?

Member Avatar for goldeagle2005
0
180
Member Avatar for morrison

Do you mean you are using an html editor to write the csv file? Then why is this question in the C board?

Member Avatar for sneekula
0
141
Member Avatar for xeption12
Member Avatar for xeption12
0
152
Member Avatar for ndeniche

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 …

Member Avatar for Serunson
0
156
Member Avatar for tmbejoy

Sorry, but its a violation of DaniWeb rules for people to post their email address here.

Member Avatar for Dani
0
83
Member Avatar for HeidiGiller

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 $$$.

Member Avatar for Comodore
0
144
Member Avatar for The Dude

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 …

Member Avatar for zandiago
0
119
Member Avatar for sneekula

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 …

Member Avatar for Serunson
0
153
Member Avatar for Reham Ejaz

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.

Member Avatar for happyandyk
0
154
Member Avatar for Jishnu

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.

Member Avatar for Jishnu
0
274
Member Avatar for wijitha

One way to do it is by using standard C function printf() [code] int n = 123; printf("%X", n); [/code]

Member Avatar for Jishnu
0
120
Member Avatar for jimmy.rocks1

[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]

Member Avatar for jimmy.rocks1
0
84
Member Avatar for pdwivedi

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.

Member Avatar for Ancient Dragon
0
184
Member Avatar for Dani

[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 …

Member Avatar for Dani
0
405
Member Avatar for polebear88
Member Avatar for Ancient Dragon
0
33
Member Avatar for pavitragupta

[URL="http://www.programmersheaven.com/download/47588/Download.aspx"]Here[/URL]

Member Avatar for Salem
0
422
Member Avatar for bobei89
Member Avatar for The Dude
Member Avatar for The Dude
0
100
Member Avatar for az1983us

how about [icode]fstream file_op("c:\\test\\output.txt",ios::in);[/icode]

Member Avatar for Ancient Dragon
0
70
Member Avatar for Don Gino

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 …

Member Avatar for goldeagle2005
0
142
Member Avatar for kellyyouse

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 …

Member Avatar for goldeagle2005
0
148
Member Avatar for sara_84

>>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.

Member Avatar for hkdani
0
184
Member Avatar for tootypegs

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]

Member Avatar for Ancient Dragon
0
120
Member Avatar for maori

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.

Member Avatar for Ancient Dragon
0
154
Member Avatar for zeroground

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]

Member Avatar for invisal
0
182
Member Avatar for abu moh

unknown file type -- my computer doesn't know what to do with *.com files.

Member Avatar for Ancient Dragon
0
68
Member Avatar for drkprgrmer

>> 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.

Member Avatar for drkprgrmer
0
102
Member Avatar for prasath

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 …

Member Avatar for dubeyprateek
0
3K
Member Avatar for TNT Tech

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. :)

Member Avatar for jasimp
0
18
Member Avatar for TheBeast32

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.

Member Avatar for iamthwee
0
190
Member Avatar for phalaris_trip

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) { …

Member Avatar for Ancient Dragon
0
83
Member Avatar for Quakes

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.

Member Avatar for Quakes
0
131
Member Avatar for jimmy.rocks1

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]

Member Avatar for Ancient Dragon
0
87
Member Avatar for sneekula

Lets put it this way -- when I put on a Santa suit I don't need any padding :)

Member Avatar for twomers
0
272
Member Avatar for wijitha

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.

Member Avatar for Ancient Dragon
0
906
Member Avatar for scru
Member Avatar for The Dude

:) :) :) And here I thought I was going to have to give you an infraction for posting pronography :) :)

Member Avatar for sneekula
0
96
Member Avatar for Ene Uran

my favorite is Narue's -- probably fits her personality very well :)

Member Avatar for sneekula
1
262

The End.