Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by abc ( 17 years ago )
#include <iostream>

using namespace std;

typedef struct lin_t {
  int length;
  int points[5][2];
} lin_t;

int datapoints[5][2] = {{0,1}, {1,10}, {2,100}, {3,1000}, {4,10000}};

int main(void) {

  lin_t lin_log;

  lin_log.points = &datapoints;
  lin_log.length = 5;

  cout << "Bla" << endl;
  cout << lin_log.points[1][1] << endl;
  return 0;
}

 

Revise this Paste

Your Name: Code Language: