User Name
|
otoom |
Unique Hits
|
4,920 |
Real Name
|
Ant |
Location
|
United Kingdom West Midlands |
Occupation
|
- - - |
Gender
|
Male |
Age
|
17 Years Old |
WebSite
|
a-sketch.blogspot.com |
|
|
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
 |
3 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
 |
4 Comments |
8.00 out of 10 |
|
|
|
Guessing Game
C++
|
1.78 Year Ago
|
5
|
7.00
|
- - -
|
1,941 Chrs
|
|
Guess the number within your 3 attempts ;)
Bug: Once you guess it, it still asks for another guess, will be fixed.
|
|
|
Even or Odd
C++
|
1.78 Year Ago
|
0
|
- - -
|
- - -
|
615 Chrs
|
|
Same as my Java!
|
|
|
Even or Odd
Java
|
1.82 Year Ago
|
1
|
8.00
|
- - -
|
684 Chrs
|
|
Checks if your number is even or odd!
|
|
Please login to post comments. |
|
Wow. Great memory!
That looks like a very promising tutorial. Thanks a lot. I owe you one :)
|
|
Thanks for the comment.
Yeah my site is really old and crap now, lol. I've been working on a better version for a while, but not got round to releasing it yet.
Cheers for looking though :)
|
|
well it's better than nothing, but you know that when googling them you also get some free results on tutorials
|
|
but you know what, you gave me a start, and now i want to find video tutorials for every other language that i wanna learn
|
|
man thatks for video tutorials, they are great
|
|
I'll be posting in the Forums mostly when I'm either On, not busy or bored.
Which ever 1 out of 3 I choose, it will most likely be everyday.
Thank you for the welcome!
-x2Fusion
|
|
Yep, I'm on here now. I just registered yesterday.
-x2Fusion
|
|
 |
Ant (17) United Kingdom, West Midlands |
|
otoom has 8 fans
become a fan |
|
 |
|
 |
|