No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Instead of entering text to console, I want to use the text from a text file and use this function and method to do a concordance count of words and how many times they appear in the text file. check line 137 #include "stdafx.h" #include<stdio.h> #include<stdlib.h> #include<string.h> #include<conio.h> #include<ctype.h> #include … |
|
Here is a function to print my binary search node tree, void printtree(struct node *tree) { if (tree!=NULL) { printtree(tree->left); printf("%s %d\n",tree->word, tree->lineNumber); printtree(tree->right); } } How would I save what I print to a text file??????? |
|
**Why is it that when i use ctime to capture the time I am getting this error: time_t now = time(0);// convert now to string form char* dt = ctime(&now); cout << "The local date and time is: " << dt << endl; error C4996: 'ctime': This function or variable … |
|
Help in a loop to reloop and convert the prices and prices2 of those houses in the array to a double??????? [code]for (int i=0;getline(file,(house[i]),',');i++) { getline(file, cars[i], ','); getline(file, price[i], ',') ; getline(file, price2[i]); if(input == house[i]) { for(int i=0; ) ?????<<<<<<<<<<<<<<--Help here. } [/code] |