I got a problem in writing this program
becoz I successfullly compiled the file
but I cannot run the program since there will be an error when I run it.
So I checked again... And there is only 1 warning left which was "fopen was declared deprecated" <--- maybe this is why I couldn't run the program successfullly?
I kinda noob in programming ... So I really need some help here
So Here I include my code here for anyone who can help me...
And thank you very much....
Expand|Select|Wrap|Line Numbers
- #include <iostream>
- #include <stdio.h>
- #include <stddef.h>
- #include <stdlib.h>
- #include <math.h>
- #include<malloc.h>
- #include<fstream>
- #include<string.h>
- #include<time.h>
- using namespace std;
- /* lots and lots and lots of code snipped */
- // Initialization of X, H, and G
- if (data = fopen(FileSave,"w")){
- // Begin - Students
- i=0;
- for(count1=0; count1<N; ++count1){
- for(count2=0; count2<N; ++count2){
- for(count3=0; count3<L; ++ count3){
- H0[count1][count2][count3] = randomco();
- H1[count1][count2][count3] = randomco();
- G0[count1][count2][count3] = randomco();
- G1[count1][count2][count3] = randomco();
- }
- }
- }
- for(int count1=0; count1<M; ++count1){
- X[count1] = randomco();
- }
- /* more code removed */
- int main()
- {
- MatrixFIR();
- }