Help on C++ code

Question:

Current behavior:

Desired behavior

Repl link:

#include <iostream>
#include <iomanip>
// For setprecision
using namespace std; 
int main() {
    // Define customer information
    string customerName = "Asa Rogers";
    string customerAddress = "126 Bulldog Way";
    string customerCity = "Normal";   

Hi @TorreyHobdy1, welcome to the forums! Could you please elaborate on what you need help with?

1 Like

Welcome to the forums, @TorreyHobdy1!
If I understand your code correctly, try putting this above your main:

#include <string>
1 Like

#include <string> won’t change anything, std::string comes with c++ and using namespace std; means that you don’t need to use std::

2 Likes

Strings aren’t actually included by default, you do need to include afaik.

Edit: nvm, might have been an older thing :man_shrugging:

1 Like

I thought that too…

1 Like

prob

1 Like