Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,420 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,983 people online right now. Registration is fast and FREE... Join Now!




header file

 
Reply to this topicStart new topic

header file, learning how to set up a coordinate system in c++

ash_b087
14 Jan, 2008 - 07:32 AM
Post #1

New D.I.C Head
*

Joined: 9 Jan, 2008
Posts: 14


My Contributions
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
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.gif
User is offlineProfile CardPM
+Quote Post

Bench
RE: Header File
14 Jan, 2008 - 09:52 AM
Post #2

D.I.C Addict
Group Icon

Joined: 20 Aug, 2007
Posts: 630



Thanked: 16 times
Dream Kudos: 150
Expert In: C/C++

My Contributions
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
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 04:17AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month