DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 15 of 26

Thread: array..?

Threaded View

  1. #1
    Join Date
    Aug 2007
    Posts
    24

    array..string..?

    #include <iostream.h>
    #include <string.h>
    void main()
    {
    int i;
    char name[10][10];
    cout << "Please enter your name..(one word only).." <<endl;
    for (i=0; i>=10; i++);
    {
    cin >> name[i];
    }
    cout << name[i];

    }



    //i get confused with dis..if i enter name as 'flame'isnt it suppose to be like dis..
    f
    l
    a
    m
    e

    but the output is 'flame'..how i can get it to be as above..? :confused:
    thanx if you give me any idea or advice or help me.. ;)
    Last edited by inflame254; 09-07-2007 at 11:41 PM.

Similar Threads

  1. Replies: 27
    Last Post: 02-11-2016, 06:29 AM
  2. Reversing an Array
    By Tmcclain in forum Java
    Replies: 7
    Last Post: 02-13-2009, 11:57 PM
  3. redim help !!!
    By angelito in forum VB Classic
    Replies: 1
    Last Post: 11-21-2005, 07:16 AM
  4. Dynamically allocating a 2d array
    By nnp in forum C++
    Replies: 6
    Last Post: 11-01-2005, 10:05 AM
  5. Replies: 2
    Last Post: 04-15-2005, 09:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center