15,300 Posted Topics

Member Avatar for Kashif

>>Thx but didnt find if u have then send the link [URL="http://www.daniweb.com/forums/thread81459.html"]Here[/URL] is just one of severl threads. Look around on the C board and you will find others

Member Avatar for Kashif
0
81
Member Avatar for nalinibh

Also try reading the useful information in [URL="http://www.daniweb.com/forums/thread80402.html"]this thread[/URL]

Member Avatar for thekashyap
0
455
Member Avatar for Ortal

I think thekashyap is right about uninitialized variables -- add a constructor to the node_type class that initializes the variables to 0.

Member Avatar for thekashyap
0
149
Member Avatar for lotsofsloths

I don't think there is such a thing as pixel brightness -- its eather color X or its color Y. There are hundreds of different shades of each color but I don't think they all have the same brightness unlike the old ancient MS-DOS color scheme. But I could be …

Member Avatar for Swapnil6623
0
134
Member Avatar for Covinus

you could use some os-specific api calls such as Sleep()(ms-Windows) or sleep() (*nix) in a loop to delay a bit then check for keyboard hit.

Member Avatar for Salem
0
112
Member Avatar for Thinka

1. Don't know the first question. 2. Functions must often be run hundreds or even thousands of times in order to get measureable time. The clock() function is in milliseconds and usually sufficient. So, to get a measurable amount of time [code] start timer run the function 1,000 times stop …

Member Avatar for Narue
0
1K
Member Avatar for nottoshabi

you don't start debugging in the dll itself, but start with a host program because the host program calls funciton(s) in the dll as if they were actually part of the host program. If you want to test the functions in the dll write a test host program that just …

Member Avatar for Killer_Typo
0
97
Member Avatar for bops

You can't do any of those things with system() function. You need to use more os-specific api calls. MS-Windows use CreateProcess(), don't know about *nix.

Member Avatar for thekashyap
0
2K
Member Avatar for mot_ala
Member Avatar for Teresa_Hall

The string of characters is accessed just like any other array [code] std::string word = "Hello"; char oneChar = word[0]; [/code] Or in the above replace the word[0] with a loop counter such as word[i].

Member Avatar for Narue
0
238
Member Avatar for lotsofsloths

You are using an editor of somekind, such as Notepad to write your program. Just copy it to the clipboard then paste it into DaniWeb's edit box, and please surround it with code tags.

Member Avatar for ~s.o.s~
0
324
Member Avatar for kpillsb39

Since you want the user to enter either 'Y' or 'N' it must be entered as a string, not a bool. You should redeclare [b]choice[/b] as a std::string because data type [b]bool[/b] only accepts a 0 or 1.

Member Avatar for ~s.o.s~
0
100
Member Avatar for sadaka

That error means the linker can not find a library. Check your computer file system to see if it exists. It has nothing to do with the code you posted.

Member Avatar for Ancient Dragon
0
143
Member Avatar for nse

[QUOTE=gajmp;374635]We have ration for document and development. but we dnt hv any ratio for development and maintenance. As per my knowledge we cant define any ratio for this.[/QUOTE] And neither can anyone else. I have been developing for over 25 years and Narue is right -- if you want a …

Member Avatar for Killer_Typo
0
145
Member Avatar for cyuksel2006

Reinstall the os -- you DO have the original CD don't you? When you start the cd it will probably ask you if you want to repair the current installation.

Member Avatar for cyuksel2006
0
182
Member Avatar for alig

Diablo II (or any other version of Diablo for that matter) by Blizzard can not be played on Vista os -- I tried it and it doesn't work :( . There are a lot of old games that are not compatible with Vista. If the mouse on your computer works …

Member Avatar for WPFNEM
0
145
Member Avatar for Ancient Dragon

Did a search for "arrays" and selected "In Code Snippets" then pressed Search it changed the selection to "Entire Site" and produced a list of 3 pages. But it will display only the first page even when I select one of the other two pages. No matter what I do …

Member Avatar for Ancient Dragon
0
39
Member Avatar for darkfuria

