Thread: Call by (char) or (string)?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379

    Call by (char) or (string)?

    I'm have a small loop to save a few lines of code. It cycles through some characters:

    T1[], T2[], T3[], T4[]. Now, I want to call the reference like:

    T[integer][]. (Not a 2d array)

    So, I guess what I mean is, can you somehow call a list of characters like that, or do you have to have them in a 2d array?

    If you dont get what I mean, I'm trying to call a character value thats not in a 2d array like:

    Code:
    char T1[]
    char T2[]
    int x;
    
    cout << (T+x+[]);
    Last edited by Blackroot; 01-04-2006 at 06:56 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newbie needs help with code
    By compudude86 in forum C Programming
    Replies: 6
    Last Post: 07-23-2006, 08:54 PM
  2. How do i un-SHA1 hash something..
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 09-14-2005, 05:59 AM
  3. String Class Operations
    By Aidman in forum C++ Programming
    Replies: 10
    Last Post: 04-06-2003, 02:29 PM
  4. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM