i'm trying to write a code that will create a diamond * *** ***** *** * EDIT: the * should all be aligned in the center but it didn't come out that way. like this diamond here, using loops. i am extremely terrible with loops and arrays. So forgive me for asking this dumb question but ... int _tmain(int argc, _TCHAR*…
Trying to do this horrible horrible extra credit assignment for a class and i noticed how much i suck/hate programming. Not to get into to much detail about the extra credit assignment but it involves rewriting a code using loops. So my 1st question for anyone who can answer it for me is ... what does \n mean and/or do for…
Honestly, this isn't realy polycounts speciality, and while you might get one or two responses, you'll get more help faster on a coding forum or something! good luck though!
\ is a general escape character for special characters inside strings. some common ones are \n for newline, \t for tab-space, and \\ which simply goes to \ (to avoid the code trying to escape the next character in the string after the initial \).