Welcome to DaniWeb. Why do you dislike your school so much ? [URL="http://en.wikipedia.org/wiki/Riga"]Riga looks like a grand city[/URL]. If you have problems with QBASIC then post questions in the Basic Software Development board and people will help you.

Member Avatar for bumsfeld
0
238
Member Avatar for Serunson

[quote] The 85 million-year-old creature was 35 times heavier than other known similar species, and is thought to have had a beak and sporadic patches of feathers, according to a paper to be released in UK science journal Nature on Thursday[/quote] Well so much for that article. Everyone knows the …

Member Avatar for joshSCH
0
95
Member Avatar for TheNNS

[QUOTE=TheNNS;387852]ok, I understand. How many people here would like a forum like that? Yeah, I'm a teenager too.[/QUOTE] I think I would and I have not been a teen-ager for many years now. :) My grandon is a teenager -- does that count :*

Member Avatar for ~s.o.s~
0
821
Member Avatar for phalaris_trip
Member Avatar for ~s.o.s~
0
197
Member Avatar for guptaalok12
Member Avatar for mankichi

Look at the prototype of that Draw() function in the header file -- it is either missing or contains a different set of parameters.

Member Avatar for Ancient Dragon
0
45
Member Avatar for kpillsb39

Yes, that works. There are a couple other ways to accomplish it [code=cplusplus] int main() { Album collection[5] = { {"Private Investigations","Dire Straits", {"Sultans of Swing",2,"Romeo and Juliet ",4, "Money for Nothing ",9,"Walk of Life ",10}} }; [/code] You can also use vector instead of c-style arrays.

Member Avatar for Narue
0
84
Member Avatar for ghadahelal
Re: .exe

[QUOTE=ghadahelal;389104]Hallo, i have a programm, it works without errors[/quote] [quote], the only problem i have is that the .exe file works for one line and then it closes from itself[/quote] Those two statements contradict each other. Apparently the first statement is false. Post your program so we can see and …

Member Avatar for Ancient Dragon
0
95
Member Avatar for kinggarden

don't use c style file i/o and strings in c++ programs. Yes its valid to do that but c++ file i/o and c++ string class are generally easier to use and makes your program less buggy. c++ vectors and lists are the containers that will make it almost trivel to …

Member Avatar for Narue
0
207
Member Avatar for rathiskanths

Don't bother. Use the 5 gig drive as a door stop and buy a 350 gig drive. >>I want to partition my Hard disk (C:) into 2 or more pieces. Please tell me how can i do that without purchasing a Partition Manager Software. Reformat, repartition, then reinstall the operating …

Member Avatar for Ancient Dragon
0
65
Member Avatar for jaepi

No. see the comments at the top of [URL="http://www.koders.com/c/fidF852A50283347FECA239314137A928136E6B3E3B.aspx"]this link[/URL]

Member Avatar for jaepi
0
45
Member Avatar for nalinibh

one way is to buy a commercial profiler program :) But the easiest way is to call clock() to get the current time before starting the algorithm, then call it again after the algorithm is finished. The difference is the execution time. But be warned that the algorithm might execute …

Member Avatar for Ancient Dragon
0
111
Member Avatar for jenymaru08

you are making it too difficult! All you have to do is find the last character, save it to another variable (or just print it), replace it with a 0 to truncate the string, then print the rest of the string as you normally would. There are no loops needed.

Member Avatar for hinduengg
0
99
Member Avatar for matias.germany

What compiler are you using because mine gives a couple errors about using uninitialized variables which you need to fix before attempting to run that program.

Member Avatar for Ancient Dragon
0
128
Member Avatar for scudzilla
Member Avatar for stanats

1. Open the file for read, call fseek() to seek to the end of the file, then call ftell() to get the length of the file. Alternatively you can get the file length by calling stat() or fstat(). 2. Allocate a buffer pointer to the file size obtained in #1, …

Member Avatar for echobase
0
2K
Member Avatar for Dani

