printf("\t------> S <------\n");
printf("\t------> t <------\n");
printf("\t------> e <------\n");
printf("\t------> f <------\n");
printf("\t------> a <------\n");
printf("\t------> n <------\n");
system("pause");
printf("\t------> L <------\n");
printf("\t------> o <------\n");
printf("\t------> v <------\n");
printf("\t------> e <------\n");
system("pause");
printf("\t------> Y <------\n");
printf("\t------> O <------\n");
printf("\t------> U <------\n");
system("pause");
printf("\t------> C <------\n");
printf("\t------> a <------\n");
printf("\t------> r <------\n");
printf("\t------> o <------\n");
printf("\t------> l <------\n");
printf("\t------> i <------\n");
printf("\t------> n <------\n");
printf("\t------> a <------\n");
Visar inlägg med etikett Programmerings Övningar. Visa alla inlägg
Visar inlägg med etikett Programmerings Övningar. Visa alla inlägg
fredag 16 september 2016
Liten övning i programmering som får systemet att skriva ut lite saker :)
#include <stdio.h>
#include <stdlib.h>
int main()
{
// Liten introdution till övningen vi fick
printf("\t------> What diffrent commands do? <------\n");
system("pause");
// Listar mappar/filer
printf("\t ------> Dir list files <------\n");
system("dir");
system("pause");
// Gör så man kan se macadressen
printf("\t ------> How to check your mac adress? Thats easy just type getmac <------\n");
system("getmac");
system("pause");
// Listar filerna i den mapp du är inne i ex c:
printf("\t ------> List files and folders, Just type tree <------\n");
system("tree");
system("pause");
// Öppnar ge utökad information om ditt system
printf("\t ------> Why not get som information about your system? Just type systeminfo and wait <------\n");
system("systeminfo");
system("pause");
// Öppnar kontrollpanelen
printf("\t ------> Why not just open the control panel? <------ \n");
system("appwiz.cpl");
system("pause");
// Öppnar notepad
printf("\t ------> Why not just open notepad? <------ \n");
system("notepad");
system("pause");
return 0;
}
#include <stdlib.h>
int main()
{
// Liten introdution till övningen vi fick
printf("\t------> What diffrent commands do? <------\n");
system("pause");
// Listar mappar/filer
printf("\t ------> Dir list files <------\n");
system("dir");
system("pause");
// Gör så man kan se macadressen
printf("\t ------> How to check your mac adress? Thats easy just type getmac <------\n");
system("getmac");
system("pause");
// Listar filerna i den mapp du är inne i ex c:
printf("\t ------> List files and folders, Just type tree <------\n");
system("tree");
system("pause");
// Öppnar ge utökad information om ditt system
printf("\t ------> Why not get som information about your system? Just type systeminfo and wait <------\n");
system("systeminfo");
system("pause");
// Öppnar kontrollpanelen
printf("\t ------> Why not just open the control panel? <------ \n");
system("appwiz.cpl");
system("pause");
// Öppnar notepad
printf("\t ------> Why not just open notepad? <------ \n");
system("notepad");
system("pause");
return 0;
}
Prenumerera på:
Inlägg (Atom)
