15,300 Posted Topics

Member Avatar for Narue

[QUOTE=nav33n;836377]I guess even this thread is acting the same way ? [url]http://www.daniweb.com/forums/post830784.html[/url] P.S. Works fine in IE6 and Chrome.[/QUOTE] That one looks ok to me using FF 3.08. I made my comment in SOS's post because I thought he did that intentionally. But apparently he didn't. [edit]Aaaaaaa! SOS's post is …

Member Avatar for WaltP
0
349
Member Avatar for EJM

I also have HP with 64- bit Vista, 6 gigs of ram, 4-quad, 720 gig HD. The only thing I did was to turn off User Account Control feature via User Accounts icon in the Control Panel. My login account has administrative rights. The only problem I have found is …

Member Avatar for Ancient Dragon
0
131
Member Avatar for xgmx

Or instead of uploading to another server you can just attach them to your post here. Click on "Go Advanced" button at the bottom of the screen, then "Manage Attachments" button. Note: you will probably have to zip up the *.html file before attaching.

Member Avatar for thoughtcoder
0
193
Member Avatar for nschessnerd

call [URL="http://msdn.microsoft.com/en-us/library/ms644946(VS.85).aspx"]PostThreadMessage()[/URL]

Member Avatar for seanhunt
0
1K
Member Avatar for Ancient Dragon

How do we get a complete list of member's names? I clicked [b]Site Search[/b], scrolled down to the botton and just clicked [b]Search[/b], but got something completely different. Some time ago there was an easy link to do this which included the name, number posts, rep points and maybe some …

Member Avatar for Ancient Dragon
0
86
Member Avatar for edb500

