Wednesday, September 28, 2016
Friday, September 23, 2016
bad idea
delete your channel
The 8800 GTX was released in November 2006, and supports the DirectX 10 API. During its release, it was the single most powerful GPU NVidia has ever made at the time. Capable of outperforming the Radeon HD 2900 XT, the 7950 GX2, and TWO X1950s, the 8800 was no slouch. Now, more than 9 years after it's initial launch, it's still capable of running some AAA titles at reasonable framerates, which got me thinking: if it can run DX9/10 games well, could I daisy chain 3 of them together and Force WARP DX11 and get reasonable performance in other AAA titles? I would need a pretty hefty setup to support 3 8800 GTX cards, but I think it might just be possible. We'll see...Thursday, September 22, 2016
Getting good at: C++ | #6 - If-Else Statements
6 - wake me up inside
How's it going everyone? No Chin here, and today we're going to talk about If-Else statements. Basically, an If-Else statement is a lot like a real world If Else statement. Something like: If something is true, then do something. Otherwise, don't do anything.Unlike the other objects we used, the If statement uses its own set of curly-braces and parameters. Here's an example:
int main()
{
int x;
cin >> x;
if(x==1)
{
cout << "WHy" << endl;
}
return 0;
}
The parameters have to be set to something with the If statement, so in this case, we told the If statement that x has to be equal to 1 in order for it to output something, and if x is not equal to 1, it can't output anything. However, we can still get it to output something even if x is not equal to 1, and that's where the Else statement comes in. Unlike the If statement, the Else statement doesn't require its own parameters. It's basically just a continuation of the If statement. For example:
int main()
{
int x;
cin >> x;
if(x==1)
{
cout << "topkek" << endl;
}
else
{
cout << "get off my computer" << endl;
}
return 0;
}
Note that the "==" is intentional. One equal sign sets a variable, and two means that something is equal to another thing.
Now let's go back to our password program. Last time, we excluded the if-else statement, so the string could be set to anything and it would output the same result. Let's try it with the If-Else Statement:
int main()
{
string harambe;
cin >> harambe;
if (harambe=="harambe")
{
cout << "f" << endl;
}
else
{
cout << "get off my computer" << endl;
}
return 0;
}
You should see something like this if you got the password right (Top is password, bottom is output):
And something like this if you got the password wrong:
Keep in mind, this is a very basic password program so it has no method of keeping your personal documents safe.
That's all I have for now. Until then...
Wednesday, September 21, 2016
Personal Post #3
Personal Post #3
So two days ago, I got some cool stuff. And you know I love cool stuff. I got not one, but TWO graphics cards. For free.
Getting good at: C++ | #5 - Strings
Stuff you don't care about
This blog has breached 100 views already. If it got that many views in the time it existed, you better believe I'm gonna shamelessly promote my channel.5 - Bad Password Program
So today, we're going to be writing a program that takes advantage of strings. In case you don't know what a string is, it's basically an object, and with all objects comes classes. This particular object comes from the class <string>. How you would implement this class is by typing #include <string>. In fact, that's how you implement most classes, but more on that later. For now, let's write a terrible password program. To start, create your string, and set it to what you want. For example:
{
string harambe;
}
Then use cin >> to allow the user to input the string, so in this case, 'harambe':
{
string harambe;
cin >> harambe;
}
{
string harambe;
cin >> harambe;
cout << "sub to control alt defeat" << endl;
return 0;
}
After you compile it, you should see something like this:
Note that the top (harambe) is our input, and the bottom (f) is our output. Keep in mind this is a terrible password program, because you can type whatever you want and you'll get the exact same result, as shown here:
In case you're wondering, I used \n to space the input and output so it would be easier to explain.
I'll show you how to change that in the next post. Until then...
Monday, September 19, 2016
Personal Post #2
Roight into the neeewwwwwssss
So I've been using Windows 10 for the past 12 and a half months now, and let me just tell you: It's the most unfinished operating system I've seen in a long time. Performance issues, 3-5 hr battery life, problems interacting with hardware, Cortana, etc. And get this: A license of Windows 10 (With NO office suite/application bundle) costs $50-70. If you don't think that's bad, a standard install of Ubuntu (With a full office suite, compatible with Word/Excel/PowerPoint) costs...you know what? I'll let you guess...
Go ahead, I can wait.
Did you guess it? $130-$150? Nope. It's free. Yep. Office suite and all. Furthermore, it comes with drivers compatible with AMD/NVidia/Intel graphics cards. With the correct version of OpenGL. I kid you not. Do you think Microsoft provides these drivers out of the box. Nope. If you think you can get away with not installing any graphics drivers on your PC, Microsoft isn't gonna have it. You're stuck with OpenGL 1.1. Shoutout to anyone who remembers that from 1997. Also, the .iso for Ubuntu is significantly smaller than the Windows .iso. But back to the drivers; I understand that the drivers on Linux are freeware, and incompatible with NT (Win 2000/XP/7/8/8.1/10), but it's something I personally can't stand. Anyway, if you want the .iso for Ubuntu, click here. To use it, burn it to a flash drive. Imaging software includes: Rufus, UNetbootin, Universal USB Installer, etc. If you prefer your installer on optical discs, you can use ImgBurn. If you want to retain your copy of Windows and run it, select "Run Ubuntu from this CD/USB", or Install Ubuntu alongside Windows Boot Manager (Assuming you're running Windows 10). If you use software compiled for Windows, press Ctrl+Alt+T, type
sudo dpkg --add-architecture i386
This will enable 32-bit architecture on a 64-bit system. Then, add the repository:
sudo add-apt-repository ppa:wine/wine-builds
Then update the packages:
sudo apt-get update
Then install:
sudo apt-get install --install-recommends winehq-devel
For the in-depth guide, click here. This method should work for Debian as well.
That's all I've got. Subscribe to Control Alt Defeat. Until then...
Friday, September 16, 2016
Getting good at: C++ | #4 - User-defined variables.
4 - Typing in stuff and outputting a result
ello blazers NFKRZ ere and today we're going to cover User-defined variables. So you guys know about cout << which outputs text or variables on the screen. What you guys don't know is that there's a way to INPUT text, with cin >>. Now, this doesn't mean you can just do this:int main()
{
cin >> "top kek m8";
return 0;
}
Don't be lazy. If you're gonna input text, include a string. I'll cover that in the next post. For now, I'm gonna show you how to make a basic user-defined variable. So you want to make a variable:
{
int a;
cin >> a;
}
Now, we're going to use cin to input what the variable will equal:
{
int a;
cin >> a;
return 0;
}
Now, let's output the variable:
{
int a;
cin >> a;
cout << a;
return 0;
}
And you should see something like this:
Note that the '69' on the top is our input, and our '69' at the bottom is our output, meaning we set the variable to '69', and we made it output '69' on the screen with cout. That's all for today. Until next time...
Wednesday, September 7, 2016
Personal Post #1
The Title
Yes, I know. It's the most unoriginal and boring title you've ever seen. No, I'm not gonna change it. At least not for a while. The title follows a general theme that's unrelated to the C++ series, and that's why it works. Okay? Cool, thanks.The Post
Just got to address something, I haven't posted a third post about the programming series. I'm actually almost done, so I'll most likely post it after this post goes live. One of the reasons I haven't finished it yet is because, get this, I was literally drawing a bunch of Steven Universe fanart over the weekend. I kid you not. Aside from that, my power supply on my main PC died. Probably because either the motherboard drew too much power, or my PSU didn't supply enough power to the motherboard. Or my PSU just sucks. Speaking of my main PC, I really need to get a new GPU and PSU. I'm going to get the GTX 1060 and an EVGA 400/430w PSU (Non-Modular), but I bet none of you really care so...
Nothing too important is going on, really. When I get my main PC fixed up, I'll be uploading a LOT more content. So that's about it. until next time...
Nothing too important is going on, really. When I get my main PC fixed up, I'll be uploading a LOT more content. So that's about it. until next time...
Subscribe to:
Posts (Atom)