15,300 Posted Topics

Member Avatar for boydale1

The problem is the constructor with the parameter. It also needs to initialize instance variables because the constructor with no parameters does not get called.

Member Avatar for Ancient Dragon
0
106
Member Avatar for SpectateSwamp

what a totally useless waste of bandwidth and our time! Whoever filmed that obviously doesn't live where I live because we have millions (billions!) of birds all over the place.

Member Avatar for jephthah
0
160
Member Avatar for neox183

[code] while(found!=-1) { found=y.find(x,ind); ind=found+1; if(found==-1) {break;} [/code] The above can be better written like this because it doesn't require so much code and if statements. [code] while( (fund = y.find(x,ind)) != string::npos ) { ind=found+1; // etc etc } [/code]

Member Avatar for neox183
0
136
Member Avatar for M^2
Member Avatar for pridathabah
Member Avatar for vishy_85

[QUOTE=vishy_85;845021]hello all , i have to initialize the array of stucture singleIMEIarr to null , using NULL doesnt work , when i assign {'\0'} it doesnt execute. any suggestions at to where im wrong ? [code] struct singleIMEI { string planname; string plandescription; string scriptexec; string startdate; string starttime; string …

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

post a link to the thread that this should have been an answer to and I'll fix it up for you. I can't tell what thread you were trying to answer.

Member Avatar for Ancient Dragon
0
893
Member Avatar for Lucrezia

[QUOTE=Lucrezia;845115] For example, I would consider an item with 500 voters and 4,6 rating better than one with 50 voters and a rating average of 4,8 but with the common algorithm the second would be considered better (if the voter cutoff limit is lower than 50 of course).[/QUOTE] Statistically one …

Member Avatar for thoughtcoder
0
93
Member Avatar for nitinmukesh

Its in the registry [icode]HKLM\Software\Microsoft\Windows NT\Product Name[/icode]

Member Avatar for nitinmukesh
0
294
Member Avatar for Dani

[QUOTE=maireka;844904]Opti-World has been extremely successful recently. The addition of this it strengthens your position in some of the fastest-growing segments of the business. Get great ideas about your sales and marketing strategy, include information on how the product or service will be priced. There are lots of channels to market …

Member Avatar for Ancient Dragon
0
215
Member Avatar for kelechi96

its a poorly written program. >>istringstream sin(line.substr(line.find("=") + 1)); The program will more than likely crash if [b]line[/b] does not contain '=' or if that symbol is the last character on the line. >>if (line.find("num") != -1) line.find() doesn't return -1, it returns string::npos.

Member Avatar for Ancient Dragon
0
141
Member Avatar for gretty

all you have to do is typecast the character to int [icode]cout << 'A' << " = " << (int)'A' << "\n";[/icode] or [code] char a = 'A'; cout << a << " = " << (int)a << "\n"; [/code]

Member Avatar for Ancient Dragon
0
568
Member Avatar for sivak

We do not speak gobbledygook. Please explain with a better example and more explanation. Generally, the only way to read the last item of a text file is to read the entire file.

Member Avatar for Aia
0
399
Member Avatar for namour84

>>can anyone help me Can we? Yes. Will we is another question. We are not going to do your homework for you. Use google and you will probably find what you are looking for (the code).

Member Avatar for ArkM
0
104
Member Avatar for ahihihi...

Don't know the first thing about either one, so I won't vote :)

Member Avatar for Ancient Dragon
0
54
Member Avatar for nschessnerd

The first parameter must be either a static method of a class or a global function. You can't pass class methods unless they are declared static.

Member Avatar for Ancient Dragon
0
136
Member Avatar for tasosa
Member Avatar for jephthah
0
192
Member Avatar for Ancient Dragon

[URL="http://www.youtube.com/watch?v=vGeyurkOlqI&eurl=http://www.fuckfrance.com/topic/3357171/1/Discussions/Does-anyone-here-actually-believe-in-evolution.html&feature=player_embedded"]Finally, a complete and accurate explaination of evolution.[/URL]:

Member Avatar for GrimJack
0
1K
Member Avatar for iammfa

[QUOTE=tux4life;844216]What a crap this code is ? 60% of your code is full of bugs ... Read your textbook first ! By the way, in future post using code tags ...[/QUOTE] Looks a lot like my code too :)

