Forum » Programiranje » Program - igračka [DOS]
Program - igračka [DOS]
c0dehunter ::
Zanima me, s katerim programom bi bilo najbolje narediti nekaj takega, in kakšna je koda?
1. Rad bi, da tole napiše v DOS programu, ko ga zaženem - Sending file.......... (seveda ne bi pošiljalo fajla, samo napisalo bi, pikice pa bi se prikazovale ena za drugo, kot da bi lovdalo).
2. Rad bi, da bi potem napisalo - End transmission? Yes No ( in če bi dal yes, bi šlo ven iz programa, če pa no, bi pa ostalo not)
Prosim za pomoč!
Hvala
1. Rad bi, da tole napiše v DOS programu, ko ga zaženem - Sending file.......... (seveda ne bi pošiljalo fajla, samo napisalo bi, pikice pa bi se prikazovale ena za drugo, kot da bi lovdalo).
2. Rad bi, da bi potem napisalo - End transmission? Yes No ( in če bi dal yes, bi šlo ven iz programa, če pa no, bi pa ostalo not)
Prosim za pomoč!
Hvala
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
- spremenilo: c0dehunter ()
c0dehunter ::
Neki se učim. Imam pa spet problem. Downloadal sem Dev-C++. Pa napišem tole :
Pa dam Execute->Compile, mi ne pokaže nobenih napak, potem pa dam Execute->Run, pa mi napiše Source file not compiled.
??
/* program*/ #include <stdio.h> #include <iostream> int main(void) { printf("Pozdravljen!\n"); printf("Kako si kaj?\n"); system("PAUSE"); return 0; }
Pa dam Execute->Compile, mi ne pokaže nobenih napak, potem pa dam Execute->Run, pa mi napiše Source file not compiled.
??
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
snow ::
F9 - compile and run, pa zadeva lepo dela v dev-c++
drugače ko daš execute - compile, bi se moralo eno okno "compile progress" pokazat.
drugače ko daš execute - compile, bi se moralo eno okno "compile progress" pokazat.
Random mutation plus nonrandom cumulative natural selection - Richard Dawkins
snow ::
#include <iostream> #include "windows.h" int main() { std::cout<<"sending file."; for(int i=0;i<10;i++) { Sleep(100); //pavza 100 ms std::cout<<"."; } std::cout<<std::endl; system("PAUSE"); return 0; }
Random mutation plus nonrandom cumulative natural selection - Richard Dawkins
c0dehunter ::
Ko pritisnem f9, ali pa Execute > Compile, je takole:
Potem pa se nič ne odpre. Če dam po tistem Execute > Run, je takole:
Vem, čudno.
Potem pa se nič ne odpre. Če dam po tistem Execute > Run, je takole:
Vem, čudno.
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
Tutankhamun ::
Mogoče zato ker je tvojmu fajlu ime LOL.cpp .
Sej nism nikol uporablu dev c++, ampak mogoče, tm k ti odpre okn, kva bi prevedu, najd svoj fajl, pa poglej če bo kej drgač, sam ugibam .
Sej nism nikol uporablu dev c++, ampak mogoče, tm k ti odpre okn, kva bi prevedu, najd svoj fajl, pa poglej če bo kej drgač, sam ugibam .
AMD Phenom QUAD 9950 Black Edition, 8GB
c0dehunter ::
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
c0dehunter ::
Tale Dev c++ suck. Če sploh ne doda GNU make al kaj je tist za kompajlat, pol to sploh ni celoten program in ga ne moreš uporablat. blah
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
NoUse4AName ::
Si instaliral dev-c++ z prevajalnikov mingw zraven? Če si in ne dela inštaliraj še msys
c0dehunter ::
Bom poskusil msys. Hvala.
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
c0dehunter ::
Sem poskusil tale msys. Nič ni drugače. Ali mi lahko da kdo direkt link do Dev cpp, ki bo delal, in bo imel vključen compiler?
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
snow ::
http://forums.livingwithstyle.com/t127277-programming-c++-101.html
Tukaj: http://forums.devshed.com/archive/t-229244/I-have-been-learning-from-the-Bloodshed-Dev-C-help-file
pa pravi en: YAY! I uninstalled it and deleted dev cpp with the dev cpp maintenance tool, and then fully redownloaded it and reinstalled it; everything is in order and working fine, no errors or anything! Thanks for all the help everyone!
Tukaj: http://forums.devshed.com/archive/t-229244/I-have-been-learning-from-the-Bloodshed-Dev-C-help-file
pa pravi en: YAY! I uninstalled it and deleted dev cpp with the dev cpp maintenance tool, and then fully redownloaded it and reinstalled it; everything is in order and working fine, no errors or anything! Thanks for all the help everyone!
Random mutation plus nonrandom cumulative natural selection - Richard Dawkins
c0dehunter ::
Preberi celo temo, poglej slike. Videl boš, da ti pove program že ob koncu instalacije, da v Bin manjka GNU make, compiler. Sem pogledal not, notri je datoteka rm, ki zgleda kot compiler, ampak zgleda da jo program "ne vidi". Verjetno kak bug.
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
snow ::
mingw32-make.exe je v mojem bin direktoriju od dev-cpp
download:
Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2
download:
Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2
Random mutation plus nonrandom cumulative natural selection - Richard Dawkins
c0dehunter ::
Najlepša hvala, snow. Napačno verzijo sem downloadal. Rešil si vse moje težave Sedaj se lahko spravim k programiranju.
Hvala
Hvala
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
c0dehunter ::
Imam še samo eno vprašanje - kako narediš znak < in > v Dev cpp? Alt Gr+, ali . ne deluje.
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
snow ::
Ta dva znaka jaz povsod pišem z ono tipko levo od predsledka. Tudi v dev-cpp.
Random mutation plus nonrandom cumulative natural selection - Richard Dawkins
c0dehunter ::
Aha, hvala. Kakšna je koda, da bi se predvajal preprost zvok iz zvočnika na računlaniku v škatli?
I do not agree with what you have to say,
but I'll defend to the death your right to say it.
but I'll defend to the death your right to say it.
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | Dev C++ ne zažene .exe datotekeOddelek: Programiranje | 2458 (2117) | eric_cartman |
» | c grafikaOddelek: Programiranje | 998 (743) | aaaaa93 |
» | Prikaz programa v windowsihOddelek: Programiranje | 1263 (1181) | s51as |
» | [C] čuden izpis iz txt dat. na zaslonOddelek: Programiranje | 1665 (1402) | l0g1t3ch |
» | Pomnilnik in c++Oddelek: Programiranje | 2146 (1855) | Gundolf |