Is  declaration string list[50]; is valid  to declare and array of string? thanks?
916933
Your language is most likely c/c++, so the answer is then yes. You will then have 50 strings ranging from list[0] to list[49] in which to store your data. Of course, you will have to include the correct header file, i.e. #include <filename>, and if in c++, make sure to include "using namespace std;" (if appropriate in your program).\n\nWhy not just try it and see what the compiler tells you? One of the best ways to learn programming is to just try things and see what happens. If the result is not what you expected, try something else!
782885
You need to show us your initiation statements for FirstName, LastName and Idnum; it looks to me that you have something mixed up while allocating memory for these variables.
191602
source: MICROSOFT VB HELP FILES.\n\nPrint Method\n         \n\nPrints text in the Immediate window. \n\nSyntax\n\nobject.Print [outputlist]\n\nThe Print method syntax has the following object qualifier and part:\n\nPart Description \nobject Optional. An object expression that evaluates to an object in the Applies To list. \noutputlist Optional. Expression or list of expressions to print. If omitted, a blank line is printed. \n\n\n\nThe outputlist argument has the following syntax and parts:\n\n{Spc(n) | Tab(n)} expression charpos\n\nPart Description \nSpc(n) Optional. Used to insert space characters in the output, where n is the number of space characters to insert. \nTab(n) Optional. Used to position the insertion point at an absolute column number where n is the column number. Use Tab with no argument to position the insertion point at the beginning of the next print zone. \nexpression Optional. Numeric expression or string expression to print. \ncharpos Optional. Specifies the insertion point for the next character. Use a semicolon (;) to position the insertion point immediately following the last character displayed. Use Tab(n) to position the insertion point at an absolute column number. Use Tab with no argument to position the insertion point at the beginning of the next print zone. If charpos is omitted, the next character is printed on the next line. \n\n\n\nRemarks\n\nMultiple expressions can be separated with either a space or a semicolon.\n\nAll data printed to the Immediate window is properly formatted using the decimal separator for the locale settings specified for your system. The keywords are output in the appropriate language for the host application.\n\nFor Boolean data, either True or False is printed. The True and False keywords are translated according to the locale setting for the host application.\n\nDate data is written using the standard short date format recognized by your system. When either the date or the time component is missing or zero, only the data provided is written.\n\nNothing is written if outputlist data is Empty. However, if outputlist data is Null, Null is output. The Null keyword is appropriately translated when it is output.\n\nFor error data, the output is written as Error errorcode. The Error keyword is appropriately translated when it is output.\n\nThe object is required if the method is used outside a module having a default display space. For example an error occurs if the method is called in a standard module without specifying an object, but if called in a form module, outputlist is displayed on the form.\n\nNote   Because the Print method typically prints with proportionally-spaced characters, there is no correlation between the number of characters printed and the number of fixed-width columns those characters occupy. For example, a wide letter, such as a "W", occupies more than one fixed-width column, and a narrow letter, such as an "i", occupies less. To allow for cases where wider than average characters are used, your tabular columns must be positioned far enough apart. Alternatively, you can print using a fixed-pitch font (such as Courier) to ensure that each character uses only one column.
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 :)
528238
either do direct value initialization inside the bracket\n\nint MyArrayD[N]={0,0,0,0,0,0,0,0..};\n\nor \n\nfor(int i = 0; i <N; i++}\nMyArrayD[i]=0;
326706
var\nP : Array[0..10,11..20] of Pointer;
109898
Another tip - class names and file names are CASE SENSITIVE.  If you create a class "Apple", and refer to it as "apple", you won't find it at runtime.\n\n(I'm just beyond a novice at Java - hope this helps too - just vote for the other guy).
859662
This sounds like an assignment! Anyhow...\nCreate an array of 10. Then create a for loop of ten and each time ask for the user for an input. Store that input to the array. Then using a loop again output the array to the listbox
765887
Assuming your above program works, which I don't think it will because your doing an aggregate operation on an array..you should assign values to indexes in the array...eg cin >> Date[0] or use a for loop or something...regardless since your putting everything in an array anyway simply do something like using a counter variable, personally i think it would be the easiest way of doing something like that.\n\nint counter = 0;\n\ncout << enter day to subtract << endl;\ncin   >> counter;\ncout << Date[1]  - Date[counter] << endl;\n\nI belive using
865202
Dim s as String\n\n'assuming s is not nothing\ns = IIF(s.length() > 30, s.substring(0, 30), s)
29500
I think c is true becuse a varible name can not contain any thing other than lettera and digit if you add _ in letters.\nBut a class may not have constructor when default constructor will be used.
902027
I have used VB for years and as far as I know, it doesnt have dynamic arrays. VB was not designed to be used like that so it probably doesnt have a syntax for it.
709447
Declare a two dimensional pointer for example :\n\nint **x;\n\nx = static_cast<int **>(malloc(sizeof(void *) * dimension x));\nfor ( i = 0; i<dimension x; i++)\n{ \n   x[i] = static_cast<int**>(malloc(sizeof(void) * dimension y));\n}\n\nYou are ready to use x[i][j]
646616
class publication\n{\n   private :\n      char title[20];\n      float price;\n   public :\n      void getdata()\n      {\n          cin>>title;\n          cin>>price;\n      }\n};\nclass books :: public publication\n{\n   private :\n      int pagecount;\n   public :\n      void getdata()\n      {\n          cin>>pagecount;\n      }\n\n};\nclass tape :: public publication\n{\n   private :\n      int playing_time;\n   public :\n      void getdata()\n      {\n          cin>>playing_time;\n      }\n};
129223
What are you comparing (characters, numbers, ...)?\nHow do you want to compare it (greater than, less than, equal to, ...)?\n\nThe basic structure is,\nif ([Object1] opperator [Object2])\n{\n//code to be executed if true\n}\n\nObject1 and Object2 are the elements of the array you want to compare.  The opperator is how you want to compare them,  for example, == or > or < or != or <= and so on.
881644
Something like this:\n\nint **myArray;\nint s1,s2,i;\n\nprintf("Input row size: ");\nscanf("%d",&s1);\nprintf("Input column size: ");\nscanf("%d",&s2);\n\nmyArray[0] = malloc(s1*s2*sizeof(int));\nif (myArray[0] != NULL ) {\n  for (i = 0;i<s1,i++) {\n         myArray[i] = (i * s2) + myArray[0];\n  }\n}\n\nmyArray can then be used as normal\n\nmyArray[2][4] = 20;
765091
Mn is close, but there are 2 errors:\n\n1) There is no len() function.  Use strlen() instead of len().\n\n2) He didn't allocate enough memory for the sprintf to fit the entire result string in the buffer.  The line needs room to store the &#92;n (or in windows, 2 chars - cr and lf ) in addition to the null terminator.  So, his code needs to add 2 instead of 1 to the length calculation.  \n\nTaking this a little further, the number of chars should be multiplied by the sizeof(t_char), which MIGHT NOT be 1 byte if the code is destined to use unicode.\n\nChances are, this is ascii, so the multiplication is unnecessary, but it is better to be safe than sorry.  Besides, if this was production code, you'd want to be able to use the same code in both places without any need to change it.  Nothing worse than having to go back and recalculate buffer manipulation code during a port.\n\nThe above subtleties demonstrate precisely how and why it is so very easy to make a mistake in c/c++, leading to a buffer underallocation or overwrite, and hence a security hole.