User Name
|
otoom |
Unique Hits
|
2,021 |
Real Name
|
Ant |
Location
|
United Kingdom West Midlands |
Occupation
|
- - - |
Gender
|
Male |
Age
|
14 Years Old |
WebSite
|
- - - |
|
|
Quick Threading Tutorial - C++
Programming
|
Threading In C++, By Otoom
Hello, I will show you how to thread in C++.
First you need to create the thread, so if we place this into our editor...
Okay, and that is the basic layout.
Now we have declared the thread, of course change Threadname to whatever you would like to call it.
What we can now do is, call on that thread within the main.
So if we add a little bit of code...
Okay, so, What have we done here?
What we have now done is call upon the thread we declared. Using a handle.
But after all this, i bet you think what can threads even do.
Okay well. Threads let you run something else while running main.
It is like a background running program but within the same application.
For example.
We can show the lyrics of a song, while making the beeps of it.
I hope you get that.
So... Now.
[code]DWORD WINAPI Beeps (LPVOID lpData)
{
while(1)
{
cout<<"\a";
}
}
int main()
{
HANDLE Beeps = CreateThread(NULL, 0, Beeps, NULL, 0 View In Full
 |
2 Comments |
6.00 out of 10 |
|
|
First look at C
Programming
|
First time with C, Otoom
DoxCoding.com
Components
------------------------
Code::Blocks
Windows
------------------------
Contents
------------------------
Who this is aimed at
A first look
Variables
Functions
------------------------
Who this is aimed at.
This, as it says, First time with C.
This does not need any prior knowledge of C, or as that happens any other programming language.
Do not be put off, if you have not programmed / coded in your life, as i will be trying my best on this one
to keep you happy, and knowing what you are doing every step.
Best of all. You must enjoy it, you must also practice each chapter as it goes. If you think you can pick it up
just by looking at it, it's a mistake. Many people have done that before, and found they do really have to practice.
So... threee rules, practice, practice and practice.
A first look.
Okay, well lets get started on this one. A first look will quickly take you through a quick few... View In Full
 |
2 Comments |
7.50 out of 10 |
|
|
Cheat Sheet Pack
Other
|
DoxCoding.com
Well, i have posted a cheat sheet in about every language board on the forums.
So.. I thought i would gather them together and make a sort of, Pack
I hope you guys enjoy this.
CSS
http://www.ilovejackdaniels.com/css_cheat_sheet.pdf
http://lesliefranke.com/files/reference/csscheatsheet.html
http://home.tampabay.rr.com/bmerkey/cheatsheet.htm
HTML
http://www.ilovejackdaniels.com/html-cheat-sheet.pdf
http://www.killersites.com/HTML_CODES/index.jsp
Javascript
http://www.ilovejackdaniels.com/javascript_cheat_sheet.pdf
PHP
http://www.ilovejackdaniels.com/php_cheat_sheet.pdf
Perl/CGI
http://juerd.nl/site.plp/perlcheat
http://www.catonmat.net/blog/wp-content/plugins/wp-downloadMonitor/user_uploads/perl.predefined.variables.pdf
ASP/VBScript
http://www.ilovejackdaniels.com/asp_cheat_sheet.pdf
C++
http://www.dreamincode.net/downloads/ref_sheets/cpp_reference_sheet.pdf
Delphi
http://www.explainth.at/downloads/dquick.pdf... View In Full
 |
3 Comments |
8.00 out of 10 |
|
|
|
SetWindowText
Assembly
|
43 Days Ago
|
0
|
- - -
|
- - -
|
453 Chrs
|
|
Change the text of a window title.
|
|
|
Count to 1 Million
Assembly
|
46 Days Ago
|
2
|
- - -
|
- - -
|
558 Chrs
|
|
Something simple to start, Count to 1million then show a msgbox.
|
|
|
LuckyNumbers
Delphi
|
63 Days Ago
|
0
|
- - -
|
Yes
|
1,949 Chrs
|
|
Randomize 3 numbers from 1-11. If Label1 to Label3 contain a 5 or 7 then you win.
Else you loose.
|
|
Please login to post comments. |
|
Yeah, I don't think he's into making those avatars anymore... bummer, really. Sorry if he's not willing to.
|
|
Hi - someone else (an online contact of mine) made it for me - his username is fixer48202, and he can view his contact info here - http://www.gruntsrus.com/profile.php?lookup=15 . If you do decide to ask him (and he accepts), tell John sent ya. :)
|
|
Indeed. That is the command you commented about previously.
|
|
I THINK I get it. Does the 'jl CntLoop' directly relate to the 'cmp' statement?
|
|
Hey, you got a new avatar?
It's quite cool... it looks "almost" 3D ;-)
Kind regards,
Scott
|
|
Thanks for the 253 bytes of delicious words on my Code Pin Board post. Each word I read was like one short burst of happiness after another, like lines of crack, but in literary form.
It is a rare person that I come across who doesn't have a list of reasons why they think that Ruby is the faddiest interpreted language that could ever have so much undeserved fame, and no real official logo, too. They religiously memorize this list in their basements while popping deep-fried pineapple slices and writing replacements for all their friends using whatever language they like which certainly isn't that crazy Ruby nonsense. They regurgitate this list on command, the command being, "You know, Ruby is a nice language to learn and you could really do some fairly useful and rather kinky things using Ruby."
Anybody that I meet who likes Ruby gets upgraded to the limited edition sparkly gold one in the box of crayons (with crayon sharpener) that is my collection of friends. The people who hate Ruby for definite, specific, justified reasons get to be sparkly silver. /b/tards who tell me "rUbee iz dum!1!1!!!11!!?!1" get broken in two or three pieces, dullened, and stripped of their label (not that the nondescript name of the color on there tells you anything about what color it's SUPPOSED to be, really), but still make their way into the box. I have no enemies.
You, however, not only have nice, specific reasons why you actually like Ruby, you are also a freemason of words and have an elegant and easy to remember username (it has three reoccurring letters, out of five total!). You, sir, are scented cherry!
|
|
Ay, what you on about?
Kind regards,
Scott
|
|
They were made in Bryce, haven't neen very active here lately :/
|
|
Yo,
Do You Have Some Sort Of IM Like Msn, Or Xfire ?
I Would Like To Chat To You.
Lol
Thanks-
|
|
 |
Ant (14) United Kingdom, West Midlands |
|
otoom has 8 fans
become a fan |
|
 |
|
 |
|