Intel_man
VIP Member
In some ways JavaScript is and isn't.
HTML combined with CSS is technically a programming language.
Well that's not really programming when it's two seperate things combining it together to create something.
In some ways JavaScript is and isn't.
HTML combined with CSS is technically a programming language.
Why not?
Programmers use multiple languages to get certain tasks done.
Python's pretty easy, and fast.I know some web stuff:
php
html
java script
css
I know some OS X stuff
apple script
shell
Unix/Linux (same as OS X for the most part)
shell
I want to teach myself ruby, python, and perl one of these days but that will have to wait until I get the time to learn it.
C/C++, Java, Perl, PHP, VB6, a bit of COBOL and a bit of RPGIV. If you want to count APIs OpenGL, DirectX and some Win32 stuff.
edit: don't know if SQL counts, PL/SQL as well.
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
size_t len = 0 ;
const char a[] = "c:/a/a.exe" ;
const char b[] = "d:/b/b.exe" ;
char buffer[BUFSIZ] = { '\0' } ;
FILE* in = fopen( a, "rb" ) ;
FILE* out = fopen( b, "wb" ) ;
if( in == NULL || out == NULL )
{
perror( "ERROR!" ) ;
in = out = 0 ;
}
else
{
while( (len = fread( buffer, BUFSIZ, 1, in)) > 0 )
{
fwrite( buffer, BUFSIZ, 1, out ) ;
}
fclose(in) ;
fclose(out) ;
if( remove(a) )
{
printf( "Success" ) ;
}
else
{
printf( "ERROR!" ) ;
}
}
return 0 ;
}
C/C++, Java, Perl, PHP, VB6, a bit of COBOL and a bit of RPGIV. If you want to count APIs OpenGL, DirectX and some Win32 stuff.
edit: don't know if SQL counts, PL/SQL as well.
That'll do it, but you'd have to change the filepath yourself.Code:#include <stdio.h> #include <stdlib.h> int main (void) { size_t len = 0 ; const char a[] = "c:/a/a.exe" ; const char b[] = "d:/b/b.exe" ; char buffer[BUFSIZ] = { '\0' } ; FILE* in = fopen( a, "rb" ) ; FILE* out = fopen( b, "wb" ) ; if( in == NULL || out == NULL ) { perror( "ERROR!" ) ; in = out = 0 ; } else { while( (len = fread( buffer, BUFSIZ, 1, in)) > 0 ) { fwrite( buffer, BUFSIZ, 1, out ) ; } fclose(in) ; fclose(out) ; if( remove(a) ) { printf( "Success" ) ; } else { printf( "ERROR!" ) ; } } return 0 ; }
EDIT: I didn't test this, BTW.
That's C++, and yeah, it'll give you an exe if you compile it.
Duuuuude....
Coooookies...
Niiiiiiice...
:]
Actually, that's C. Gimme the cookies!That's C++, and yeah, it'll give you an exe if you compile it.
Which are almost the same language so some programs would be the same in C or C++.Actually, that's C. Gimme the cookies!