#C++ "Hello World" Intro, Somehow Stuck

41 messages · Page 1 of 1 (latest)

umbral cave
#

I feel so braindead right now, I'm stuck on the first C++ thing despite having been learning this for a number of days now. Anyone able to help, because despite doing the correct code, it just isnt taking.

#

I'm on my hands and knees, someone just explain it like I'm an intrigued toddler

trim pond
#

Did you watch the intro video?

umbral cave
#

yes

#

maybe the illness im currently fighting is causing me to be unable to code

umbral cave
indigo jasper
#

It told you what to do in the introduction video, you only need to change one single string

trim pond
#

You may want to reset the exercise (using the ... menu) then follow the video instructions

umbral cave
#

I don't know what it is, why am I not understanding

#

#include "hello_world.h"

using namespace std;

namespace hello_world
{

string hello()
{
return "Goodbye, Mars!";
}

}

#

the string is what I need to modify

#

"Find that string, change it"

#

Change it how??

#

Usually its this, right?

trim pond
#

Did you try resetting the exercise?

#

Your code looks very different from the start code

#

If you change more than one thing, it's wrong

umbral cave
#

Reverted it repeatedly

#

no difference

#

same thing

#

sorry wifi broke lol, the first screenshot is Replit (how i learnt first), second is Exercism

#

Im gonna lose it, I feel like ive tried every combination and the video explains nothing

#

other than "dont complicate it, jsut modify the string!"

#

yes but HOW

#

@trim pond I am so so sorry to bother you but im losing my mind here

#

<@&1082332817465298997> ill take anyone, im obsessed with this now and I need the answer

#

im so sorry to ping

#

its gonna be the simplest answer i know but ive got nothing

feral lodge
#

Yeah, please don't start pinging everyone, that's rude. Discord is not real-time conversations. Ask a question, and then wait for someone to answer.

umbral cave
#

yes sorry

#

I'm gonna have a full blown unadulterated anyeursm

You can tell how new I am to this, not once did I know that 'return' was also used as a 'cout' kind of thing

trim pond
#

That doesn't look the same. It looks very different.

umbral cave
#

i got it now

umbral cave
trim pond
#

Please don't use screenshots to share code or any other text.

trim pond
umbral cave
trim pond
#

Looking carefully does often help 😄

sick sigilBOT
#

If everything is resolved, we ask that the person who posted the request react to the top/original post with a :white_check_mark: (:white_check_mark:). This indicates to others that this issue has been resolved and locks the thread.
If all the tests pass and you want to further improve your solution, we encourage you to use the "Request a Code Review" feature on the website!