Member Avatar for stephen.id
0
140
Member Avatar for MosaicFuneral

A literacy test would only work for people whose native language is English. Non-English speaking people might have a difficult time to meet the requirements.

Member Avatar for MidiMagic
0
256
Member Avatar for hhilo2002

>>Does variables in a namespace behaves like a static variable where it will keep the most recent value? No. static variable may appear either inside a class or outside any class. [list] [*]When static variables are part of a class then they require class scoping, such as [icode]MyClass::MyVariable = 0;[/icode] …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for Matzbyy

[QUOTE=olabodeaguda;844204]i guess u are code into a project that u've already compile and use.try to open another project and compile.[/QUOTE] That makes no sense at all -- and please type [b]you[/b] instead of [b]u[/b]; its only two more key strokes

Member Avatar for Ancient Dragon
0
98
Member Avatar for mathueie
Member Avatar for ericthecat

Welcome to DaniWeb. I always found the concrete patio outside my backdoor an excellent way to repair computers. [list=1] [*] Open Door [*] Toss Computer Out [*] Watch it splatter all over the concrete. [*] Sweep up the rubbish [*] Deposit in trash can [/list]

Member Avatar for Ancient Dragon
0
129
Member Avatar for xcr

>>i didn't want to spam the message board. You won't. Just past the code between code tags and you will be all right. We can't copy from that link into our compiler's IDE. [edit]Ok, so I didn't see the [b]Download[/b] button at the bottom of the page :) [/edit]

Member Avatar for xcr
0
146
Member Avatar for syarolazuan

People here generally ignore threads marked [b]Urgent[/b]. >>Can someone "genius" help me to complete this. What parts do you have problems implementing?

Member Avatar for Ancient Dragon
0
779
Member Avatar for nschessnerd

Read [URL="http://www.ondotnet.com/pub/a/dotnet/2003/03/03/mcppp2.html"]this[/URL] [URL="http://lmgtfy.com/?q=how+to+mix+managed+and+unmanaged+c%2B%2B+code"]and this[/URL]

Member Avatar for nschessnerd
0
226
Member Avatar for myselfantara

>>The code is not able to open the input file. Obvious answer -- the input file doesn't exist or is not where you think it is.

Member Avatar for tux4life
1
217
Member Avatar for lllllIllIlllI

Did you read the threads in DaniWeb Community Feedback? There are a couple threads on that topic.

Member Avatar for verruckt24
0
179
Member Avatar for yashyash

why are you opening the text files in binary mode??? Just open it in text mode [code] // not that ios::in and ios::out flags are not needed for ifstream and // ofstream ifstream infile (ascifile); ofstream outfile( binfile ); while( infile >> Index1 >> Index2 >> simvalue ) { outfile.write((char …

Member Avatar for yashyash
0
88
Member Avatar for vsha041

