....
C/C++:
I haven't seen C++ in a while,but surely cout over printf
....
C/C++:
I haven't seen C++ in a while,but surely cout over printf
In C++ cout is faster then printf. You could actually create a benchmark and measure a diffrence, but in C there is no cout, so when writing code that can be used in C and C++ you have to use printf.
Also @b10fu3l: very well done
Python: print("Hello, world!")
JavaScript: console.log("Hello, world!");
Java:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
C/C++:
#include <stdio.h>
int main() {
printf("Hello, world!");
return 0;
}
Swift: print("Hello, world!")
Let me know if you want me to write Hello World in other languages! Also, you're meant to use the word "to" instead of "too", but I'm being a little picky, aren't I?
Danke, dass du das gelesen hast! (Thanks for reading this!)
Gut gemacht! Nun lerne, wie man die Fibonacci-sequenz programmiert (well done, champerino! Now learn to code a fibonacci sequence)
....
C/C++:
I haven't seen C++ in a while,but surely cout over printf
Yes, but I can't remember off the top of my head which include it is... shame
Python: print("Hello, world!")
JavaScript: console.log("Hello, world!");
Java:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
C/C++:
#include <stdio.h>
int main() {
printf("Hello, world!");
return 0;
}
Swift: print("Hello, world!")
Let me know if you want me to write Hello World in other languages! Also, you're meant to use the word "to" instead of "too", but I'm being a little picky, aren't I?
Danke, dass du das gelesen hast! (Thanks for reading this!)
Gut gemacht! Nun lerne, wie man die Fibonacci-sequenz programmiert (well done, champerino! Now learn to code a fibonacci sequence)
Python:
def fib(n):
if n < 2: return n
res = 1
for i in range(n):
res *= i + 1
ffmpeg can make video out of gif (that is already an option), so what's wrong with that?
Just personal preference...