I have a basic questions. I have written a program in C++ and I would like to create a GUI for it. I have a book Microsoft Visual Basic C++.net that has a great tutorial, but its in clr/c++. Is it possible to program a GUI in this language in use it on a c++ code. I just want to know before I start and then find out it is not possible Thank You@

Member Avatar
Member Avatar
+0 forum 1

[CODE]#define _LL_BUFFSIZE_ 2048 string lastLine; lastLine.clear(); // regardless, zero out our return string char buff[_LL_BUFFSIZE_]; // our temporary input buffer data_filet.seekg (0, ios::end); // go to end of file int length = data_filet.tellg(); // find out how large it is data_filet.seekg(length-min(length,_LL_BUFFSIZE_),ios::beg); // seek back from end a short ways // read in each line of the file until we're done buff[0]=0; do{if (!isspace(buff[0]) && buff[0] != 0) lastLine = buff; } while (data_filet.getline(buff, _LL_BUFFSIZE_)); cout <<"last ="<< lastLine << endl;//Last line of t stored as cout << typeid(lastLine).name() << endl; [/CODE] I use this code to read the last line …

Member Avatar
Member Avatar
+0 forum 10

I am using getline to read a CSV file. The line it reads looks something like "1/24/2010 6:19 1/24/2010 6:59 Merrill - Valley Farms yhy 69 Vegetation 55" The getline works but, I need to be able to calculate time days between a date the user inputs and the date here. AKA the first few characters in the line. I have tried to use assign and store them to arrays, which works great expect for sometimes the month is 1 or it could be 10, 11 or 12 and then assign does not work correctly. I have also tried strchr …

Member Avatar
Member Avatar
+0 forum 1

I do not know if I should use a 2D or just two seperate arrays to make this easier. I have two arrays. One is just an array like {1,2,3,4...n} and the other has values that correspond to those and make pairs. I want to create an array that stores the slopes of the points. m[n/2] would have m[0] the slope from the first two points and m[1] has slopes from point 2-3 and so on. Basically making segments and taking the slopes of those segments. I have tried a few things [CODE]for (int i=0;i<n;i++) for (int j=0;j<n;j++) m[i]=((lnnum[j]-lnnum[j+1])/(lnt[j]-lnt[j+1])); j=j+2;[/CODE] …

Member Avatar
Member Avatar
+0 forum 1

int arr[]={4,5,6,8,1,6,4,7,1,2}; and I want and array to equal the ln of those values in an array? I dont why I am having so much trouble with this. Thanks!

Member Avatar
Member Avatar
+0 forum 7

The End.