We inlcude system headers with < and >. This should be #include <iostream>.

#include "fstream"

Same problem here. Use < and >.

int _tmain(int argc, _TCHAR* argv[])

This is not C++, and is only usable from Visual Studio. You should use int main() in this case instead.

fstream file;

It's better to use ofstream here instead.

file.open("NCopy.txt");

You didn't specify a mode (you don't need a mode if your using ofstream).

file << input();

You didn't declair input() yet! The compiler must see input() defined somewhere before you can use it. Your two option would be to define input before main(), or you can declair a prototype before main().

system("pause");

Don't do this. It's not portable at all (it only works on windows sometimes, usually does not work on other operating systems). Over top of that, it's not proper C++. I usually reccomend that you do not pause a program before closing it (only students who don't know how the command line works usually do this). But if you insist on pausing your program before exiting, use something like:

The problem here is void. Esentially void means that the function isn't going to return anything productive. Go back to this line: file << input();. The operator << is expecting something (presumably a string in this case), but your function doesn't return anything. You should either be returning a string or a char *.

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...