Search Result

Collapse
10 results in 0.0015 seconds.
Keywords
Members
Tags
space
  •  

  • growthndevlpmnt
    started a topic Trying to justify text using Python

    Trying to justify text using Python

    Ok so I'm supposed to be taking a input text file and justifying it. I've have gotten the text to do character justification bar the last line. I'm trying to figure out how to iterate over each space and insert a ' ' to get the last last up to the specified length.

    If I try
    Code:
    for ' ' in new:
        insert(new,' ',find(' '))
    in the spirit of simple style that python has taught me,
    I get a non iterable error....
    See more | Go to post

  • neeru29
    started a topic Split a line by whilespace or tabcharacter (\t)
    in C

    Split a line by whilespace or tabcharacter (\t)

    Hi,

    I have file in while following line are present

    dir1 dir2 dir3 dir2 file1 file2
    dir1_file1 dir1_file2\tdir 2_file1 dir2_file2\tdir 3_file1
    ...
    ...

    reading a one line at a time from a file,

    i'm using the function strtok_r() to split the each line with delimiter whilespace and '\t' character.

    How can differentiate that 2 words are split by whitespace or...
    See more | Go to post

  • How to check a string to see all the characters are number or space?

    this is my code and problem is with the space between months and years::

    for(;;){
    char TmpAge[10];
    cout<<"What age is the pet? (yy mm ) => ";
    cin.getline(Tmp Age,MaxChars);
    if(strlen(TmpAg e)==0){PetRecs[NumRecs].Age.Mths = PetRecs[NumRecs].Age.Yrs =-1; break;}
    else if(is_number(Tm pAge)==false){
    cout<<"Invalid input1!\n"<<end l;
    ...
    See more | Go to post
    Last edited by behzadkhalili; Mar 27 '11, 09:02 AM. Reason: spelling problem

  • IE8 adds an extra space after right bracket ] character. How to avoid it ?

    The text in my document contains the right bracket character ].
    When the browser displays the text, it seems to add an extra space after the character.

    For example, if I want to display a]A,
    the browser displays it as a] A

    Can any one help me so that I can avoid this extra space.

    ( I think that this problem comes in IE 8 only, not in IE6 etc)

    Thanks
    adiasu
    See more | Go to post

  • nokci
    started a topic max array size?
    in C

    max array size?

    i am writing a code to create a 2600 * 1000 array after reading a .txt document that is filled with random letters (2.4 mb of random letters). When i try to run the program it just halts and none of my check points show up (cout << "a";). here is my code:

    Code:
             string key="C:\\key.txt";
             ifstream inFile;
             int i=0;
             int j=0;
             const int ROW = 2600;
    ...
    See more | Go to post

  • extract information from a string with a lot of spaces

    ok I have this string and other similar( ull find them in the attachment)

    "BRUNEI BANDAR SERI BEGAWAN 5770 343653"

    I need to extract BRUNEI, BANDAR SERI BEGAWAN, 5770 and 343653
    but i cant find a way to do it that work for all my string that i have..
    Can someone help me on that plz..
    thx...
    See more | Go to post

  • There is a white space in firefox below my td cell

    Only in firefox there seems to be a white space below my swf in the td cell.

    See www.wickware.com

    Is there something wront with my code?

    RE: Ha figured it out you need to vertically align the flash object!! Just inserted align="absbotto m" and it worked ;P
    See more | Go to post

  • ezechiel
    started a topic problem with spaces in directory name
    in Perl

    problem with spaces in directory name

    Hi everyone,

    I have a question about spaces in directory names.
    If I want to use mkdir something, everything works out, but in this case:
    Code:
    #!/usr/local/bin/perl
    #
    use warnings;
    
    $homedir = "C:/SCRIPT/CJ0249A.1/\"Project Information\"";
    $file = "$homedir/exist.txt";
    
    if (-e "$file")
    {
            print ("it exists");
    ...
    See more | Go to post

  • How to remove spaces between hyperlink images??? Help?

    I am creating a web page where I want several images (each is a hyperlink) to be side-by-side with no white space. I read lots of blogs on it and nothing seems to get rid of the spaces, here's where I get spaces between these pics:

    <a hspace = "0" vspace = "0" style="padding: 0px;font-size:8px;font-family:verdana" href="/ChangeStatus/VACATION/"><img border="0" src="/UNSELvacation.g if"alt="ON...
    See more | Go to post

  • ad
    Guest started a topic How space function in C#

    How space function in C#

    Is there fucntion in C#, which will return a string consist of a given
    number of space, like

    Space(5)-> " ";...
    See more | Go to post
Working...