All pastes #35071 Raw Edit

KasperTech

public cpp v1 · immutable
#35071 ·published 2005-12-28 17:39 UTC
rendered paste body
// header.h:const int SIZE =20;int nConv;char *pHeltal;char *pBuffer;---------------// athaserminzkat.cpp#include<iostream>#include "header.h"using namespace std;int main( ){       nConv   = 0;      pHeltal = new char[SIZE];     pBuffer = new char[SIZE];       cout<<"Indtast et heltal"<<endl;     cin>>pBuffer;     nConv = atoi(pBuffer);     nConv *=nConv;     itoa(nConv,pHeltal,10);     cout<<pHeltal<<endl;     delete [] pHeltal;     delete [] pBuffer;     system("PAUSE");  return 0;}