15,300 Posted Topics

Member Avatar for complete

I've seen it done both ways -- and even seen people mix them. Myself, I prefer listing methods first.

Member Avatar for Narue
0
96
Member Avatar for dombrat

You start by not using a dead language like Delphi. Then spend about 5 years or so learning how to write games with a real language such as C or C++.

Member Avatar for jbennet
0
77
Member Avatar for dspc

[quote]The invested interests spend so much national wealth in preparing the Olympic Games to blandish the international, launch so much propaganda about the 2008 Olympics to gloss over official corruption and social inequality![/quote] That could have been said of every nation in the world that hosts an olympics. Boycotting an …

Member Avatar for jwenting
0
284
Member Avatar for calipxo
Member Avatar for TkTkorrovi
0
112
Member Avatar for tonyaim83

That function compiles ok for me using VC++ 2005 Express. Maybe you forgot the include files <string> and/or <vector> ?

Member Avatar for Narue
0
191
Member Avatar for murigah

Imposible for anyone to help you without more information. Please post your code. Do you get errors when you compile the program or when you run the program ?

Member Avatar for debasisdas
0
62
Member Avatar for St!tch

[QUOTE=St!tch;432629]I'm starting out...obviously, a newbie here. However, I cannot understand that when I run this code with the first number being 34 and my second number being 40 ....I get the output of 39. This is not my homework. I'm just trying to learn on my own for now. Thanks …

Member Avatar for Ancient Dragon
0
102
Member Avatar for joebenjamin

What you need is an array of 10 integers to contain the count of each interval. For example a[0] is the number of random numbers that fall between 1 and 5, a[1] = 6-10, etc. After generating a random number at line 15 use a series of [b]if[/b] statements to …

Member Avatar for Ancient Dragon
0
102
Member Avatar for tonyaim83

>>an option would be to use run-time polymorphism. I thought about that too but dismissed it because it may not work. [b]createandmanipulate()[/b] still has to know whether to allocate an object of type Class1 or Class2 before returning. If it allocates an object of only [b]base[/b] then the caller will …

Member Avatar for vijayan121
0
174
Member Avatar for nagajyothi

Its not very clear what you did and what you want. Do you mean you created a structure and saved their contents to a file, now you want to search the file for a specific record ? If that is correct, then read the file sequentially from beginning to end, …

Member Avatar for Ancient Dragon
0
92
Member Avatar for abhi.creations

what language are you writing the assembler in ? C language ? What have you already done to find the information you are seeking ? As for me, I never had the occasion to write an assembler, so probably can't help you much.

Member Avatar for abhi.creations
0
58
Member Avatar for curt22

[URL="http://www.winprog.org/tutorial/"]Another excellent tutorial[/URL]. Its not necessary to use c++ to write win32 api programs and the tutorial in my link doesn't require c++.

Member Avatar for Ancient Dragon
0
104
Member Avatar for annagraphicart

I would use a structure to hold the information for each bowler, then after entering the information sort the array of structures by score. After that print the array information. [code] struct bowler { std::string bowlername; int score; int points; }; [/code]

Member Avatar for Ancient Dragon
0
92
Member Avatar for shoby

first, that function needs to know the size of each matrix -- don't leave any dimensions unspecified as you did. Your function appears to be derived from the bubble sort -- toss it in the bit bin because it will not work. A transpose function does not need a temp …

Member Avatar for Aia
0
207
Member Avatar for theraven1982

simple solution -- move lines 28 and 42 up to line 7 so that its scope is to the entire function. Also you can't declare a matrix using non-static number of elements. If you don't know the size of the matrix at compile time then you have to allocate the …

Member Avatar for theraven1982
1
14K
Member Avatar for vidaj

