New project visual C++

Hello every one,

I am new in C++ and I have a new project.
I have a text file with numbers that are coordinates x,y

The text files´s format looks like this:

X Y

234 678
343 356
193 235
and so on

Steps,

1.- Put all this file in a buffer memory (unsigned char inbuffer [2000],
2.- Display each two coordinates in two text box one for X and one for Y (I dont´t know how to do this)
3.- inbuffer [0] = outbuffer[0]
inbuffer [1] = outbuffer[1]
4.-increment inbuffer + 2 for next two coordinates
5.-Put this data in USB (Resolved)
6.-Microcontroller sends ready bit to receive more data (resolved)
7.-Repeat from step 2 until all data is sended.
I really appreciate a little code to do this.
Thanks and Regards
Carlos
Those sound like good steps.

You'll have to write the code yourself. If you're stuck we can help, but please don't ask for someone to provide the code for you.
Thanks for your reply,
I am modifyng a C++ program to do my job.
For now, I have created a unsigned short TXTBuffer [65000]
enough space to load coords.

I did some exercises changing data inside TXTbuffer, debbuging and seeing that changes.

Next step is load the text file in TXTBuffer, I don´t know how to do this, the must I can do is
load a file and display it in screen. :(
Just a little help I need. The rest I will see.
Thanks again.
Just need to load the correct points in the file into elements of an array.

Also, why not use dynamic memory?
Do you know how to read numbers from the file?

You're instructions say you should create a buffer os 2,000 elements and of type unsigned char, not unsigned short at 65,000 elements.
Topic archived. No new replies allowed.