Posts
 
Reputation
Joined
Last Seen
Ranked #2
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.84M 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
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
9
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
92
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
52K
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
309
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
941
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
544
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