Feb 26, 2008 General C Programming; fstream in devc. Fstream in devc. I've read all the fstream tutorials, and none of the code works in devc 4.9.9.2. For example here is a function I'm working on. #include #include 'files.h' /. files.h has getbinpath. Jun 27, 2010 In ISO C standard headers do not have a.h extension, and those libraries inherited from C loose the.h extension and are prepended with 'c'. Moreover all standard library symbols are moved to the std:: namespace in C, so ideally the header files you should be using in this case are and iostream.
C++ Include Iostream
- #include <unistd.h>
- #include <stdio.h>
- char str[20];
- int index =0;
- int konst;
- float sum =0;
- int sumzbir =0;
- int brojnik =0;
- cin>> str;
- for(int i =0;i<=s.size();i++)// izdvojiti operacije od izraza
- if(ispunct(str[i]))
- b[z]= str[i];// spaseno kao ascii
- g[z]= b[z];// prebacivanje vrjednosti iz ascii u + i -
- }
- char* pa =strtok(str,'+-/*');// da svaki broj zapise u zaseban niz
- while(pa !=NULL&& index <200){//tokeniziranje
- index++;
- }
- for(int i =0;i <= brojnik;i++){
- }
- if(g[i]'-'){
- }
- case'*':
- sum = a[i]*a[i+1];
- }
- sum = a[i]*a[i+1];
- }
- sum = a[i]*a[i+1];
- }
- case'/':
- sum = a[i]/a[i+1];
- }
- sum =-a[i]/a[i+1];
- }else{
- a[i+1]= sum;
- break;
- for(int i =0; i <= brojnik; i++){
- a[i+1]=-a[i+1];
- switch(g[i]){
- if(g[i+1]'*'|| g[i+1]'/'|| g[i-1]'*'|| g[i-1]'/'){
- sum = a[i]+a[i+g[brojnik]];
- if(i>0){
- cout<< endsum << endl;
- }
- if(g[i+1]!='*'&& g[i+1]!='/'&& g[i-1]!='*'&& g[i-1]!='/'){
- c[i+1]= sum;
- case'-':
- if(g[i+1]'*'|| g[i+1]'/'|| g[i-1]'*'|| g[i-1]'/'){
- sum = a[i]-a[i+g[brojnik]];
- if(i>0){
- cout<< endsum << endl;
- if(i0){
- cout<< endsum << endl;
- }
- if(g[i+1]!='*'&& g[i+1]!='/'&& g[i-1]!='*'&& g[i-1]!='/'){
- c[i+1]= sum;
- break;
- if(ibrojnik){
- }
- cout<< sum << endl;