never use your email address like that. Spambots pick it up and will spam you.Quote:
Originally Posted by ahluka
do:
ahluka_lt "at" hotmail "dot" com
-Kyle
Printable View
never use your email address like that. Spambots pick it up and will spam you.Quote:
Originally Posted by ahluka
do:
ahluka_lt "at" hotmail "dot" com
-Kyle
I never thought of that. It's ok I get enough variations of spam in there anyway so a bit more won't hurt.
To [email protected]: Fr33 v!4gRa N0w! :rolleyes:
I'm SURE I'm gonna regret doing this, but... :)
jafet .^. at .:. vixle .!. Dotcom
I can tell you, I haven't even started Windows GUI yet! You need to be patient, and work on things you're capable of. Even the most senior programmers here (or anywhere else) aren't perfect, and still make mistakes, and don't know how to make a Doom IV clone. I'm talking about 20+ years programming experience here. So don't be too quick on the draw either.
1Quote:
Originally Posted by jafet
I think it's probably best you take Salem's advice regarding an interpreted language.
What do you thinks looks easier to learn:
This is BASIC
This is CCode:10 print "Hello welcome to programming in BASIC"
20 print"What is your name?"
30 INPUT A$
40 HELLO A$
50 END
60 RUN
This is C++Code:#include <stdio.h>
int main()
{
char name[15];
printf("Hello welcome to programming in C);
printf("What is your name ");
scanf("%s", &name);
printf("Hello %s", name);
getchar();
return 0;
}
BASIC is very easy to learn, C and C++ take more time - pick what language suits yourCode:#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
cout << "Hello, welcome to Programming in C++" << endl;
cout << "What is your name? ";
cin >> name;
cout << "Hello " << name << endl;
cin.ignore();
getchar();
return 0;
}
needs more
I hope that mistake in the C program was intentional.
And I don't mean the missing " either ;)
Is the mistake by any chance the getchar() ?
You used name without initialising it, scanf and printf are evil. I'm one of those people who know they are but not too sure why - someone else will fill it in. I'm sure.
I thought getchar(); needed some other include file.
No idea I never use it.
Ak, you coming on msn?
Code:#include <stdio.h>
int main()
{
char name[15];
puts("Hello welcome to programming in C");
puts("What is your name ?");
fgets(name, 15, stdin);
printf("Hello %s", name);
getchar();
return 0;
}
;):D
:cool:Code:#include <stdio.h>
int main()
{
char name[15] = {0};
puts("Hello welcome to programming in C");
puts("What is your name ?");
fgets(name, 15, stdin);
printf("Hello %s", name);
getchar();
return 0;
}
Code:#include <stdio.h>
int main()
{
char name[15];
puts("Hello welcome to programming in C");
puts("What is your name ?");
fgets(name, 15, stdin);
printf("Hello %s", name);
getchar();
return 0;
}
;):D
Let's just agree to disagree.