Search Result

Collapse
5 results in 0.0015 seconds.
Keywords
Members
Tags
if statements
  •  

  • W051
    started a topic Using strings and if statements in C++
    in C

    Using strings and if statements in C++

    The problem with this code is that there are no errors showing, but when i compile the program, the if else statements do not carry out as they should do. Both if statements show the same answer, for example the second if statement. If I type Y or N then I get the same thing, 'You will now choose an event'. How do i get rid of this problem? Is char supposed to be used or string?
    Code:
    #include <iostream>
    #include <iomanip>
    ...
    See more | Go to post

  • Joff
    started a topic Can you add IF statements to this piece of PHP code?
    in PHP

    Can you add IF statements to this piece of PHP code?

    Hi,

    I have developed a search tool using PHP. The uses what's typed into a search box to replace part of a URL.

    I am wondering if anyone can help me add IF statements to this function.

    The user can search for ISBN numbers, which have to be 10 characters long. I would like a feature that tells them this if they don't type in a valid ISBN number.

    I don't think this is possible, but is there...
    See more | Go to post

  • flower88
    started a topic Nested IF statements not working

    Nested IF statements not working

    Hello,
    I'm working on a search form. I have 3 combo boxes and I want to find combinations on a query to later show it in a report. Perhaps this is too complicated but I don't know how else to do it. I thought this code worked at first, but then a realized it wasn't really working. I know something is up with the if statements but I don't know how to fix it.

    Code:
    Private Sub Findbtm_Click()
    If Me.CompanyCell.Value = ""
    ...
    See more | Go to post

  • ocli5568
    started a topic C programming if statements
    in C

    C programming if statements

    I've read countless times, and in fact used it correctly, that you can use boolean logic in an if statement to test whether a string is equal to another string, although my compiler (visual studio 2005) just skips over this particular if statement.
    this is a snippet of the code:

    printf("Encrypt : file encryption program. Type h for help.");
    do
    {
    printf("\n>> ");
    fgets(init,...
    See more | Go to post

  • yeshello54
    started a topic String Question
    in C

    String Question

    Hello all. So i have a question about searching strings. I have the following if statement...

    if (parser.get_tok en(i,2).at(0) =='#' && parser.get_toke n(i,2).at(1)==' 5'){
    ...
    ...
    ..
    }

    What I want to do is change where it says "=='5' " to be able to look for all numbers 0-9 instead of just 5. Any help would be awesome. Thanks.
    See more | Go to post
Working...