Suggestions for Name Generator

Reaction score
333
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.
 

duyen

New Member
Reaction score
214
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.
 
Reaction score
333

It is incredibly ugly and verbose, with a very limited feature set and also has some truly bizarre design flaws (Sub/Function distinction, lolwut).

You owe it to yourself to start using something different.

I know VBScript sucks but you can make pretty cool sh*t in VB.

Being able to make cool stuff with something doesn't mean that said thing doesn't suck.
 

Knight7770

Hippopotomonstrosesquiped aliophobia
Reaction score
187
#include <iostream>

int main()
{
std::cout << "Hello, world!";
}
You don't even need std::. Also, you should have 'using namespace std;' at the top, so it looks like this:
Code:
#include <iostream>
using namespace std;

int main()
{
[INDENT]cout<<"Hello, world!";[/INDENT]
}

Anyway, back to the topic: I still need more ideas for my name generator.
 

quraji

zap
Reaction score
144
You don't even need std::

Well, you don't if you declare the namespace at the top. Otherwise you have to add which namespace you're using an object from. You can declare your own namespaces, and declare the usage of namespaces inside functions and code blocks.

Code:
#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;
}

Will result in:
Code:
1
2
 
Reaction score
333
IMO "using namespace std;" is bad practice. It is explained well here.

Alternative:

Code:
#include <iostream>
using std::cout;

int main() {
  cout << "Hello, world!";
  return 0;
}
 

Knight7770

Hippopotomonstrosesquiped aliophobia
Reaction score
187
Anyway, why don't we get back on-topic?

P.S. I added an orc name-generator.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top