Şimdi Ara

C++ kodum çıktı vermiyor

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
2 Misafir - 2 Masaüstü
5 sn
2
Cevap
0
Favori
186
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • Aşağıdaki C++ kodum çıktı vermiyor :


    #include<iostream>

    #include<string.h>

    #include<clocale>

    #include<ConsoleColor.h>

    #include<fstream>

    #include<windows.h>

    #include<conio.h>


    using namespace std;


    void info(){

    }


    int main() {

    setlocale(LC_ALL,"turkish");

    string* file=new string;

    string txt;

    string* appen=new string;

    string* newtxt=new string;

    char* oldchr=new char;

    char* chr=new char;

    long int* c=new long int;

    short int* h=new short int;

    cout<<green<<" Paketlenecek dosya : "<<yellow;

    cin>>*file;

    cout<<green<<"\n Uzantısı : "<<yellow;

    cin>>*appen;

    Sleep(100);

    ifstream rfile(*file,ios::in);

    replace(*file,*appen,".fpck");

    ofstream wfile(*file,ios::app);

    Sleep(50);

    cout<<white<<endl;

    if(rfile.is_open()){

    if(wfile.is_open()){

    while(!rfile.eof()){

    rfile>>txt;

    }

    Sleep(10*13);

    while(true){

    if(*c==txt.length()){

    break;

    }

    else{

    *oldchr=txt[*c];

    *chr=txt[*c+1];

    if(*chr==*oldchr){

    ++*h;

    }

    else{

    if(h!=0){

    *newtxt+=to_string(*h)+"*"+*chr;

    *h=0;

    }

    }

    }

    ++*c;

    }

    }

    else{

    cerr<<red<<"\nERROR : "<<yellow<<"0xWF\n";

    }

    }

    else{

    cerr<<red<<"\nERROR : "<<yellow<<"0xRF\n";

    }

    cout<<*newtxt<<endl;

    //delete h,c,newtxt,oldchr,chr,appen,file;

    cout<<blue<<"\n\n\t\tPAKETLEME İŞLEMİ TAMAMLANDI.."<<white;

    getch();

    return 0;

    }




    < Bu mesaj bu kişi tarafından değiştirildi willyJS -- 10 Ekim 2022; 23:41:40 >
    < Bu ileti mobil sürüm kullanılarak atıldı >







  • 
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.