Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Vdcss
  • Order by date
  1. Vdcss

    How do I dimension a string at run-time?

    How do I make this piece of code work? I have the dimension of the string at run-time... void Sub1(int Count) { char nrstr[Count]; . . . } or { int k; k = f1(); char nrstr[k]; } If your answer is dynamic allocation, how do I do that (define vars; add, remove items)?
  2. Vdcss

    Problem with main's arguments

    In the following code: void main(int argc, char *argv[]) { if (argc == 3 ) if (argv[1] == 'c') { //doesn't work int m; m = atoi(argv[2]); //doesn't work } } The parameters are c 201. The lines marked give me an error. I think I know why but I don't know how to resolve it or how to...

Part and Inventory Search

Back
Top