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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Jon1234

  1. Jon1234

    Arrays of pointers

    It's not impossible. Here I have an array of 500,000 elements, arr1. I have an array of pointers, arr2. ----- char arr1[500000], **arr2; ... //populate arr1 arr2 = new char * [500000]; for (int i = 0; i < 500000; i++) arr2[i] = &arr1[i]; ----- That does what I want. That...
  2. Jon1234

    Arrays of pointers

    Well, I think I'm pretty dumb. I realized what I was doing wrong. Rather than &quot;char *arr;&quot; for my array, I should have been created a doubple pointer &quot;char **arr;&quot; instead. Thanks. -Jon
  3. Jon1234

    Arrays of pointers

    I'm new to programming with C++, so this is fairly confusing. I'm trying to make an array of pointers, and it's not going real well. I have an array of characters around 500,000 elements in size. I'm trying to make an array of pointers that then points to each of those different elements...

Part and Inventory Search

Back
Top