What is the last value displayed when this code is run?
int *secret;
int j;
secret=new int[10];
secret [0]=[10];
Type: Posts; User: Codedecode
What is the last value displayed when this code is run?
int *secret;
int j;
secret=new int[10];
secret [0]=[10];
#include <iostream>
#include <iomanip>
#include<fstream>
using namespace std;
int func(int x, int y);
I have added a second argument. I'm still getting the same result. I'm missing something somewhere. Just not sure where.
I'm tring to write a recursive function that takes as a parameter a non-negative integer and generates the following pattern of stars if the integer is 4.
*
* *
* * *
* * * *
* * *
* *
*
Here is what I have for my complete code, so far. If I make my funtions const I get errors.
//location.h
class location
{
private:
int degrees;
I'm not sure how where or how to get the East/West, North/South into the code. I would also like to initialize the class to a specific location. Is this something that can be done?
This is what I have so far for the **.h file.
//location.h
class location
{
private:
int degrees;
I'm working with Visual C++ 2008 Express.
I am tring to write a class that defines location based on latitude & longitude. I want to include members for East/West, North/South, and all latitude and longitude. Also a function must be...