Posts
 
Reputation
Joined
Last Seen
Ranked #3
Strength to Increase Rep
+16
Strength to Decrease Rep
-4
86% Quality Score
Upvotes Received
3K
Posts with Upvotes
3K
Upvoting Members
997
Downvotes Received
824
Posts with Downvotes
750
Downvoting Members
159
1K Commented Posts
~6.92M People Reached
About Me

Diablo III game player

PC Specs
Windows 8, 4 gig ram, 921 gig hard drive, 4 tb external hard drives.
Favorite Tags

15,300 Posted Topics

Member Avatar for vegaseat

I was wrong only once in my life -- I thought I was wrong but I was wrong. -- Unknown

Member Avatar for Reverend Jim
15
13K
Member Avatar for Reverend Jim

>A while back a cop near here chased a perp on the highway, reaching about 180 km/h (100mph) before giving up, she got fired the next day for reckless endangerment of the public A couple years ago a cop was speeding down the interstate at 120+ MPH struck a car …

Member Avatar for Reverend Jim
10
3K
Member Avatar for zidan

The ones you see on TV are not programs that are running on a computer. They are embedded programs that are burned onto [URL="http://en.wikipedia.org/wiki/Programmable_read-only_memory"]PROMs[/URL] which are then physically attached to the hardware box on the wall then wires go from that box to the door which unlock it.

Member Avatar for trueframe
0
94
Member Avatar for samaru

josh --> vinod --> christna --> keep it more pleasant, stop the name calling/nation bashing. This is a public board which is read by everyone and some people think your comments are offensive. If you want to get involved in that sort of talk then please use PM or send …

Member Avatar for Salem
2
53K
Member Avatar for moderate_rock48
Member Avatar for Duki
Member Avatar for shanaka95

They are all violent -- do something useful with your life instead of wasting it on stupid games.

Member Avatar for Andrew_107
0
310
Member Avatar for cambalinho

You need to instantiate a public or static brush so that the colors don't disappear as soon as that function ends.

Member Avatar for pmmarc
0
3K
Member Avatar for gil.nickson

Looks like all you have to do is call printf() instead of cout, replace cin with scanf(), change class to struct, and change the methods that are in the class to global functions. You may have to add a parameter or two to the functions in order to make that …

Member Avatar for f200196
1
39K
Member Avatar for bdl365

you don't need two nested loops, just one will do that counts backwards from 's' to 1. Inside the loop you just need to print the value of the loop counter and 'X' as well as calculate the factorial of s.

Member Avatar for Muhammad_331
0
2K
Member Avatar for 3cats

That warning means that std::string.size() returns an unsigned int, so line 29 is comparing an int to an unsigned int. The work around is to declare variable i as size_t, not int (assuming your compiler defines size_t as unsigned int). [icode]for( size_t i = 0; i < /* blabla */[/icode]. …

Member Avatar for Mahim_1
0
2K
Member Avatar for mc8888

Ok, here's some help [code=cplusplus] class SavingAccount { // put class objects and methods here } [/code]

Member Avatar for Zain_12
0
6K
Member Avatar for Devid Billa

kurianjoseph seemed to have offered a new suggestion two weeks ago. I'm a rookie at it too and I think I'll take his advice.

Member Avatar for ivy.inc.Hugh
-2
2K
Member Avatar for linux
Member Avatar for LastMitch

Hunger Games -- a chick flick, pretty slow at first but action picks up about half way through. If I ignore the first half of the movie I'd give it 3 out of 4 stars, but overall it only gets 2 stars.

Member Avatar for LoanHensley
6
6K
Member Avatar for cambalinho

line 23: failed to allocate memory for the null string terminator. Lines 37 and 39: remove +1 from Text.Length().

Member Avatar for Mendoza,
1
4K
Member Avatar for logicslab

[QUOTE=glenn_boy13]I can do graphics in Dev- C++. I am using Dev-C++. :). Just follow the instructions carefully and do not forget to put linkers. You can't do a graphics by making a new source file. You need to do a new project to put linkers.[/QUOTE] Yes, but you are not …

Member Avatar for James_163
2
27K
Member Avatar for ssharp77

