![]() |
![]() |
|||
|
||||
|
|||||||
| Register | Forum Rules | FAQ | Search | Today's Posts | Mark Forums Read |
| Welcome Guest Visitor! Please Register, It's Free and Fun To Participate! | |
|
The EXTREME Overclocking Forums are a place for people to learn how to overclock and tweak their PC's components like the CPU, memory (RAM), or video card in order to gain the maximum performance out of their system. There are lots of discussions about new processors, graphics cards, cooling products, power supplies, cases, and so much more!
You are currently viewing our boards as a "guest" which gives you limited access to view most discussions. You need to register before you can post: click the register link to proceed. Before you register, please read the forum rules. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own pictures, and access many other special features. Registration is fast, simple, and absolutely free! To start viewing messages, select the forum that you want to visit from the selection below. After you have registered and read the forum rules, you can check out the FAQ for more information on using the forum. We hope you enjoy your stay here! Note To Spammers: We do not allow unsolicited advertising! Spam is usually reported & deleted within minutes of it being posted, so don't waste your time (or ours)! |
|
| Please Register to Post a Reply |
|
|
Thread Tools |
|
|
#21 | ||||
|
Rawker Kitteh
Moderator
|
|
||||
|
|
|
|
#22 | ||||
|
Getting back into it!
Senior Member
|
I am still learning C at the minute but hope to move onto C++ in the next few months!
I am currently using MS Visual C++ 6. Can this be used to create a GUI and would it be worth my while upgarding to the latest version? Cheers |
||||
|
|
|
|
#23 | ||||
|
Rawker Kitteh
Moderator
|
Quote:
MSVC++ has a resource editor, you should be able to make guis with it, but you also have to learn to program for it. look at the source for my chat program (link in sig) for an example of DIALOG BOX programming, which is different from creating a window. making a window and a dialog box can both be done all in code, but it's easier to make the dialog boxes w/ vc++s editor. if you're just makin a window it's easier to just use code. |
||||
|
|
|
|
#24 | ||||
|
Getting back into it!
Senior Member
|
I can't find the resource editor in my version of msc++ 6.
Do you know where i can locate it? |
||||
|
|
|
|
#25 | ||||
|
Rawker Kitteh
Moderator
|
after makin a project you should be able to just do something like: Project->Add Resource...->Dialog->New
You can't use the resource editor unless you have some sort of resource to edit!
|
||||
|
|
|
|
#26 | ||||
|
Mad Warranty Voider
Retired Staff
|
I like Dev C++ for compiling/editing http://www.bloodshed.net/
|
||||
|
|
|
|
#27 | ||||
|
Rawker Kitteh
Moderator
|
yeah, devcpp is VERY nice, it's almost as robust as VC++, I'd recommend it to all the cheapskates out there as it's free
|
||||
|
|
|
|
#28 | ||||
|
Laptop Guru
Senior Member
|
DevC++ is da 1337!
However, REAL cheapskates get better "free" (eh heh heh heh...) software
|
||||
|
|
|
|
#29 | ||||
|
Rawker Kitteh
Moderator
|
Quote:
![]() I just got the WHOLE MS Visual Studio .net 2003 free. And it was legal, too. You believe that? No, really, it was! With the kind of money you pay for college, they practically owe it to ya! Virginia Tech has a bunch of stuff for DL by it's students and faculty, including every flavor of Windows (yes, even the latest (Build 4074, I believe) Longhorn beta ), full VS .net 2003 pro AND full VS .net 2005 beta (pro, not express), Norton Anti-Virus, and a hell of a lot more, all full versions.
|
||||
|
|
|
|
#30 | ||||
|
moo!
Senior Member
|
i just bought the "C++ for Dummies!"
awesome book.. cool tutorial dude i havent gotten to the "windows applications chapter" yet, how do i make text display on a Windows app... just normal text.. ya know? cout << "Moo?"; something like that? like i have DevC++ and it has a template and etc... |
||||
|
|
|
|
#31 | ||||
|
Rawker Kitteh
Moderator
|
I've finally updated the guide! It now has half of the section on loops, and a link to Dev-C++ near the beginning. Very good IDE, indeed.
Hey jeremy, there are a LOT of ways to output text in a windows application, you need to be more specific with what you intend to do with that text. then I can tell you the best way of going about outputting that text. k? feel free to pm, if you'd like.
|
||||
|
|
|
|
#32 | ||||
|
.
Senior Member
|
Jeremy, you have to make sure to type std:: before the cout<<
but, if you dont want to do that type using std::cout; after your opening bracket ({) in the beginning of the program example: Code:
#include <iostream>
int main()
{
using std::cout;
cout<<"Hello\n";
return 0;
}
thanks. |
||||
|
|
|
|
#33 | ||||
|
Rawker Kitteh
Moderator
|
Quote:
![]() if you have a dialog box and you want STATIC text all you have to do is make a static text control and type what you want displayed in the properties area. i've attached some screenies of what i did for the weaselchat version number and all that in the bottom left of 1.2 it's funny, I could really help you guys out but typing everything and makin screenshots is a pain in the *** i wish there was some way to show you in person...
|
||||
|
|
|
|
#34 | ||||
|
Rawker Kitteh
Moderator
|
Just updated the guide to address For loops in the loop section. Next will probably be a section on strings and arrays. Then perhaps info on declaring classes and structs... then maybe data structures... man, so many things to talk about
|
||||
|
|
|
|
#35 | ||||
|
Learning To Overclock
Senior Member
|
Pretty good "quick 'n dirty" intro to C++, CW.
Some suggestions you might consider incorporating... 1) Rather than explaining to the reader why they might have to change your first example from "void main() { ... }" to "int main() { ... return 0; }" for certain compiler implementations (specifically those that are strictly ANSI compliant by default), which may lead to confusion for some, how about you simply consider changing the initial example to "int main() { ... return 0; }". Then you can simply leave out the explanation altogether. After all, this is how the ANSI C++ Standard specifies main is to be declared regardless of its build / runtime environment. 2) This is very important. The "double" data type does NOT truncate any value in the variable to two decimal places. I'm sorry but I got a very big smile on my face when I read this sentence. For a 32-bit compiler, the biggest difference between a float and a double is the amount of memory space each type occupies. Specifically, a float is 4 bytes wide and a double is 8 bytes wide. A quick 'net search can find the range of values associated with each data type but you can imagine a double has a greater range than a float. 3) "if(iTotal > 7 || iTotal < 7)" is basically the same as "if(iTotal != 7)", right? I realize you were just trying to provide another example but I wanted to make a point (i.e. always tries to write clear, self-documenting code). 4) Also, parentheses are your friend. I would prefer to see someone write this line as follows: "if((iTotal > 7) || (iTotal < 7))". Heck, I would've written it this way. Why? Well, there are several reasons but the main one is probably the notion of operator precedence. I realize the topic of operator precedence is too "complex" to bring up at this point in your document but since your laying the groundwork I felt the use of too many parentheses is this particular statement might be better, IMHO. Just my two cents. Hope you find it useful. Joe |
||||
|
|
|
|
#36 | |||||
|
Rawker Kitteh
Moderator
|
Thanks for the input!
Quote:
![]() Quote:
Wonder what I was thinking...prolly some confusion between C++ and TI-89 Calc crap. Yeah, here's the official definitions of Float, Double, and Long Double (which I will edit into the guide):Float - 4 Bytes - 3.4e + / - 38 (7 digits) Double - 8 Bytes - 1.7e + / - 308 (15 digits) Long Double - 10 Bytes - 1.2e + / - 4932 (19 digits) Quote:
![]() Quote:
Quote:
|
|||||
|
|
|
|
#37 | ||||
|
Rawker Kitteh
Moderator
|
Ok I have made the changes mentioned in the above post, look good now, Joe?
I'm also trying to put together a good section on arrays/strings, so look for that in the future. Maybe a little farther into the future, cause I'm movin' out to college tommorrow! Here comes Heaven AND Hell, all rolled into one...
|
||||
|
|
|
|
#38 | ||||
|
MC Number Cruncher
Senior Member
|
hey, when are we gunna get into structs, classes, inheritence and possibly the coolest things ever : POINTERS!!!! ?
|
||||
|
|
|
|
#39 | ||||
|
Rawker Kitteh
Moderator
|
I've been pretty busy as of late with college and all, believe me, I'll update when I get a few hours free.
|
||||
|
|
|
|
#40 | ||||
|
Rawker Kitteh
Moderator
|
Mkay! Finally updated with info on strings and arrays. Next will be structs...
|
||||
|
|
|
|
| Please Register to Post a Reply |
| Thread Tools | |
|
|