The only way to do what you want is to use virtual functions. Make PrintMyType() in the base class a pure virtual function that has to be implented in the derived class. Example: [code=cpluspus] class Base { private: virtual void PrintMyType() = 0; public: void PrintAllInfo() { cout << "This …

Member Avatar for edb500
0
285
Member Avatar for nschessnerd

I would send it a private message -- WM_USER+1 for example. But you will want to register the private message so that something else doesn't try to use the same number for another purpose.

Member Avatar for Nick Evan
0
450
Member Avatar for mmeyer49

What types of items do you want to be derivities of a base class? Such as books, movies, newspapers, broadway plays, etc. ? <list> is similar to normal linked lists. <vector> is like an array. Which to use depends on what you want to do with them. And both are …

Member Avatar for jencas
0
154
Member Avatar for danishamman

This smells like homework, but I'lll try to answer them anyway. >>Q.no.1: What is the difference between zero and null values? In c++, none. Most compilers define NULL as 0. Traditionally programmers use NULL for pointers and 0 for numeric objects, but some programmers such as Dr. Bjarne Stroustrup (father …

Member Avatar for siddhant3s
0
155
Member Avatar for queensrose

>>I'm a newbie, and I don't know how to convert long int to strings. Two methods: 1) In c++ use stringstream class [code] #include <sstream> #include <string> #include <iostream> using namespace std; int main() { int n = 12345678; std::string s; std::stringstream str; str << n; str >> s; // …

Member Avatar for Duoas
0
175
Member Avatar for daviddoria

>>Has anyone seen anything that does something like this? just add '\r' to the print statement [code] int counter; for(counter = 0; counter < 1000; counter++) { cout << "\rcounter"; Sleep(500); // 1/2 second delay } [/code]

Member Avatar for daviddoria
0
115
Member Avatar for rEhSi_123

just as well you got that error because NEVER EVERY UNDER NO CIRCUMSTANCES put executable code in a header file (inline functions are the only exception.) Take that function out of that *.h file and put it in a *.cpp file. Then compile the two *.cpp files separately and link …

Member Avatar for rEhSi_123
0
151
Member Avatar for amit_ciem

[URL="http://lmgtfy.com/?q=kmeans+clustering"]Did you try google?[/URL]

Member Avatar for Ancient Dragon
0
85
Member Avatar for FallenGenesis77

Its not possible to write to an executable file while it is executing -- the operating system will forbid it.

Member Avatar for MosaicFuneral
0
242
Member Avatar for prabhu_kar

We only close threads when it violates one or more of the DaniWeb rules. Its perfectly acceptable to post in old threads as long as the new posts are on-topic and contain relevant information.

Member Avatar for tux4life
1
145
Member Avatar for nature_love

Welcome to DaniWeb. >>what else?? Reading, Writing and Arithmatic. The three most important parts of your education. [quote][URL="http://languageinstinct.blogspot.com/2006/11/reading-writing-and-arithmetic.html"]Little in the last ten thousand years has altered our mental[/URL] lives as much as the creation of reading, writing and arithmetic. These developments sprang directly out of the first agrarian revolution, which …

Member Avatar for Ancient Dragon
0
75
Member Avatar for joozi

The while loop is wrong -- don't need eof() [code] int number; while( inFile >> number ) { // blabla } [/code]

Member Avatar for WaltP
0
103
Member Avatar for 0o0

[quote]basicly my point being i wrote the program but the gui doesn't take event in the middle of my loop or in other words i want it to run in the background so i can do my other stuff in meanwhile also[/quote] You need multiple threads to accomplish that. Create …

Member Avatar for 0o0
0
207
Member Avatar for sautap4u

[QUOTE=GDICommander;839497]See strtok(), a C library function. It may solve your problem. [url]http://www.cppreference.com/wiki/c/string/strtok[/url][/QUOTE] Nope -- will not help solve his problem at all.

Member Avatar for Ancient Dragon
0
270
Member Avatar for phouse512

>>but it closed after I input the random number. Because you programmed it to do that. As ^^^ said you have to put something before the return statement to make the program stop and wait for you to enter something from the keyboard.

Member Avatar for phouse512
0
105
Member Avatar for edb500

Make the function in MobileAccount a [b]pure virtual[/b] function so that it has to be implemented by derived classes [code] class MobileAccount { .... protected: void PrintAccountInfo() = 0; // <<< pure virtual function ... } [/code] Then MobileAccount class doesn't have to know who implemented the function. [code] void …

Member Avatar for ArkM
0
80
Member Avatar for MaestroRage

The general method of using multiple *.c files is to put the function prototypes in a header file, then include that header file in all the *.c files that need the functions. If you look at a couple standard C header file that are supplied by your compiler you will …

Member Avatar for Ancient Dragon
0
9K
Member Avatar for rahul8590

Many header files in the standard c++ and C libraries are pretty darned hard to read, so I find it often useful to google for the filename. For example if you want to know what's in the fstream header file then just [URL="http://lmgtfy.com/?q=fstream"]google for fstream.[/URL]

Member Avatar for rahul8590
0
123
Member Avatar for VelcroMan

Please do not tell us you are putting that code in a header file ???? Functions do not go in header files, but only in *.c files. Only put function prototypes in header files.

Member Avatar for ArkM
0
185
Member Avatar for realmckoy89

line 217-354: convert that to a switch statement. And next time user [noparse][code=c] ... [/code][/noparse] code tags

Member Avatar for Ancient Dragon
0
139
Member Avatar for shirish_kal

There is no standard function for that -- you will have to write your own. You could have written it yourself in the time that it took for me to post this response (5 hours).

Member Avatar for Ancient Dragon
0
117
Member Avatar for moly

Struct point is defined in the [b]protect[/b]ed section of the class PS2Sprite, which means it can not be used outside that class. If you want to use that structure like you are doing then move its definition outside any class.

Member Avatar for moly
0
81
Member Avatar for james4coffee

Welcome to DaniWeb >>I am a christain and husband to one wife. Do non-Christian's have multiple wives where you live :)

Member Avatar for jbennet
0
59
Member Avatar for GrimJack

[QUOTE=GrimJack;834667] # The world's fastest speeding ticket allegedly was issued in 2003 in Texas, when the driver of a Swedish-built Koenigsegg went 242 mph in a 75 mph zone.[/QUOTE] Wow! I wonder how he got caught? As for your original post -- you are insisting that the incident was racially …

Member Avatar for GrimJack
1
147
Member Avatar for Narue
Member Avatar for clutchkiller
Member Avatar for Klapiii

The source does not include the *.dsw file for use by VC++ 6.0 IDE. And next time you zip up source code you should delete all the files that are generated by the compiler, such as all the *.obj files. That will make the zip file smaller.

Member Avatar for Ancient Dragon
0
263
Member Avatar for neox183

The smallest possible array size would be 19 because the last number read does not need to be placed in the array.

Member Avatar for Ancient Dragon
0
73
Member Avatar for perumar

std::string.length() returns a size_t (unsigned int) and you are comparing it with an int. Change variable i from int to size_t to fix the warning.

Member Avatar for jencas
0
85
Member Avatar for Thinka

Nice one :) Its not even a real video but just the picture of the video page they turned upside down.

Member Avatar for Thinka
0
170
Member Avatar for Ancient Dragon

[URL="http://www.youtube.com/watch?v=hVFJ1uzgPS4"]I watched this[/URL] on tv just awhile ago and it blows the current global warming theory out of the water! At one point in Earth's history the planet was just one big snowball with volcanoes pumping billions/trillions of carbon dioxide into the atmosphere. Because there was no rain to cleans …

Member Avatar for chriswellings
0
139
Member Avatar for ybkumar77

[code] empObjPtr->firstName = local_fname; empObjPtr->lastName = local_lname; [/code] You have to allocate memory for firstName and lastName then copy the strings into those two variables. Since this is c++ you should use std::string instead of char*. But if you have to use char* then this is how to do it: …

Member Avatar for ybkumar77
0
131
Member Avatar for eowyn0622

You can get a Dell computer for under $500.00 USD at Wal-Mart. Or go online at [url]www.walmart.com[/url] to see other models. Sorry is this post seems spammy, but I'm just answering the original post.

Member Avatar for MosaicFuneral
0
169
Member Avatar for eforry

You will have to post the code you started because my eyesight isn't good enough to see your monitor.

Member Avatar for smart7
0
117
Member Avatar for amegahed3

just use sprintf() to generate a new filename [code] char filename[255]; int i; for(i = 0; i < 10; i++) { FILE* fp; sprintf(filename,"file%d", i+1); fp = fopen(filename,"w"); // blabla } [/code]

Member Avatar for jephthah
0
100
Member Avatar for 35nando

its not possible to typecast a va_list object into an int* pointer. What you will have to do is create an int array, loop through the va_list and then pass the array to the function. google for va_list to get examples of looping through the list.

Member Avatar for 35nando
0
218
Member Avatar for jimbob90

you will have to post the function converter() because we have no idea what it does or what it returns.

Member Avatar for jimbob90
0
124
Member Avatar for amegahed3

start your research [URL="http://lmgtfy.com/?q=how+to+generate+random+number+from+normal+distribution"]here.[/URL]

Member Avatar for Ancient Dragon
0
58
Member Avatar for Takafoo

remove the [b]const[/b] keyword in the parameter to that function on line 99. [b]const[/b] does not allow the function to call non-const methods of the class.

Member Avatar for Ancient Dragon
0
795
Member Avatar for headacheinC

line 18: C language requires all variables have to be declared at the top of the block. So you need to move the declaration of arr up to about line 8. [code] arr = malloc( maxi * sizeof(float*) ); for ( i = 0 ; i < maxi ; i++ …

Member Avatar for headacheinC
0
98
Member Avatar for Dani

In addition to the list of recent posts it would be helpful to also include the forum that the post was made in, there is plenty of room below the time for that.

Member Avatar for John A
1
139
Member Avatar for Talguy

[URL="http://en.wikipedia.org/wiki/Plugin"]plugin[/URL] could mean anything you want it to mean. This is like telling an auto repairman "My car is broke, how can I fix it?". Not much information to go on now is there???:?:

Member Avatar for Talguy
0
107
Member Avatar for Mostafa Adel

you can't do 2d arrays like that [code] char **array = new char*[x]; for(int i = 0; i < x; i++) array[i] = new char[y]; [/code] Then you destroy it like above, but in reverse order. I have seen another way to do it, but I never bothered to get …

Member Avatar for MosaicFuneral
0
214
Member Avatar for BountyX

[QUOTE=infamous]ugh, nevermind apparently windows doesn't support dup'ing[/QUOTE] yes it does -- for redirecting stdout or stderr to a file. You can't redirect it like that to a MS-Windows GUI control, such as an edit control. And I don't think you can do that under *nix X11 controls either. But I …

Member Avatar for krunalpatel1410
0
289
Member Avatar for johny123
Member Avatar for jephthah
0
5K

The End.