you need to pass the string by reference. in GetArray() the string is local to the function so when the function returns the string is destroyed, invalidating the return pointer. [icode]const char* getArray(string[color=red]&[/color] s){[/icode] Actually the function doesn't need the temp pointer at all. [code] const char* getArray(string& s) { …

Member Avatar for tux4life
0
182
Member Avatar for tonyaim83

Microsoft compilers do not use unistd.h -- that's for *nix. And Microsoft put an underscore in front of the name, so its [URL="http://msdn2.microsoft.com/en-us/library/sf98bd4y(VS.80).aspx"]_getcwd().[/URL]. The link contains example code too.

Member Avatar for adam1122
0
6K
Member Avatar for mat1989

probably something like this: [code] std::string str = "<html>"; if( str.find("<") != string::npos && str.find(">") != string::npos) { // most likely an html tag } [/code]

Member Avatar for Xlphos
0
1K
Member Avatar for ~s.o.s~
Member Avatar for hurbano

After line 19 you need to flush the input buffer of the '\n' character. [icode]cin.ignore(1000,'\n');[/icode] should do the trick.

Member Avatar for tux4life
0
121
Member Avatar for NicAx64

>>this post is not about telling you not to use C++ preprocessor Good, because it is not possible. >>How to generate the preprocessed file . well GCC you can , but MS VC++ I even yet don't know.

Member Avatar for Will Gresham
0
534
Member Avatar for gangsta gama

OMG! Why don't you simply use vector's erase() method to delete an inventory item instead of all those assignment statements :scared:

Member Avatar for gangsta gama
0
125
Member Avatar for mampam

line 13: >>if((argc > 1)&& !strcmp(argv[1], "-d") && (argc > 2)) All you need is one check for argc [icode]if((argc > 2)&& !strcmp(argv[1], "-d"))[/icode] Also post a few lines from the text file.

Member Avatar for Ancient Dragon
0
82
Member Avatar for ganmo

you need to adjust the pointers [b]next[/b] pointers too. such as [icode]temp->previous->next = temp-->next;[/icode]. If your linked list does not have a [b]previous[/b] pointer, then you need to keep track of it while iterating through the list in lines 4 and 5 of the code you posted.

Member Avatar for ganmo
0
128
Member Avatar for abhi_marichi

"a simple os" and "gui interface" are contradictory statements. Something like MS-DOS 1.0 was a simple os. Once you add gui it becomes very very complicated.

Member Avatar for Ancient Dragon
0
89
Member Avatar for everard

[QUOTE=everard;841310]When I compile the program, I always got this error message: C:\LOGFILE_INTERPRETER\LOGFILE_INTERPRETERDlg.cpp(355) : error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)' Error executing cl.exe. Does anyone knows what is the problem with my codes?[/QUOTE] Which one of those line …

Member Avatar for MrSpigot
0
367
Member Avatar for perumar

>>I am getting a linking error stating buffer is too small There is no such linking error. Post the exact error message. >>strcpy_s(cstr,sizeof(cstr), str.c_str()); That is wrong because sizeof(any pointer) is always 4 on a 32-bit compiler. what you want is str.size(). >> *tail--; >> *head++; remove the stars because …

Member Avatar for tux4life
0
286
Member Avatar for vishy_85

Your compiler is correct. If you want that function to return something else then change the return type on line 5 of the *.cpp file, and also in the class declaration. Functions can not return arrays like you are trying to do in line 162 of the code you posted. …

Member Avatar for vishy_85
0
151
Member Avatar for dragon_vn_101

doesn't matter why -- gets() is a horrible function anyway. Use fgets() instead of gets(). And if you really want the source code for that standard C function then download the gnu compiler source code.

Member Avatar for ithelp
0
76
Member Avatar for 1newguy
Member Avatar for xgmx

I know a sociologist (Ph.D.) who did that. He wrote a book and made $Billions.

Member Avatar for jephthah
0
141
Member Avatar for peter_budo

i had a problem a little while ago, just assumed you were working on the servers. Didn't last more than 5-10 minutes.

Member Avatar for blud
1
63
Member Avatar for Lostcomputer

Welcome to DaniWeb. >>Just built custom computer and i want to learn linux Good luck! Come back in about 10 years and tell us how it went :)

Member Avatar for HereInOz
0
159
Member Avatar for davidjohnson
Member Avatar for shadowmann2330

[QUOTE=shadowmann2330;841767]i have heard that i need to "fulsh the input" please help me![/QUOTE] [URL="http://www.daniweb.com/forums/thread90228.html"]read this thread[/URL] Your coded would look a little better if you used a switch statement instead of all those if statements. [code] cin >> numberofopponents; switch( numberofopponents ) { case 1: // blabla break; case 2: …

Member Avatar for ArkM
0
142

The End.