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 TouchToneTommy 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: Ixcaliber
  • Content: Threads
  • Order by date
  1. Ixcaliber

    Pointer problems with (char*)

    I have the following code, and am trying to read in a character string from the keyboard, and save it as the name of the vector... but as you can see from the output, the input is saved until the next cin statement, at which time the name is switched to 2!! I imagine it is some pointer problem...
  2. Ixcaliber

    Why does this dyn. array alloc. work?? it shouldn't!?!

    I'm using viz studio 6 (shouldn't matter, but fyi), and am kind of curious why this works... #include<iostream> #using namespace std; int main(int argc, char* argv[]) { int *p; p = new int[10]; for (int i=0;i<10;i++) p = i; // curiosity lies here, i increases out of the domain...

Part and Inventory Search

Back
Top