Thread: User input into a text file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    50
    i'll try to answer...
    you declare
    Code:
    char nam[10];
    your accessing:
    Code:
    a_file << nam[10];
    the last value for your array is in nam[9].

    EDIT: stand corrected. Dave's answer is the correct. i didn't see that...

    sorry i'm really not good at explaining.. hope this helps
    Last edited by what3v3r; 01-10-2006 at 09:01 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. disposing error
    By dropper166 in forum C# Programming
    Replies: 2
    Last Post: 03-30-2009, 11:53 PM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. SSH Hacker Activity!! AAHHH!!
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-06-2005, 03:53 PM
  4. Outputting to a File Modified Text
    By alpha in forum C++ Programming
    Replies: 8
    Last Post: 11-24-2003, 08:39 PM