header file

learning how to set up a coordinate system in c++

Page 1 of 1

1 Replies - 1848 Views - Last Post: 14 January 2008 - 10:52 AM Rate Topic: -----

#1 ash_b087  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 09-January 08

header file

Posted 14 January 2008 - 08:32 AM

hi friends

i got a communication system assignment and i need to display graphs..
well am learning how to set up a coordinate system in c++ by myself... i got a book and i typed the example given... but the book uses "ccc.h" as a header file and my compiler doesnt recognise it..
is there another file which i should include?
btw i use visual c++...

here s the code
#define CCC_WIN
#include "ccc.h"


int main()
{
	cwin.coord(1, 33, 12, 11);
	cwin<<Point(1,11);
	cwin<<Point(2,13);
	cwin<<Point(3,16);
	cwin<<Point(4,20);
	cwin<<Point(5,25);
	cwin<<Point(6,31);
	cwin<<Point(7,33);
	cwin<<Point(8,32);
	cwin<<Point(9,29);
	cwin<<Point(10,23);
	cwin<<Point(11,16);
	cwin<<Point(12,12);

	return EXIT_SUCCESS;

}


thats exactly how it is in the book...
am going to search for other codings via the internet... just thought of u friends to be the first to obtain a response...

thx...
ash...

*1lacca: next time please use code tags: :code:

Is This A Good Question/Topic? 0
  • +

Replies To: header file

#2 Bench  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 856
  • View blog
  • Posts: 2,339
  • Joined: 20-August 07

Re: header file

Posted 14 January 2008 - 10:52 AM

I assume you have checked the book for information about where you might be able to get ahold of these libraries?

If the book instructs you to use 3rd party libraries without providing any means of getting those libraries, then I'd suggest getting a better book - Either one which comes equipped with the libraries you need, or one aimed specifically at your compiler, where the necessary libraries will already be available. A book which gives you examples that you cannot use, is next to useless.

You might try a google search for the book, perhaps the author(s) of the book have made them available somewhere
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1