line 37: never use eof() because it doesn't work the way you think it does. You can easily read words one word at a time and ignore all white space by using the stream's >> operator a combination of stringstream and fstream's >> operator should complete your program. stringstream is …

Member Avatar for Dhushanthan
0
944
Member Avatar for Idestruction

line 26: you are not pushing enough things before calling printf(). The format string you are using calls for two integers. You need to push those two integers as well as the format string.

Member Avatar for John_310
0
23K
Member Avatar for Duki

>>It works, I just want to know if I'm answering the question correctly? If the program works ok, then yes you probably answered the problem correctly.

Member Avatar for Dani
1
5K
Member Avatar for TheNewKid

Have you looked at [this example Wordpad program](http://msdn.microsoft.com/en-us/library/vstudio/h9tcz8kb.aspx)? [Here](http://www.codeproject.com/Articles/9639/Text-Editor-in-C-using-CRichEditCtrl) is another example program that does printing.

Member Avatar for Greg_21
0
577
Member Avatar for harkw002_UniSA

The file is not in the current directory. If you are using MS-Windows then use Explorer to verify the location of the file and add the full path to the filename. [icode]infile.open ("c:\\MyFolder\\studentFileName.txt");[/icode]

Member Avatar for Sandy_9
0
11K
Member Avatar for gabby_1
Member Avatar for Khalil Cooper
0
2K
Member Avatar for gazoo

try this: [code] string s1 = "abdxyzdxyz"; string s2 = "xyz"; size_t pos; while( (pos = s1.find(s2)) != string::npos) { string s3 = s1.substr(0,pos); if( (pos+s2.length() + 1) < s1.length()) s3 += s1.substr(pos+s2.length()+1); s1 = s3; } [/code]

Member Avatar for Vishal_36
0
1K
Member Avatar for rodeostar04

[QUOTE=Sci@phy;696232]I don't think that <cmath> is in std namespace: [URL="http://www.cplusplus.com/reference/iostream/ios/clear.html"]Example with iostream (using namespace std;)[/URL] [URL="http://www.cplusplus.com/reference/clibrary/cmath/sqrt.html"]Example with cmath (doesn't have using...)[/URL] Maybe he declared another function named sqrt? Or a variable perhaps.[/QUOTE] You are right that the functions in cmath aren't in std namespace -- they are in global namespace. …

Member Avatar for N@sir
0
5K
Member Avatar for muhammadnasiri

I compiled your program with VC++ 2013 and only got one error, related to deprecated strcpy(). That error easily goes away by disabling error 4996 #pragma warning(disable: 4996) line 37: `strcpy(ls->name, "");` Why use strcpy() here? Just set the first character to 0. `ls->name[0] = '\0';` If this is supposed …

Member Avatar for J_7
0
22K
Member Avatar for bis student

>>and I have some error in my code ,and I cant correct them I just got new glasses the other day but I'm still having problems seeing the errors you get on your monitor. So would you post them here to make them easier to read ?

Member Avatar for Alia_2
0
3K
Member Avatar for monkey_boy_401

Assuming you mean MS-Windows, then maybe [URL="http://msdn2.microsoft.com/en-us/library/ms632589.aspx"]windows hooks[/URL]

Member Avatar for D_5
0
3K
Member Avatar for shawinke

Now that you posted the requirements of the program, what do you want from us? We will not write your program for you.

Member Avatar for rproffitt
-1
3K
Member Avatar for kww228

I would first put something at the end of the array to indicate there is no more data -- that way the program knows when it is done. The last byte in the array could be either another $ or binary 0, but anything except numeric digits could be used …

Member Avatar for hamzah_3
0
12K
Member Avatar for Reverend Jim

The world's longest living married couple are Karam and Kartari Chand, living in Bradford, UK. They have been married over 88 years! ([link](http://en.wikipedia.org/wiki/List_of_people_with_the_longest_marriages)) The only nation in the world to have a nonrectangular flag is Nepal ([link](http://en.wikipedia.org/wiki/Nepal)), located in the Himalayas and bordered to the north by the People's Republic …

Member Avatar for John_smith
10
21K
Member Avatar for xxunknown321
Member Avatar for jimmichaels29
0
1K
Member Avatar for mister-fett

>>this calculator won't work Then why did you bother to post that crap?

