Ask your own question, for FREE!
Mathematics 16 Online
OpenStudy (marcelie):

please help with c++ programming can someone please help me with number 1

OpenStudy (marcelie):

OpenStudy (marcelie):

what i have : #include <iostream> using namespace std; int main() { cout << " ***** "<< endl; cout << " * * " << endl; cout << " * 0 0 * Astrology - the study of the movements and relative " << endl; cout << " * ! * positions of celestial bodies interpreted as having " << endl; cout << " * \ ______ / * an influence on human affairs and the natural world." << endl; cout << " * * " << endl; cout << " ***** " << endl; return 0; }

zepdrix (zepdrix):

Why do you have so much blank space? Can't the first line just be: cout << " *****"<< endl;

OpenStudy (marcelie):

oh it doesnt look like this in the visual studio lol idk what happen here

zepdrix (zepdrix):

Oh weird :3

OpenStudy (marcelie):

can you please help me D:

zepdrix (zepdrix):

Hmm I dunno D: soz

OpenStudy (marcelie):

okie lol

OpenStudy (marcelie):

@518nad

OpenStudy (518nad):

kay whats wrong with the cod eup ther

OpenStudy (marcelie):

it doesnt look like number 1 :/ the happy face looks all weird when i compile it

OpenStudy (518nad):

show me

OpenStudy (518nad):

screenshot

OpenStudy (marcelie):

looks like this

OpenStudy (518nad):

loolololol

OpenStudy (marcelie):

omg lool

OpenStudy (518nad):

hahaahah omg

OpenStudy (518nad):

ok just fix the space

OpenStudy (518nad):

oh i think i get it u need to add an ignore character on \

OpenStudy (marcelie):

i added that but it doesnt appear

zepdrix (zepdrix):

Marci, have you gotten into drawing triangles with asterisks yet? Using for loops? I always find those problems pretty fun lol

OpenStudy (518nad):

this '\' didnt show up because it probably does some function in c++

OpenStudy (marcelie):

oh we havent gotten into looping yet D: thats like the next chapter so then what other symbol do i use lool

OpenStudy (518nad):

u gotta look at some thing, like umm try \\

OpenStudy (518nad):

let me find an online compiler so i can try it with u

zepdrix (zepdrix):

Ya that's probably right :D We have to do that in C# for the curly brace {{

OpenStudy (marcelie):

okie

OpenStudy (518nad):

pls post code for file reading

OpenStudy (marcelie):

what you mean ?

OpenStudy (518nad):

http://prntscr.com/cy1dzj

OpenStudy (518nad):

for part 2 of the assignmentq

OpenStudy (marcelie):

oh okay .. but there is also data files which displays the month and the yr

OpenStudy (518nad):

gimmme ill just open another file

OpenStudy (518nad):

do u like my slanted face

OpenStudy (marcelie):

yeah lol These are the txt files January 10 2016 February 10 2016 March 10 2016 April 10 2016 May 10 2016 June 10 2016 July 10 2016 August 10 2016 October 2 1964 November 10 2016 December 10 2016 ____________________________________________________________ Invalid txt files Invalid 1. Txt: Nicholas 10 2016 Invalid 2. Txt: December -1 2015 Invalid 3. Txt: April 3 2017 Invalid 4. Txt: October 13 -2010 Invalid 5 txt: January 32 2016 Invalid 6 txt: February 30 2015 Invalid 7 txt: February 30 2016 Invalid 8 txt: June 31 2016

OpenStudy (marcelie):

@518nad

OpenStudy (518nad):

hi, wheres the code for part 2

OpenStudy (marcelie):

oh hi i didnt see any code for that :( but the document said to follow those text files ...

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!