Posts
 
Reputation
Joined
Last Seen
Ranked #495
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
54% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
2
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
6 Commented Posts
~77.5K People Reached
Favorite Tags

87 Posted Topics

Member Avatar for Good Bye

[QUOTE=Good Bye;595841]it'll take 6-12 months to make a simple bot in c++? wow.[/QUOTE] What, you think it's a slice of cake? :icon_rolleyes:

Member Avatar for Nihat_1
0
3K
Member Avatar for inkcoder

Yep. And experiment - if you have an idea you want to implement, start a new file and see if it works.

Member Avatar for Gabriel_9
1
49K
Member Avatar for DarckHalf

You can write sprite-based RPGs in Javascript, one guy even made a (slow) [url=http://www.nihilogic.dk/labs/chess/]3D chess game[/url] in JS. C++ is the preferred language for games, mainly for it's speed and efficiency.

Member Avatar for roax206
0
713
Member Avatar for goldeagle2005

[QUOTE=MidiMagic;450392]I mean your idea of automatically logging in to a website from a web page on click of a link is insecure. Google would not notice that as being an insecurity. It will find the page and list it. You can't have a "hidden" page on your website that only …

Member Avatar for schofield
0
2K
Member Avatar for Dark_Omen

Keep in mind you can still use .NET on Linux/Mac/Windows with [url=http://www.mono-project.com/Main_Page]Mono[/url]. ;)

Member Avatar for kvprajapati
-1
4K
Member Avatar for vedmack
Member Avatar for zoner7

When I first setup SDL I had to go through the includes and remove start_code.h / end_code.h from the includes. Bah.

Member Avatar for thriek
0
270
Member Avatar for angelsherin

Well, lose the CString. [code=c++] System::String value = "RegNo"; System::String key = "Dept"; System::String /* assuming */ getValue = ReturnValue(value, key);[/code]

Member Avatar for amit.mcanitw
0
184
Member Avatar for joshmo
Member Avatar for hacker9801

I was thinking about making an avatar system (like Gaia Online; I've tried befor but it's hard). Can anybody help me with one? I'm gonna make an open source site like Gaia... I can't do it by myself, though.

Member Avatar for jmvazq
0
611
Member Avatar for Syakoban

From what I read, he's probably looking for something like [url]http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm[/url]

Member Avatar for aformoftruth
0
331
Member Avatar for Dani

Like everyone else, I hate people that don't use code tags. Seriously, is it that hard?

Member Avatar for William Hemsworth
0
997
Member Avatar for aecsant

[code=c++]class Foo { public: void SubFoo() { cout << "something"; } }; int main() { Foo foo; foo.SubFoo(); }[/code] edit: read the other part :x you could do something like [code=c++]class F { public: F() { cout << "something" << endl; } } class Foo : public F { }[/code] …

Member Avatar for Prabakar
0
261
Member Avatar for TheBeast32

you want to read it? easy. *ahem* use an ifstream object on the file, read it into an event_info structure (like [icode]struct event_info { int something;string event;int x;int y; }[/icode]) and simulate the events (mouse_event for mup/mdown, SetCursorPos() for move) *walks away now*

Member Avatar for TheBeast32
0
344
Member Avatar for Shadoninja

system("start http://www.google.com"); or system("C:\\Program Files\\Mozilla Firefox\\firefox.exe");

Member Avatar for mengqing
0
116
Member Avatar for Alex Edwards

>And Java is powerful and so is Assembly. The point is Assembler and C++ are the most efficient, when written right. >You can create languages from most any language. They are just mechanisms to convert text instructions to machine code. But sometimes languages throw in useless ASM/binary code that makes …

Member Avatar for sciwizeh
0
293
Member Avatar for jack1234

you [icode]delete[] m_Contents;[/icode] since it was allocated onto the heap not str.

Member Avatar for ArkM
0
197
Member Avatar for CoolGamer48

Look at TinyXML or something, it's nicely done. now that makes me want to code an xml parser... perhaps with XPath support...

Member Avatar for dougy83
0
117
Member Avatar for chickenlord500

Use code tags and we might help. And you should really work on your code formatting. That looks terrible. ;)

Member Avatar for Sky Diploma
0
159
Member Avatar for Fasola
Member Avatar for hacker9801
0
1K
Member Avatar for linux0id

>change into: wrong. It's not constant because it has expressions that change. Thus you need dynamic memory (allocated with [icode]new[/icode]) or a type that's managed automatically (like Narue said, [icode]std::vector[/icode] for example). Right, Narue? *still needs to learn [i]alot[/i]*

Member Avatar for linux0id
0
145
Member Avatar for angelsherin

[url=http://msdn.microsoft.akadns.net/en-us/library/ms724895(VS.85).aspx]RegOpen()[/url], [url=http://msdn.microsoft.com/en-us/library/ms724923(VS.85).aspx]RegSetValueEx()[/url], [url=http://msdn.microsoft.com/en-us/library/ms724844(VS.85).aspx]RegCreateKeyEx()[/url], [url=http://msdn.microsoft.akadns.net/en-us/library/ms724837(VS.85).aspx]RegClose()[/url], etc. [url=http://msdn.microsoft.com/en-us/library/aa363634(VS.85).aspx]MS Example[/url]

Member Avatar for Ancient Dragon
0
98
Member Avatar for Black Magic

On Windows you can just put the website on the command line and it will open in the default browser, i.e. [icode]system("http://www.google.com");[/icode]

Member Avatar for Ancient Dragon
0
106
Member Avatar for balla4eva33

Post the error... >#ifndef MAIN_H >#define MAIN_H you put your #endif in main, it should go at the bottom of your header.

Member Avatar for CoolGamer48
0
154
Member Avatar for titaniumdecoy

I guess not - it still has garbage. Did this test. [code=c++]#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { int *nums = new int[10]; for(int i=0;i<10;++i) cout << i << ": " << nums[i] << endl; delete [] nums; system("PAUSE"); return EXIT_SUCCESS; } [/code] but …

Member Avatar for Narue
0
106
Member Avatar for The Dude
Member Avatar for CoolGamer48

And that's why you must use binary mode for FTP when transferring files from *nix to windows/mac/dos, otherwise the binary data will be corrupted by CRLFs. (and I will never understand that. :))

Member Avatar for hacker9801
0
452
Member Avatar for chetan1989
Member Avatar for FTProtocol
Member Avatar for hacker9801
0
214
Member Avatar for anuizath2007

... you're not going to finish it unless someone does it for you. but nobody will.

Member Avatar for anuizath2007
0
292
Member Avatar for jcollins85

Yeah, STL is the better way to go for C++. Also, use [icode]delete[] pointername; [/icode] instead of just delete.

Member Avatar for hacker9801
0
115
Member Avatar for hacker9801

Hey. What's better, i++ or ++i? Well ++i returns the value after it's incremented, but which is faster? (not necessarily for int, user-defined types with operator++ overloaded too.)

Member Avatar for hacker9801
0
115
Member Avatar for chetan1989

If you're using PHP, see [url="http://www.php.net/manual/en/function.shell-exec.php"]shell_exec()[/url].

Member Avatar for chetan1989
0
81
Member Avatar for camthalion95

Oh lord, people wanting us to help with CS bots... no, you do your own work. Actually learn something.

Member Avatar for hacker9801
0
208
Member Avatar for LaurenceB

I know Pyton and I'm bored, so here (done in 5 minutes, so...): [code=c++] #include <cstdlib> #include <iostream> #include <ctime> using namespace std; int main(int argc, char *argv[]) { srand(time(NULL)); int arand[3]; for(int i=0;i<4;++i) arand[i] = rand()%30; cout << "Enter 4 numbers between 0 and 30." << endl; for(int i=0;i<4;++i) …

Member Avatar for hacker9801
0
181
Member Avatar for GGAB

why the while loop? can't you just do something like [code=c++] for(int i=0;i<10;++i) { strArray[i] = ReceiveFromPipe(); } [/code] ?

Member Avatar for GGAB
0
143
Member Avatar for mengqing

well split() by default removes all whitespace/newlines, so pass it a specific delimiter, i.e. [code=python]string = "Hello,\nWorld" print string.split(",")[/code]

Member Avatar for bvdet
0
107
Member Avatar for waldchr
Member Avatar for awi123

Yes, you can, but you can't use [icode]using namespace std;[/icode], i.e., [code=c++]#include <string> std::string str = "whatever"; class string { public: std::string str; }; string q;[/code] I think :P

Member Avatar for Ancient Dragon
0
86
Member Avatar for thehype2049

well, you'd want to change your print function [code=c++]void print() { cout <<"hello, my major is " << major; cout << ", and my GPA is " << gpa << endl; }[/code] and, to set it, whenever you make your object you can do something like: [code=c++]Student x; x.major = …

Member Avatar for thehype2049
0
90
Member Avatar for salman213

Well it's better to learn a multi-platform GUI library than Win32 functions. For example, [URL="http://trolltech.com/products/qt/"]Qt[/URL], [URL="http://www.gtk.org/"]GTK+[/URL] and [URL="http://www.wxwidgets.org/"]wxWidgets[/URL] all work on Windows and Linux, and I'm sure Mac too. I hate Qt though, had a hard time with it. :P

Member Avatar for Narue
0
576
Member Avatar for hacker9801

If you use the new operator on a class, say [code=c++]class dummy { public: string f; }; int main(int argc, char *argv[]) { dummy *p = new dummy; return 0; }[/code] do you have to use the delete operator on [icode]p[/icode]? (since, apparently, it utilizes new.)

Member Avatar for hacker9801
0
92
Member Avatar for ze-m!nd

[QUOTE=jephthah;607919]um, trying to exploit Google page rankings is a significant problem even for experts.. as a "beginner", you'll be better served trying to program a Sudoku game or something... but, if you're really intent on trying to hack some websites, most SkriptKiddi3Z prefer Perl for this sort of task... .[/QUOTE] …

Member Avatar for jephthah
0
117
Member Avatar for Maxil

[QUOTE=Nemoticchigga;607825]#pragma once is the better way of doing it. ifdef, endif are outdated.[/QUOTE] not at all. :) [icode]#pragma once[/icode] is only supported by a few compilers. #ifndef, #define and #endif are supported by all compilers. :)

Member Avatar for hacker9801
0
148
Member Avatar for omarelmasry
Member Avatar for omarelmasry
0
144
Member Avatar for HugoRocha

... num1 is already of [b]int[/b] type, you WOULDN'T be able to enter a character anyway.

Member Avatar for HugoRocha
0
102
Member Avatar for spaceboy

Wow, I noticed it got hacked too. And yet the admins don't post any threads.... shame shame shame... I think your passwords are safe.

Member Avatar for thunderstorm98
0
168
Member Avatar for hacker9801

I know the & operator means address-of, but what's it do when in a function prototype? Example: [code=c++]void foo(std::string& str)[/code] or [code=c++]void foo(char& c)[/code] what's the & for in that?

Member Avatar for VernonDozier
0
107
Member Avatar for shotjase

is grid an array chars? [code=c++]cout << (grid[r][c] == '1') ? '1' : '*' << ' ';[/code] or [code=c++]if(grid[r][c] == '0') cout << '*'; else cout << '1';[/code]

Member Avatar for shotjase
0
82
Member Avatar for Lotus_2011

strrev is deprecated (OLD OLD [b]OLD[/b]) use [code=c++]int num = 5; // number char buffer[1000]; // this is where the integer is converted to itoa(num, buffer, 10);[/code]

Member Avatar for Colin Mac
0
144

The End.