can you print your name without using ; semicolon in whole program in c?
357099
void\nmain()\n{\n   if (printf("morgan&#92;n")) {\n   }\n}\n\n\nNo semi's -- no problem.
1118417
Try putting the name in quotes.  If that doesn't work, you might need to use an escape sequence for the -, like "&#92;-o".  If neither of those work, you might be able to delete it by doing "rm ?o"; of course, you'll lose the file this way, and you can't have any other files that are 2 letters long with the 2nd letter an o.\n\nIf you need to preserve the file, you can write a program to rename it.  Since from within a program, it won't try to use the -o as a parameter, you can open a file with any name.\n\nI'm surprised Unix even allowed you to create a file with a - in the name; I thought that was one of the restricted characters.
478142
Hi there,\n\nIs it possiple you left out a P?\nThen the answer is PROGRAMME.\n\nHave fun puzzling! ;)
260822
This appears to be in C# and if your are indeed using C# and trying to write a comment about the variable or something like that, just use "//" before your comment and place your comment after the semicolon or on the line before after the {   Basically, a comment is just ignored by the compiler so where you put it doesn't matter as long as the comment itself doesn't comment out code that is needed to execute.\n\npublic class ConsumedParts_UI_aspx : System.Web.UI.Page\n{ //Add comment here\nprotected string strOptions; //or here\n}
761043
The symbol _ is called the underscore. You can type it by the combination Shift and - key.
942085
u can do alt + 3 = ♥\nor <3\n\nxox <3 <3 ♥♥♥♥ <3 <3
444754
This sounds like school work, its a fairly simple program. you will probably want to use the cout and cin function which needs you to include iostream.h \n\nsimply use cout to print to screen, ask for input etc. then take the input using cin and store it to a int variable.\n\na good way to do it would be to ask the user what they wish to do, eg subtract, divide and take that operator first, a symbol or a number to show choice. then the next line asks for the numbers to be input.\n\neg:\n\n---------\n\nHello. what do you wish to do:\n1 - subtract\n2 - divide\n3 - etc etc\n\n>\n\n-------------\n\nthen use an if function or maybe a switch to check what their input was and do the artithmatic.\n\nso a very basic prgram may look like this:\nit may have errors i havant checked it.\n\n-----------------\n\n#include <iostream>\n\nint main() \n{\nint number;\n\n    cout << "Hello, input a number" << endl;\n    cin >>number;\n    return 0;\n}\n\n------\n\nEDIT; i re read the req, you might find inputting the selection to a char better, then check the char to see what symbol is stored in it, eg + / -. and maybe use a char array for the number input. simple take the char array, check for the space. split the numbers into 2 and caste then to an int. sounds complicated but it isnt to hard.\n\nsorry about spelling mistakes.
761401
lowercase -> abcdefghijklmnopqrstuvwxyz\nuppercase -> ABCDEFGHIJKLMNOPQRSTUVWXYZ\n=)
315617
void StrReverse4(char *str)\n{\n    if(*str)\n    {\n        StrReverse4(str+1);\n        putchar(*str);\n    }\n}\n\nTry this code it might work
264720
Yeah, this could be homework, but the point is to\nunderstand it, so I don't mind showing you one\npossible solution:\n\n#include <stdio.h>\n#include <string.h>\n#include <stdlib.h>\n\nint\nmain(int argc, char* argv[])\n{\n  if (!argv[1])\n    printf("String argument required!&#92;n"), exit(-1);\n\n  char *str=argv[1];\n  int i, len=strlen(str);\n  for (i=len-1; i>=0; i--)\n    fputc(str[i], stdout);\n  printf("&#92;n");\n  return 0;\n}\n\nAnd to try it out:\n\n$ cc rev.c\n$ a.out abcdefghijklmnopqrstuvwxyz\nzyxwvutsrqponmlkjihgfedcba
593709
instead of \ntitle = "Hello World";  \ntry\ntitle.Text = "Hello World";\n\nthe lable object can not be assigned a string value, but the Text property of the lable object can :)
424535
your getting a user input for first and last name seperated by a space. use the strtok() function to extract the strings on either side of the space. then print it in the format you want.
446677
I think you might be asking about the main statement.  This takes the form\n\nvoid main (void)\n{\n}\n\n(ok, sometimes other forms such as int main(int, char*){})\n\nIt is normally used to signify the entry point for an execution unit.\n\nBut, knowing this won't help you much.  There are hundreds of books on the subject, but you should start with K&R.  You won't learn C from Yahoo answers.
1159715
You can go to START>>PROGRAMS>>ACCESSORIES>>SYSTEM TOOLS>>CHARACTER MAP>> then choose the symbol from the list and click copy.\n\nOr do what Mikah said.
865038
Do you mean printing the result of printf() statements?\n\nIf so, simply redirect the output of your program to either the printer directly or to a file and then print that file.\n\nEither on a linux box or from a command prompt on windows:\n\nc:&#92; myProgram > lpt1  or \nc:&#92; myProgram > myResults.txt
60802
"disp" or "display" functions\n"line" is helpful too\n\nTry to make a string x='*****' y='** **' \ndisp x,y \nETC....
339889
You will get a error because you need a loop condition it cant be just 1. for example to print god 5 times make loop condition like for(i=0; i <=5;i++) then it will print "god" five times.