Which is bigger?

Pages: 1234
C++ or Spanish?
I'm guessing Spanish is more abundant. But I'm ready to stand up for C++. I certainly think it's more important ;)
Do you mean in terms of memory consumption or number of amateur speakers? ;)
1
2
3
4
5
6
7
8
9
10
#incluye <iostream>
usando std::cout;

ent main()
  {
  para (ent n = 0; n < 10; n++)
    cout << "Por que no usar ambos juntos? :-)\n"; 
  devuelve 0;
  }
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
Why not use both together? :-)
    Hey, at least I made some effort to make it readable for English-speakers writers, so no grief now.
Shouldn't that be:
Hey, at least I made some effort to make it readable for English speakers writers readers, so no grief now.

Technically, yes. But if you know how to write, you also know how to read (and vice versa).
But if you know how to write, you also know how to read (and vice versa).


That's not quite true. I can read a good amount of Japanese that I can't write.
I guess then it would be safe to say it for languages
that use the latin alphabet, or if I erased 'vice versa'.
I meant what I said.

It is not uncommon for someone to be fluent on the net with a specific written language but unable to orally communicate with it.

As for the read/write stuff, it is easier to read than it is to write. This is because the brain is better at recognizing patterns than reproducing them.

:-)
As for the read/write stuff, it is easier to read than it is to write. This is because the brain is better at recognizing patterns than reproducing them.


Yep. So true...
Isn't it possible to -- though badly -- translate some of C++ with a load of #defines? Think I saw that somewhere. It might do more bad than good though.
Last edited on
GisleAune wrote:
Isn't it possible to -- though badly -- translate some of C++ with a load of #defines?


If you really wanted to, although I think your time would be better spent memorizing a few keywords and actually programming, not taking the time to #define every keyword into your own language.
^Good point. However, i wasn't really stating that it was a good idea.
If you can #define keywords in c++, technically that means that c++ is infinitely big.
wtf wrote:
If you can #define keywords in c++, technically that means that c++ is infinitely big.


Not necessarily, just because you give a keyword multiple substitutions doesn't mean that you added anything additional to the language. You can rename me or give me as many nicknames as you want, but I'm still 1 person:)
C++ or Spanish????

Well I like banana.

doesn't mean that you added anything additional to the language.


Doesn't have to.


You can rename me or give me as many nicknames as you want, but I'm still 1 person:)


Incorrect.
Assuming your name is ModShop, you are a person with 1 name.
If I were to nickname you John Smith, now you'd be a person with 2 different names.
Not the same as before.
ModShop wrote:
You can rename me or give me as many nicknames as you want, but I'm still 1 person:)
wtf wrote:
Incorrect.
Assuming your name is ModShop, you are a person with 1 name.
If I were to nickname you John Smith, now you'd be a person with 2 different names.


QED.

-Albatross
Last edited on
Well what makes a language "bigger"?

Is it the number of words?

To continue with wtf's example (and to play devil's advocate with Alby)

"A person with 1 name vs a person with 2 names" is akin to saying "a language with 1 word vs a language with 2 words".

Yes, by adding a new word you still only have 1 language. But that doesn't mean the language itself hasn't grown to become "bigger".
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
#include <string>
using namespace std;

const char* A = "C++";
const char* B = "Spanish";

int main()
  {
  cout << "Which is bigger, " << A << " or " << B << "?\n";
  cout << A << ( (A < B) ? " < "
               : (A > B) ? " > "
               :           " = " ) << B << endl;
  return 0;
  }
Pages: 1234