I do not need anything too complex, I just need to be able to graph and plot some simple 2D graphs. There is a lot of scattered info all over the internet and at work I dont want to download one of these free softwares and have it blow up my computer. Any Advice? Free and not free graphing software?? Thanks!

Member Avatar
Member Avatar
+0 forum 2

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 have read many different threads about how it is not possible to delete values from an array, but I need to find some way to do this. I am making a program that involves a bottom up approach algorithm where it pairs off data segments, finds the best segments to merge and then merges them. I have it telling me which segments it should merge but then to merge them I need to be able to go in a remove certain values from that array. I can find them by the index or actual value I suppose. ex [CODE] …

Member Avatar
Member Avatar
+0 forum 10

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

[CODE] int main() { double t[]={15.70, 29.39, 41.14, 56.47, 75.61, 98.83 ,112.42, 125.61, 129.39, 133.45,138.94, 141.41, 143.67, 144.63, 144.95, 145.16, 146.25, 146.70, 147.26 , 148.15, 152.40}; int n = sizeof (t)/sizeof (t[0]); FindLN(t, n); return 0; } void FindLN(double t[], int n) { int index; double lnt[n]; for (index=0; index<n; index++) { lnt[index]=log(t[index]); lnnum[index]=log(num[index]); } } [/CODE] I get a few errors but Im quite certain they are all related Errors expected constant expression at double lnt[n]; cannot allocate array size 0 and lnt unknown size at this line HELP Please

Member Avatar
Member Avatar
+0 forum 4

[CODE]int number=0, subtranslines=50; string term[]={"Jordan"}; //string term="Jordan"; string voltage= "69"; string line; size_t found; while (! data_file.eof() && getline(data_file,line).good() ) { //cout<<line<<'\n'; for (int i=0; i <=subtranslines; i++){ if( (found=line.find ("term[i]",0)) !=string::npos && (found=line.find (voltage,0)) !=string::npos) { number++; cout<<line<<'\n'; out_file<<line<<endl; }}} //To find the number of outages and subtract the header cout<<"number = "<<number<<'\n'; [/CODE] The code works when I do not try to pass term[i] and just use term. What I am trying to do is read in a file, search for a word, if the row contains that word write it to a file and keep searching until …

Member Avatar
Member Avatar
+0 forum 14

I am just having trouble with the beginning stages here. I am just very confused on different syntax terms. I have a book here "Microsoft Visual C++.net" with all the installation and whatnot with it. It doesnt use the normal cin and cout but used Console::WriteLine and what not. Is this still considered c++ or it another form or type? Does it matter at the beginning when I open a file if I go to console application or something else? It seems to be very closely realted but different in some other ways, like using the find function does not …

Member Avatar
Member Avatar
+0 forum 3

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

I have a function that takes an array, calculates the ln of that array into another array called lnt. I would like to pass lnt back to the main. I know it has something to do with int *foo or something but I cannot seem to get a code to work. [CODE]// This is the main project file for VC++ application project // generated using an Application Wizard. #include "stdafx.h" #include <math.h> #using <mscorlib.dll> using namespace System::IO; using namespace System; const int n=10; //function declaration int** FindLN(double t[n]); int _tmain() { String* path = "DailyReport(2).csv"; String* MRVF= "Merrill - Valley …

Member Avatar
Member Avatar
+0 forum 6

I have a CSV with a large number of rows and 7 columns. I get the data from another source and it is labeled as say Column 1 is first name, 2 is last, 3 is age, 4 is gender, 5 is city. I need to be able to scan through to column 2 and if their last name is smith then take that row and remove it and write it to another file where all the smiths will be put. Thanks! C++ by the way

Member Avatar
Member Avatar
+0 forum 1

The End.