Ask coding questions

← Back to all posts
Help on c++ homework

I am having problems with a homework assignment I am currently doing. I have everything correct but for some reason, my output is adding a space behind my first name output. My code is shown below please let me know how I can get rid of the extra space.

#include <iostream>
#include <string>
#include <sstream>
using namespace std;

int main() {