PDA

View Full Version : What 5hould I learn?



PublicAutopsy
03-26-2007, 12:55 AM
Ye55 the keyboard im u5ing doe5 have a broken key.

But anyway5, Im wondering what language I 5hould learn.
Not for any 5pecific purpo5e5 but what do you think i5 the be5t programing language ju5t over all?

MacGyver
03-26-2007, 01:32 AM
Engli5h. ;)

Salem
03-26-2007, 01:47 AM
Seems the 's' key was good enough to type your name, and compose your other post (http://cboard.cprogramming.com/showthread.php?t=87875)

http://www.catb.org/~esr/faqs/smart-questions.html#writewell

pianorain
03-26-2007, 07:18 AM
Not exactly a C# related question, is it?

Salem
03-26-2007, 12:52 PM
nope - moved.

Queatrix
03-26-2007, 07:04 PM
Even if you do have a broken key, buy a new keyboard! They arn't THAT expencive.

divineleft
03-28-2007, 06:22 PM
Seems the 's' key was good enough to type your name, and compose your other post (http://cboard.cprogramming.com/showthread.php?t=87875)

http://www.catb.org/~esr/faqs/smart-questions.html#writewell

there is copy and paste

but all in all, ownd.

p_k
03-29-2007, 03:16 AM
As u will be knowing their are many languages the language which we use depends upon applications . as if now .Net visual studio 2005 is the best language to be learnd as it is useful to almost all applications.


Ye55 the keyboard im u5ing doe5 have a broken key.

But anyway5, Im wondering what language I 5hould learn.
Not for any 5pecific purpo5e5 but what do you think i5 the be5t programing language ju5t over all?

pianorain
03-29-2007, 07:24 AM
as if now .Net visual studio 2005 is the best language...Visual Studio isn't a language; it's an IDE (http://en.wikipedia.org/wiki/Integrated_development_environment). Salem's link (http://www.catb.org/~esr/faqs/smart-questions.html#writewell) still applies.

twomers
03-29-2007, 11:40 AM
How do you expect to be able to program with a broken s and S?

SlyMaelstrom
03-29-2007, 12:23 PM
#include <io5tream>
#include <5tring>

int main() {
5td::5tring foo = "Hello World!";

5td::cout << foo;

return 0;
}

laserlight
03-29-2007, 01:06 PM
Very funny, 5lyMael5trom :)

KONI
03-29-2007, 01:12 PM
#define 5 s

Govtcheez
03-29-2007, 01:44 PM
How would you type the s?

SlyMaelstrom
03-29-2007, 01:57 PM
#define 5 s
Obviously considered, but it would be quite difficult to do without an s key to set the define. Instead, we would have to supply him with a little pre-preprocessor that replaces all instances of a set token with 's'
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>

int main(int argc, char* argv[]) {
std::string lineBuff, dataBuff;
std::ifstream inFile;
std::ofstream outFile;

if(argc != 3 || strlen(argv[2]) != 1) {
std::cerr << "Usage: " << argv[0] << " <data source> <token>";
return 1;
}

inFile.open(argv[1]);

while(inFile >> lineBuff)
dataBuff += lineBuff + '\n';

inFile.close();

while(dataBuff.find(argv[2]) != std::string::npos)
dataBuff[dataBuff.find(argv[2])] = 's';

outFile.open(argv[1]);

outFile << dataBuff;

outFile.close();

return 0;
}So who wants to compile this and upload it for the poor kid?

twomers
03-29-2007, 02:32 PM
No need!

#define 5 (char)0x63
#define 5 (char)0x53

There's a problem with capitalisation though ...

KONI
03-29-2007, 02:34 PM
No need!

#define 5 (char)0x63
#define 5 (char)0x53

There's a problem with capitalisation though ...

As well as with the number five itself:



#define REAL_FIVE 5;

SlyMaelstrom
03-29-2007, 02:37 PM
Sure, except... *deep breath*

5 is an illegal identifier and therefor cannot be used as a macro name, it wouldn't matter anyway as the identifier would be taken as a literal next to other characters (ex. <io5tream>), which wouldn't matter anyway since that would just replace with the literal definition giving you <io(char)0x63tream>.

twomers
03-29-2007, 02:38 PM
#define five (char)0x63
#define FIVE (char)0x53

#define REAL_FIVE 5;

You ruin all the parties, sly!

KONI
03-29-2007, 02:50 PM
\/\/|-|@7 4B0U7 7|-|3 3|\|71r3 L337 $P34|< \/0(4BUL4r'/?

SlyMaelstrom
03-29-2007, 03:04 PM
You ruin all the parties, sly!My dairy companion would disagree.

\/\/|-|@7 4B0U7 7|-|3 3|\|71r3 L337 $P34|< \/0(4BUL4r'/?Too many different dialects.

Queatrix
03-29-2007, 06:32 PM
Or he could ju5t u5e hi5 IDE5 find-and-replace form. Here PublicAutop5y, copy the following into your find-and-replace form in you'r IDE. (Acce55ed with CTRL-R)


s

Salem
03-30-2007, 01:19 AM
Copy and pa5te :p

vart
03-30-2007, 11:04 AM
there is a virtual keyboard in windows... I use it for \ and | symbols on my notebook, because this button is not working

indigo0086
03-30-2007, 01:05 PM
Here's a challenge before you start delving into the world of programming. Write 5 grammatically correct sentences that don't contain the letter 's'.

wiiire
04-03-2007, 06:26 AM
How do you expect to be able to program with a broken s and S?
hahahahaha

wiiire
04-03-2007, 06:27 AM
Not for any 5pecific purpo5e5 but what do you think i5 the be5t programing language ju5t over all?
Learn C.

:)

swgh
04-03-2007, 07:41 AM
There is no "best" language. The thing to do is choose the language that best fits the particular task you are doing. For example, you would choose Java Script over C++ if you were creating a web application or even XTML.

C++ is great for large apps like game development, and store systems ( databases ect )