Teknoloji Haberleri
DH
forum
mini
Uygulama ile
aç
Uygulama ile Aç
Giriş
Kayıt
DH Anasayfa
İndirim Kodu
Ara
Popüler
Foruma Git
Hakkımızda
Destek
Mobil Sürüm
Standart Site Görünümü
Bağlan:
Facebook
Google+
Twitter
Kullanıcı Profili
W
@willyJS
Notlar
Er
10 Ekim 2022
Tarihinde Katıldı
Takip Ettikleri
0 üye
Görüntülenme (
?
)
9 (Bu ay: 0)
Takip Et
0
takipçi
Bildirim Aç
Ö.M.
Gönderiler
Hakkında
Tüm Gönderileri (1)
Sadece Konular (1)
Sadece Bağlantılar (0)
W
willyJS
Windows Phone ve Tabletler
altına konu açtı.
4 yıl
Özel Mesaj
Not Ekle
Cevapla
Şikayet
Mesaj Linkini Kopyala
Seçkin Yorumlar
Linkli Mesajlar
E-Posta Aboneliği
C++ kodum çıktı vermiyor
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;
}
Mesaj linki kopyalandı.
İşlem başarılı.
Bir sorun oluştu.
DH Mobil uygulaması ile devam edin.
Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin.
App Store'dan
İndirin
Google Play'den
İndirin
Gizle ve güncelleme çıkana kadar tekrar gösterme.
Hizmet kalitesi için çerezleri kullanabiliriz, DH'yi kullanırken depoladığımız çerezlerle ilgili
veri politikamıza
gözatın.
#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;
}