15,300 Posted Topics

Member Avatar for dhananjay1
Member Avatar for korathualex

Do you know SQL (Structured Query Language)? If not, then you need to read a tutorial -- there are lots of free tutorials, just google for them. If you already know SQL, then use CREATE DATABASE sql command. [ Here ](http://www.rhyous.com/2010/05/28/how-to-query-a-database-in-csharp/)is a basic outline of how to do that.

Member Avatar for Ancient Dragon
0
177
Member Avatar for Elixir42

Make sure the coordinates you pass are SCREEN coordinates, not Window coordinates. In full screen mode the two are the same, but not in windowed mode.

Member Avatar for Elixir42
0
516
Member Avatar for NardCake

> StarDock is offering a new (reasonably priced) utility called ModernMix which will allow you to run all of the Metro (full screen) apps in windows just like regular desktop apps Doesn't Windows 8 do that now?

Member Avatar for jwenting
0
466
Member Avatar for benshums

[QUOTE=benshums;501526] | Can anyone tell me what \-> comment does? Does it simply include the library during compile-time? Thanks.[/QUOTE] read [URL="http://msdn2.microsoft.com/en-us/library/7f0aews7(VS.71).aspx"]this[/URL]

Member Avatar for sakthilolita
0
339
Member Avatar for killer88

Start by googling for "c++ antivirus" and reading the links, sometimes google helps and sometimes not, but you won't know until you do it.

Member Avatar for Ancient Dragon
1
95
Member Avatar for hoorul.ain.779

I think you mean you want to know how to create a date class. Do you know how to create a class of any type? The three items you listed could be methods of the class. The data objects of a date class would contain day, month and year integers, …

Member Avatar for Ancient Dragon
0
252
Member Avatar for boris90

Why are you using ofstream in a CLR/C++ .NET program? CLR/C++ is a MANAGED program and ofstream is UNMANAGED. The two are not compatible. You should be using [System.IO.file streams](http://msdn.microsoft.com/en-us/library/system.io.file_methods.aspx).

Member Avatar for boris90
0
438
Member Avatar for <M/>

Probably about a 4 hours or so. I'm not on DaniWeb now as much as I used to be -- too busy playing Diablo III.

Member Avatar for JorgeM
0
185
Member Avatar for otengkwaku

It moves the file pointer 4 bytes towards the beginning of the file from the current position.

Member Avatar for otengkwaku
0
384
Member Avatar for Catchamouse

In the header file, try putting code gards around it like this: #ifmdef MYHEADERFILE #define MYHEDERFILE // your code goes here #endif

Member Avatar for Ancient Dragon
0
206
Member Avatar for JE821

free() does not change the pointer, it still points to the now-freed strings. Try this for(index=0;index<50;index++) { free(report[index].name); report[index].name = NULL; report[index].score=0; } Also note that NULL refers to pointers, not integers. If you want to initialize an integer to 0 then do that instead of using NULL. Some compilers …

Member Avatar for JE821
0
294
Member Avatar for Xantipius
Member Avatar for MasterHacker110

You might try [Sane's Monthly Algorithms Challenges](http://www.programmingforums.org/forum64.html) written for beginners through advanced programmers. Warning! Warning! requires some thinking.

Member Avatar for MasterHacker110
0
155
Member Avatar for <M/>

The one word I really really hate is banned here -- the F word. I know people who can't say a sentence without saying it and it drives me up the wall. My mother would have washed my mouth out with soap if she herd me saying that word, and …

Member Avatar for <M/>
0
475
Member Avatar for <M/>
Member Avatar for vinnitro
0
248
Member Avatar for Suzie999

>So when my program is launched the global class does not have the data to use Then I suspect you need to reorginze the logic of your program. Function foo() can't do it's job if the data doesn't exist yet.

Member Avatar for Suzie999
0
474
Member Avatar for poopoowei
Member Avatar for pooh1234qwerty

What compiler and operating system are you using? The code's formatting is the most horrible that I've seen posted here in the past 10 years! Format it properly and someone might actually try to help you.

Member Avatar for Ancient Dragon
0
197
Member Avatar for sadben.khan

The function is being called. I used VS 2012 to verify that. What did you enter for the filename? Why do you think that function is not being called? The program seems to freeze probably because there is an infinite loop. Use your compiler's debugger so that you can see …

Member Avatar for sadben.khan
0
227
Member Avatar for tyler.dahle

>my original hard coding produced poor performance. You're not going to get any better performance either. If you want good performance then use a game engine that is designed for that, such as DirectX or OpenGL (there are probably many others too).

Member Avatar for tyler.dahle
0
1K
Member Avatar for Xantipius

According to [this wiki](http://en.wikipedia.org/wiki/Masqualero) article it was the name of a band from Norwy (1983-1991)

Member Avatar for Xantipius
-1
50
Member Avatar for Vongola_Takeshi

Yup, Microsoft has phased out debug.exe because Windows 7 no longer supports those ancient 16-bit programs. You can download [URL="http://sourceforge.net/projects/dosbox/"]DosBox[/URL] and run the 16-bit programs and debug.exe from there.

Member Avatar for xiboom
0
688
Member Avatar for marcel.gybels
Re: hpp

why does line 8 exist??? You probably need to delete that line. And line 11 is missing open brace { line 42: need to add a return value, e.g. "return 0"

Member Avatar for Ancient Dragon
0
150
Member Avatar for ikeh theacla ij

what part of that don't you understand? What do you need help doing?

Member Avatar for Schol-R-LEA
0
126
Member Avatar for ChargrO

I should think the best way is to have everyone log in when they start the program. If you do that then you can easily expand on your idea to associate certain buttons and stuff by user and/or password. If the user does not have permissions to press a certain …

Member Avatar for Mr.M
0
164
Member Avatar for nova37

Is that a compile-time or run-time error? Did the program include windows.h? What compiler are you using?

Member Avatar for untio
0
252
Member Avatar for DarckHalf

Great games use great game engines such as OpenGL or DirectX. Those do all the really hard work and let you concentrate your efforts on the game, sound and graphics. Yes, you have to be an expert on all those fields. You can't possibly code a good game without being …

Member Avatar for roax206
0
713
Member Avatar for hapizi84

Many games that run on XP will not run on Win7. So if you are a big gammer and like the games you are playing, then stick with XP.

Member Avatar for razib8bd
-1
1K
Member Avatar for AmerJamil

Depends on the compiler you are using. If you are using Turbo C++ then you can't code the using namespace std: option because that compiler doesn't understand it. You have to use fstream.h with that compiler. If, on the otherhand, you are using one of the modern c++ compilers then …

Member Avatar for deceptikon
0
981
Member Avatar for TonyG_cyprus

My first real computer was a Zenith 100 with 16K ram and two 5 1/4" floppy drives, no hard drive, MS-DOS 1 operating system (folders were not supported then). We had a very fast 300 baud modem that took about 1 1/2 hours to send a 2k text file from …

Member Avatar for Reverend Jim
0
286
Member Avatar for thexile

Looks like it should work. Except you only need "%d" instead of "%03d" because internally integers don't have leading 0's like you see them printed out. If you want to print out the number then use "%03d"

Member Avatar for Ancient Dragon
0
252
Member Avatar for Ancient Dragon

I accidentally added a comment to Up vote before discovering that it should have been aa comment to Flag Bad Post comment. Now I can't delete the comment. Can you do that for me?

Member Avatar for deceptikon
0
413
Member Avatar for VernonDozier

I doubt you will ever find a perfect word list -- afterall even Websters dictionary contains foreign words, acronyms, abbreviations etc. Then there's the issue of whose version of English do you want to use? Oxford English, The Queen's English, American English, etc. Then what will you do with all …

Member Avatar for Saumil11
0
4K
Member Avatar for dendenny01

All you have to do is call time() function (see time.h) to get current computer system time and date. Then you could have the data stored in files with the filename of the date it was written (you would want to include time if time of day is important). For …

Member Avatar for dendenny01
0
294
Member Avatar for Decode098

is that in a loop of some sort? If it is, then just break out of the loop. How to detect a key press is a different matter. There is no standard C way to detect the press of a single key because standard c functions always require you to …

Member Avatar for dendenny01
0
201
Member Avatar for mical700

when you type ./rev < numbers you are redirecting the contents of numbers into rev program. That is not what rev is expecting. Leave out the < symbol, just `./rev numbers` (assuming numbers if the name of a text file) >Also I can't read a file one per line, and …

Member Avatar for mical700
0
369
Member Avatar for cupin06

Why did you put all those pointers into the structure? You could have saved yourself a great deal of trouble by not using pointers in the structure. Each structure instance should hold the data for only one ebook. Then you can have an array of structures. For example: struct ebook …

Member Avatar for Ancient Dragon
0
206
Member Avatar for happygeek

>American Football is like "Let's play a rough game, but we don't want to get hurt"... pansies. I'd say American men want to be able to produce babies after a football game :)

Member Avatar for diafol
1
1K
Member Avatar for poopoowei

re-read Stop 1 carefully, your reverse() function does not meet the stated specification. >The function should take an open input file stream That means the function referse() should have this prototype: `void reverse(ifstream& infile);` Next: Unless you were told otherwise by your teacher you should use std::string instead of charcter …

Member Avatar for poopoowei
0
340
Member Avatar for sadben.khan

why are you using stringstre3am? It's like hitting a nail with a slughammer. What is variable n for? Just use the loop counter i. if( line[i] == ' ') { break; } else { } that will give you only the first word in the line. What are you going …

Member Avatar for sadben.khan
0
226
Member Avatar for wids101

> i wrote "cout << "Item Cost: " << setw(8) << cost << setw(10) << setfill('=') << endl;" and the result is "Change Due: ======5" Impossible. If you write "item cost" how is that changed to "change due" ?? I think you misquoted something. It's best if you just copy …

Member Avatar for wids101
0
225
Member Avatar for Ritesh_4

Depends on the game. But if it is a game you bought that is on DVD then you probably have no choice other than to use the game's installation program. If it's a game you wrote then how you do it is up to you. Most games nowdays that are …

Member Avatar for Ancient Dragon
-3
160
Member Avatar for chocolatte.lavista
Member Avatar for triumphost

UNICODE only affects character strings, not bitmaps. For example, you need to convert the string literal "Hello World" by enclosing it in a macro _T("Hello World") (defined in tchar.h). You could also do it by putting capital L in front, such as `L"Hello World"`. Using the _T or _TEXT macro …

Member Avatar for Ancient Dragon
0
214
Member Avatar for AmrMohammed
Re: COUT

Standard out (STDOUT) and standard in (STDIN) are old C-language terms meaning the STDOUT = the terminal (screen) and STDIN meaning the keyboard. Most (but not all) operating systems allow you to redirect STDOUT and STDIN to/from a text file so that the data can be easily writen to a …

Member Avatar for deceptikon
0
187
Member Avatar for clouds_n_things

diet Pepsi. It's not good for your butt to be sitting for long hours stuffing your mouth with junk food.

Member Avatar for somjit{}
0
106
Member Avatar for silvercats

You mean more electricity to run the computer? No. You can only install a finite amount of ram in any computer. If you are running so many programs that you fill up all the ram then you have lots of other problems too.

Member Avatar for DoRight
0
195
Member Avatar for aily.ping

One problem is the loop on line 19. The first element of all arrays is numbered 0, not 1. So the loop should be like this: `for (count = 0; count < numMonth; count++) //Fill the array with values.` line 26 does not call a function, it is just declaring …

Member Avatar for Lerner
0
989
Member Avatar for Smeagel13

The End.