Example #1
0
int main(){
    std::vector<std::vector<int>> grid;

    //opening file.
    std::ifstream nums;
    nums.open("grid.txt");
    std::string row;

	//Calling function, and pushing back into the vector
    while(std::getline(nums, row, '\n')){
        grid.push_back(split(row));
    }

    std::cout << Largest(grid);

}
Example #2
0
int main()

{
int	i,first,second;

printf("Enter a number: ");
scanf("%d",&first);
printf("Enter a second number: ");
scanf("%d",&second);
i=Largest(first,second);
if (i == 1)
  printf("First number is larger\n");
else if (i == 2)
  printf("Second number is larger\n");
else
  printf("Same number\n");
printf("%lf\n",SevenPointSeven());
HelloWorld();
HelloWorld();
}