Cheesy
some fucker
- Reaction score
- 95
I'm learning C++ ATM, it's a tricky language.
It is a curious phenomenon - VB represents the creation of something that sucks so hard that the original designers would surely be too embarrassed to release it under any but the most extraordinary circumstances. I can only guess at the evil motives behind VBs release and continuing development.
How so?
I know VBScript sucks but you can make pretty cool sh*t in VB.
You don't even need std::. Also, you should have 'using namespace std;' at the top, so it looks like this:#include <iostream>
int main()
{
std::cout << "Hello, world!";
}
#include <iostream>
using namespace std;
int main()
{
[INDENT]cout<<"Hello, world!";[/INDENT]
}
You don't even need std::
#include <iostream>
namespace a
{
int i = 1;
}
namespace b
{
int i = 2;
}
int main () {
using namespace a;
{
using namespace std;
cout << i << endl;
}
std::cout << b::i << endl;
}
1
2