ms-windows call GetFirstFile() and GetNextFile(), or in *nix call opendir() and readdir(). If you used c++ you can use boost library that is portable between these two operating systems (I don't know a thing about MAC).

Member Avatar for iamthwee
0
105
Member Avatar for emin3m

The function new returns a pointer to the end of the memory block, not the beginning. I think it would work if written like this: [code] void * operator new( unsigned int iSize ) { static unsigned char aMemPool[10000]; static unsigned iUsed = 0; if( iSize == 0 || (iUsed+iSize) …

Member Avatar for vijayan121
0
211
Member Avatar for emin3m

when BUILD_RELEASE is defined the Debug macro is not evaluated and the function on line 11 of the code you posted will only be executed if a == 0, in otherwords line 11 becomes part of the [b]if[/b] condition on line 9, just as if it were written like this: …

Member Avatar for Ancient Dragon
0
84
Member Avatar for Ashu@sym

There isn't a [b]tutorial[/b] but there is some information to help you, such as [URL="http://www.google.com/search?hl=en&q=how+to+convert+c+program+to+unicode&btnG=Search"]these google links[/URL]

Member Avatar for Ashu@sym
0
101
Member Avatar for Serunson

Its really sluggish this evening (9:43 PM CST) and was pretty bad early this morning too (6:00 AM CST). Using IE7 on Vista Home.

Member Avatar for MidiMagic
0
598
Member Avatar for Mix

[QUOTE=GrimJack;430939]Actually there is a way to automate it completely. I found the site ([url]http://www.nliteos.com/)[/url]. [/QUOTE] someone must have removec the link from that site because its no good any more. :'(

Member Avatar for Mix
0
166
Member Avatar for koolbabu

maybe [URL="http://www.cplusplus.com/doc/tutorial/operators.html"]this[/URL] will help :?:

Member Avatar for Ancient Dragon
0
69
Member Avatar for sasikala123

practice, practice and more practice. write a simple game, such as hangman or tick-tack-toe. The concepts will become more firmly set in your mind with more coding.

Member Avatar for ~s.o.s~
0
124
Member Avatar for nitin_rajurkar

Although you didn't attach the list it is obvious that the error message means you are now linking to the wrong libraries. You need unicode version of the libraries from wherever you got the non-unicode libs.

Member Avatar for nitin_rajurkar
0
115
Member Avatar for hoceandress

you should probably use a switch statement instead of a series of if statements, unless your assignment requires if statements. Move the last statement (lines 50-54) to the beginning so that its tested first, then put else statements before each if statement, like you did on line 50.

Member Avatar for GreenDay2001
0
93
Member Avatar for eranga262154

why not just do it the quick and easy way, assuming the binary file is no larger than the char buffer. If the size is unknown than we'd have to first find out the file size and allocate the buffer appropriately. In any case it will be a lot faster …

Member Avatar for eranga262154
0
324
Member Avatar for Dave Sinkula

America is pretty low on the list for health care -- [URL="http://www.photius.com/rankings/healthranks.html"]37th on WHO's list[/URL] with France #1. Mortality: again America is in the 24th on [URL="http://www.photius.com/rankings/healthy_life_table2.html"]the list of countries[/URL].

Member Avatar for RPDunn
0
358
Member Avatar for hassan_kh

>> write a better implementation of this function. You do it, we don't have the time. Of course if you would pay me $5,000.00 I will do it for you :)

Member Avatar for mark busenitz
0
556
Member Avatar for Salem

Isn't it somewhere in the book of Revelations (Bible) that indicates we are in our final days when people are required to have a number tattooed on the forehead? I'm sure you said that in jest, but then ....

Member Avatar for Lardmeister
0
138
Member Avatar for hassan_kh
Member Avatar for hassan_kh

If the code you posted contains errors then nothing will happen because the compiler will not generate an executable program. The ocmpiler generates the final executable program only when you have fixed all errors.

Member Avatar for Ancient Dragon
0
247
Member Avatar for hassan_kh

initial values: a = 2 and c = 1 First iteration: a = (2 + 2) * 1 = 4 Second iteration: a = (4 + 4) * 1 = 8 Third iteration: a = (8 + 8) * 1 = 16 Fourth iteration: a = (16 + 16) * …

Member Avatar for hassan_kh
0
144
Member Avatar for hassan_kh

what has the code you posted to do with the two questions you asked ? My guess: absolutely nothing. Please read board rules -- especiall the part about [URL="http://www.daniweb.com/forums/announcement8-2.html"]We only give homework help to those who show effort [/URL]

Member Avatar for Ancient Dragon
0
149
Member Avatar for qaiser

no one is going to write the program or you, so you might as well read your text book and learn how to do it. Tables usually are two dimensional, with rows and columns and look something like below (I'm certain you have seen this before in hundreds of places) …

Member Avatar for Ancient Dragon
-1
72
Member Avatar for chunkmartinez

[URL="http://www.daniweb.com/code/coder46588.html"]Here[/URL] are workable examples of getting all the files in a directory and all its sub-directories.

Member Avatar for chunkmartinez
0
87
Member Avatar for gaurav252

Yes, if you don't give printf() the correct arguments then its behavior is undefined. But most likely it will assum the stack contains the correct arguments and use whatever is there. That's why a lot of people get core dumps or access violations then they have "%s" in the format …

Member Avatar for Ancient Dragon
0
107
Member Avatar for amishosh

There are a few free C++ classes that might be useful to do the database part especially if you plan to use something like an SQL server, MS Access, Orical or something similar. Access via C and C++ can be quite compilicated so its advisable to use a C++ class …

Member Avatar for Ancient Dragon
0
103
Member Avatar for janna303

>>I'm surprised even compiles Depends on the compiler. Some compilers check the first argument to see if any other arguments are needed and give warnings for mismatches. Other compilers don't care.

Member Avatar for Ancient Dragon
0
139
Member Avatar for luitelm

read [URL="http://www.google.com/search?hl=en&q=c+program+to+read+excel+file&btnG=Google+Search"]this[/URL] and [URL="http://chicago.sourceforge.net/devel/docs/excel/"]this[/URL]

Member Avatar for VatooVatoo
0
101
Member Avatar for The Dude

[QUOTE=iamthwee;428472]What is a segway?[/QUOTE] Didn't you look at the picture in that link ?:D

Member Avatar for Lardmeister
0
79
Member Avatar for asilter

you can have as many [b]-I[/b] flags as you want -- just put a space between then on that CFLAGS line

Member Avatar for asilter
0
202
Member Avatar for mmmmmmmmmmmm
Member Avatar for eranga262154

you created a windows program not a console program. The simplest fix to that problem is to start all over again, but this time when you get to the [b]Application Settings[/b] window choose [b]Console Application[/b] [edit] what WolfPack wrote -- I didn't see it when I wrote this [/edit] About …

Member Avatar for eranga262154
1
170
Member Avatar for Duki
Member Avatar for Duki
0
133
Member Avatar for TkTkorrovi

[QUOTE=TkTkorrovi;418901]Ohh, mistake in the title, can someone repair it? [/QUOTE] Fixed -- but next time you should use the [b]Flag Bad Post[/b] button to make such a request easy for one of the mods to see.

Member Avatar for TkTkorrovi
0
3K
Member Avatar for sayeo87

you need to truncate the string at the spot where you want to stop printing. If you want the full string later then save that character in another variable and put it back after printing [code=c] char c[40], *pc, save; int size; scanf("%s", c); size = strlen(c); save = c[size-4]; …

Member Avatar for sayeo87
0
278
Member Avatar for rainbringer

[QUOTE=rainbringer;427982]O.K., thanks! I'm downloading it now, although it took time to find a link to it. It's well hidden from some reason. I hope it's full enough. Thanks again![/QUOTE] Please post link:)

Member Avatar for rainbringer
0
182
Member Avatar for asilter
Member Avatar for amishosh

Or turn off UNICODE Project --> Properties -->Configuration Properties, then the value of [b]Character Set[/b] property to [b]Not Set[/b]

Member Avatar for Ancient Dragon
0
79
Member Avatar for kahaj

[QUOTE=ehsen;427884][code] system("pause"); [/code] system(pause) is the best method.[/QUOTE] Your response is just a tad bit late -- by almost two years! :-O

Member Avatar for Ancient Dragon
0
600

The End.