C++ Pomoc

poruka: 2
|
čitano: 581
|
moderatori: XXX-Man, vincimus
1
+/- sve poruke
ravni prikaz
starije poruke gore
12 godina
neaktivan
offline
C++ Pomoc

Ljudi pokusao sam napraviti prvu skriptu u c++ i ibaci mi neki error ...  Error je kod iostreama , no such file or directory

 

/* localtime example */
#include <stdio.h>      /* puts, printf */
#include <time.h>       /* time_t, struct tm, time, localtime */
#include <string.h>
#include <iostream.h>


using namespace std;

int main ()
{
  time_t rawtime;
  struct tm * timeinfo;

  time (&rawtime);
  timeinfo = localtime (&rawtime);
  printf ("Current local time and date: %s", asctime(timeinfo));

  string input;
  cout << "Do you want know time ?" << endl;
  cin >> input;
  if(input == Yes)
  {
     printf ("Current local time and date: %s", asctime(timeinfo));
  }

  else if(input == No)
  {
    cout << "For time type Yes" << endl;
  }
  system ("pause");
 return 0;
  }




Moj PC  
0 0 hvala 0
15 godina
neaktivan
offline
Re: C++ Pomoc

koristi iostream umjesto iostream.h

 

C++ headeri iz standardne biblioteke nemaju ekstenziju

To understand what recursion is, you must first understand recursion.
1
Nova poruka
E-mail:
Lozinka:
 
vrh stranice