Member Avatar for Jawad_9
0
1K
Member Avatar for JwAlstrom

Have you opened the package yet? how long ago did you install it? Windows 8 is out now so I don't know if you can still get Windows 7. If you live in USA ask someone at Best Buy.

Member Avatar for rproffitt
0
1K
Member Avatar for kanebt

> What about european law that requires to delete all user data upon request? What about them??? DaniWeb is hosted in USA, not europe.

Member Avatar for Олег_9
3
3K
Member Avatar for DemonLady

[QUOTE=swarren74;412308]Hi! I also received this assignment, but was wondering if someone could help me fix my program (hopefully this constitutes "showing effort"). ![/QUOTE] Depends -- is this your work or did you plagarize it from some other source ? >> don't understand why it will work for relatively small numbers …

Member Avatar for Ajini
0
3K
Member Avatar for Rooro

That loop needs to check for al = 13H ( <Enter> key) to stop the loop. As coded now the loop will never stop. >> Mov bl,al Why do that? just use al for tests [code] cmp bl,'A' JGE Count CMP bl,'Z' JLE Count [/code] I think you have the …

Member Avatar for Ebru
0
7K
Member Avatar for LynnCarter62
Member Avatar for Dalek Caan

No -- but an interesting question. I would think it would require a total rewrite of the program, unless there exists some program that will attempt to make that conversion. IMO the most difficult problem would be report writers -- COBOL has an excellent report writer that would be difficult …

Member Avatar for Jim_9
0
1K
Member Avatar for shashank111
Member Avatar for pty
0
869
Member Avatar for mikeandike22

[QUOTE=aliNinteTySeven;887565]Have you made your own programming language yet? I'm doing a computing project for A2 coursework and creating your own language is one of the suggested options. Is yours stack-based? If you created your own how did you create it?[/QUOTE] This thread is over 5 years old -- I doubt …

Member Avatar for VEGETA_DTX
1
2K
Member Avatar for stackOverflow
Member Avatar for Densino

First, you need to use rand() ([click me](http://www.cplusplus.com/reference/cstdlib/rand/)) to generate random characters that can be used in passwords. Do this in a loop. Each time rand() is called check it's return value to find out what kind of character it returned (upper case, lower case, digit, or some other symbol) …

Member Avatar for Schol-R-LEA
0
6K
Member Avatar for iamsibi

put something, such as getchar(), at the end of main() to prevent the window from closing.

Member Avatar for Schol-R-LEA
0
8K
Member Avatar for Ancient Dragon

A cat has 9 lives -- what has more than 9 lives? Answer: Frogs because they croak every night. (Duck Dynasty)

Member Avatar for jkon
4
4K
Member Avatar for ggeoff

I have an Officejet 6500 on a home network that has Windows 7 Ultimate 64-bit, Windows 8, and a couple other Windows/Linux computers. I had no problems installing the device driver about a month ago. But I installed the HP Solution Center from [here](http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4063&lc=en&cc=us&dlc=en&sw_lang=&product=3301296#N197), not just the printer device driver. …

Member Avatar for rproffitt
0
1K
Member Avatar for theburg30

swapping two integers in assembly is a lot easier than the code you posted. This assumes 32-bit integers on Intel family of 32-bit/64-bit processors [code] mov esi,x_ptr mov eax,[esi] mov edi,y_ptr mov edx,[edi] mov [esi],edx mov [edi],eax [/code]

Member Avatar for mohamed_101
0
20K
Member Avatar for NicAx64

That error message means you compiled the program for UNICODE. You can do that, but you have to change strings to unicode strings. There are several ways to do it, but IMHO the best way is to use the _TEXT() macro, for example [icode]ofn.lpstrFilter = _TEXT("All\0*.*\0Text\0*.TXT\0");[/icode] Doing that the program …

Member Avatar for Y_2
0
19K
Member Avatar for SpectateSwamp
Member Avatar for jaskaran.nagra

If you are using a 32-bit compiler on either MS-Windows or *nix then forget those two functions because they are not implemented by any 32-bit/64-bit compiler. The operating system will not permit direct access to hardware or computer ports. You have to use normal operating system api functions. Those two …

Member Avatar for Wohlstand
0
4K

The End.