I created my own print function but it isn't as good as the C function
I know this is stupid and pointless. But I'm testing playing around with functions. An C++ expert said the only way I'll learn is if I play around with the function(Silent Strike, Okie, and FLIKM). So whats wrong with my print function?
#include <iostream>
#include <stdio.h>
#include <conio.c>
int printf(const char *str);
void main()
{
printf("Hello World!!\n");
cin.get();
}
int printf(const char *str)
{
for (int i=0;i<str;i++, str++) {
putchar(*str);
putchar('\n'); }
return i;
}