How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Scott Your Own Question
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
Type Your Homework Question Here...
Scott is online now
A new question is answered every 9 seconds

I have a question in c++, beginner level, visual studio

Customer Question

i have a question in c++, beginner level
JA: What programs and versions are you using?
Customer: visual studio 2017
JA: What is your ideal outcome? How can we solve this for you?
Customer: i am working on a project and I am completely stuck and need some guidance on what I am doing wrong
JA: Anything else you want the programmer to know before I connect you?
Customer: no
Submitted: 1 month ago.
Category: Homework
Customer: replied 1 month ago.
include file for Caesar cipher code
//#ifndef CAESAR_H
#define CAESAR_H#include <string>class Caesar {private:
//pointers used to refer to the standard alphabet array and the Caesar shift array
char* std_alphabet;
char* c_alphabet;public:
// The constructor . . .
// create the two arrays with the c_alphabet array contents representing the std_alphabet
// characters shifted by a value of the shift parameter
Caesar(int shift = 0);// encrypt a message. Returns count of characters processed
// first string is message, second is encrypted string
int encrypt(const std::string& message, std::string& emessage);// decrypt a message. Returns count of characters processed
// first string is encrypted string, second is decrypted string
int decrypt(const std::string& message, std::string& dmessage);//delete any memory resources used by the class
~Caesar();}; // end of class . . .
Customer: replied 1 month ago.
ifndef CAESAR_C
#define CAESAR_C#include <string>
#include <iostream>
#include "Caesar.h"using namespace std;int shift, i, k;
char letter = 'a';Caesar::Caesar(const int n) {shift = n;
for (i = 0; i < 26; i++) {std_alphabet[i] = letter;
}for (i = 0; i < 26; i++) {cout << std_alphabet[i] << " ";
}cout << endl;for (i = 0; i < 26; i++) {k = (i + 5) % 26;
c_alphabet[i] = std_alphabet[k];
}for (i = 0; i < 26; i++) {cout << c_alphabet[i] << " ";
Customer: replied 1 month ago.
include <string>
#include <iostream>
#include "Caesar.h"int main() {Caesar test(5);cout << test;system("PAUSE");
return 0;
Customer: replied 1 month ago.
The first code is the Header file provided by our instructor, we are not allowed to make any changes to that file at all. The next is my .cpp file and the third is my test file. This is as far as I have gotten on the project and I am not exactly sure how to implement the header file properly.
Customer: replied 1 month ago.
I am not exactly sure how to create an array using the pointer in the header file and I am not sure how to create the Caesar object in the test file. Please help.
Expert:  LogicPro replied 1 month ago.
Expert:  LogicPro replied 1 month ago.

Let me know if you still need help. I am still waiting for your response