User Name
|
otoom |
Unique Hits
|
4,912 |
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.77 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. |
|
Same here... got to wait for my hands to let me though. Stupid RSI. I just have it in my lower knuckles now. No longer in my forearms, biceps, triceps, neck, etc. So progress seems to be being made :-)
I will revive this site, i promise you ;-)
Kind regards,
Scott
|
|
Compiling the code to python byte code. (I use linux so this may be different in another environment. So you may have to google for python bytecode)::CODE=python -c "import py_compile; py_compile.compile('FILENAME.py')"
|
|
Sorry... meant 4 sections lol
|
|
I think there are 3 sections to programming... only when your good in all three can you really do amazing stuff.
1. Programming in general - such as learning different paradigms, design patters, how binary number system works, experiment with IDE's, etc
2. The language - such as php, c++, python - and learn the syntax and what it's capable of very well
3. Target market knowledge - as in how well you know your target users for w/e your creating. The more you know about it, the better your product will suit their needs (with exception to something for personal use only).
4. Your target platform - and again, learn it well such as if your in to web development, learn about javascript, xhtml, html, designing with both tables and divs, css, learn everything you can... along with finding as many open source aps etc. If your in to software dev, learn direct x, learn the windows API's, learn how linux works at the kernal level, etc
Kind regards,
Scott
|
|
Not been to bad thanks, g/f just got back from 2 weeks in florida, the recession is a
bit of a pain at the moment, but hopefully this new venture of ours should leverage
it to our advantage. Fingers crossed.
Installed Work Rave on my comp which is driving me nuts (30 second break every 3
mins, 10 min break every 30 mins).
I think this applies well to you:
"Practice should always be based upon a sound knowledge of theory" -
Leonardo Da Vinci
In the sense that because you didn't learn enough about programming, your
imagination has technical limitations.
Kind regards,
Scott
|
|
Hi Otoom,
How are you? I am actually in the process of doing a few things related to that. And in regards to the My Twitter application, I am in the middle of developing version 2.0 but due to some circumstances out of my control I have been unable over the past week or so to be able to work and finish up version 2.0. I am hoping over the course of the next two weeks I will have the free time to do that.
Thanks for the feedback!
|
|
Works solid on Vista x64, and this means it would work on x86 as well.
I will post that in the comments too!
|
|
Cool, I'll check it out and let you know.
|
|
 |
Ant (17) United Kingdom, West Midlands |
|
otoom has 8 fans
become a fan |
|
 |
|
 |
|