Interesting thread even though it is a few years old. I've had similar thoughts about deleting old unused accounts and now I know why they aren't deleted (admin nightmare) :ooh: But I would think the hard drive would eventually become chucked full of data about old obsolete accounts.

Member Avatar for roryt
0
404
Member Avatar for Ruch
Member Avatar for mankichi

There are two versions of MessageBox -- one for UNICODE (the W at the end) and one for single-byte languages such as English (and has an A at the end). The error message makes it obvious you are compiling your program for UNICODE with requires wchar_t* instead of char* as …

Member Avatar for mankichi
0
98
Member Avatar for youngstorm

sorry I don't know MIPS assembly, but if a register contains a single digit then simply add '0' to it [code] mov ax,5 ; a numeric digit in register ax add ax,'0' ; make the digit printable ;; now print the digit in register ax [/code]

Member Avatar for youngstorm
0
3K
Member Avatar for The Dude

you can think our liberal friends, such as the ACLU, for that. God forbid cartoons show any kind of violence because it will destroy our children's minds :@ I've been watching them for the past 60 years and my mind is perfectly ok, thank you very much. My children are …

Member Avatar for ndeniche
0
75
Member Avatar for MattEvans

[QUOTE=MattEvans;384112].. does daniweb even have a 'bad word' filter.. [/QUOTE] Yes there is such a filter. Not all naughty words are caught though. See the Rules for more informatio.

Member Avatar for ~s.o.s~
0
358
Member Avatar for Dejai
Member Avatar for gexecuter

my guess is the screen is not 24x79. Try increasing the value of dx to test that out unless, of course, you have already thought of that and tried it.

Member Avatar for gexecuter
0
109
Member Avatar for sweetleaf

[URL="http://www.math.grinnell.edu/~stone/courses/fundamentals/IEEE-reals.html"]Here[/URL] is a good explaination. doubles have greater precision than floats, so if you view the raw value of 0.7 a double might be 0.7000001 while a float might be 0.7000

Member Avatar for sweetleaf
0
93
Member Avatar for The Dude

the study of psychology is chucked full of useless facts. just read a phych 101 book!

Member Avatar for EnderX
1
320
Member Avatar for Router_X

Depends on how many copies of the cd you think they can sell. Just a dozen or so, hundreds, thousands, or millions? The subject you described is something that will appeal only to a rather small segment of society. At $15.00/CD you won't get much of a royalty so I …

Member Avatar for Ancient Dragon
0
77
Member Avatar for justlukeyou

[QUOTE=Aia;385472]Actually, in many places in Spain people frown upon you if you walk on the grass. They put signs on the grass saying: Stay off the grass!.[/QUOTE] [QUOTE=sk8ndestroy14;385560]Some people do that here. The people that spend day and night to make their yards look good. It's funny that some people …

Member Avatar for joshSCH
0
355
Member Avatar for tlee

function perkey() is using an unitilized pointer [b]ptr[/b] Is the intent of that function to copy the contents of one string into another and return the pointer to the new string? Like strcpy() ? If so, then you need to call malloc() first to allocate memory for the new string. …

Member Avatar for Ancient Dragon
3
2K
Member Avatar for bondi007

[QUOTE=bondi007;385276]it runs ok just like my xp did but is 1gig good fro game for the vista cheers bondi 007[/QUOTE] Depends on the game -- Chess Titans, Solitaire, Hearts, etc all run ok on 1 gig. I also like Silverfall which was horribly slow so I bought another gig. It …

Member Avatar for bondi007
0
100
Member Avatar for bops
Member Avatar for Ancient Dragon
0
355
Member Avatar for The Dude

I didn't have to bother reading it -- Josh said it all that needs to be said. There are people who would probably blaim Bush for Christ's second coming.

Member Avatar for Dave Sinkula
0
228
Member Avatar for shouvik.d

maybe you should contact BumbleBee. Also possible that VC++ 6.0 is too old. You might try a more current compiler such as the free VC++ 2005 Express.

Member Avatar for iamthwee
0
194

The End.