Search:

Type: Posts; User: Lidor718

Search: Search took 0.01 seconds.

  1. Thread: input check

    by Lidor718
    Replies
    9
    Views
    6,141

    Any idea why this won't work? char row[258],...

    Any idea why this won't work?

    char row[258], col[258]; int nrow = 0, ncol = 0, i ;




    while (nrow == 0 && row != NULL)
    {
    i = 0;
  2. Thread: input check

    by Lidor718
    Replies
    9
    Views
    6,141

    I'm sorry. could you elaborate on how to check...

    I'm sorry. could you elaborate on how to check the string input.. I don't quite get how to work with strings
  3. Thread: input check

    by Lidor718
    Replies
    9
    Views
    6,141

    but this code will allow inputs such as "4 a" or...

    but this code will allow inputs such as "4 a" or "-5"
    my thought would be to read a string from the user and then check the string for any mistakes.. I just have no idea how to do that..
    I want it...
  4. Thread: input check

    by Lidor718
    Replies
    9
    Views
    6,141

    input check

    hello,
    so far I've been writing codes to take in numbers and make sure the input is within a given range, yet how can I use an array or a string to make sure the input the user has typed in is...
  5. Replies
    6
    Views
    3,016

    Thing is I need to print it in XOX blocks, and if...

    Thing is I need to print it in XOX blocks, and if it doesn't fit the rest should be filled with spaces.. so far I just can't get it to do all at the same time..
    ...
  6. Replies
    6
    Views
    3,016

    Thanks for replying. this is my code so far : ...

    Thanks for replying. this is my code so far :
    #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>
    int main(){
    int sheight = 0, swidth = 0, i1, j1, i2, j2, j3;

    while (sheight < 7 || sheight>...
  7. Replies
    6
    Views
    3,016

    that exe output isn't mine that's what it's...

    that exe output isn't mine that's what it's suppose to do , and I'm kinda lost on how to do that.. I used for loops to create the frame with a condition regarding the division of the dimension by 3..
  8. Replies
    6
    Views
    3,016

    Using for loops

    Hi. I've been trying to use for loops to create certain shapes depending on user's input, I made it work with triangles made of '*', inverse triangles and such.
    So far I'm having trouble doing...
  9. Replies
    8
    Views
    6,132

    Actually for this assignment i'm not allowed to...

    Actually for this assignment i'm not allowed to use functions.. I made it work I'm just wondering if there's any way to make it run faster using just loops, break and continue.. and everything i've...
  10. Replies
    8
    Views
    6,132

    No, I've never used any.. I'm trying to run a...

    No, I've never used any.. I'm trying to run a series of if statements on the variable and mark the results with flags and then let the program print a feature depending on what flags are marked '1'.....
  11. Replies
    8
    Views
    6,132

    There is a certain preference of what feature to...

    There is a certain preference of what feature to assign to a number that fits more than one category, I just can't figure out a way to write it to work properly. Yeah, special is just 1 , and I know...
  12. Replies
    8
    Views
    6,132

    while ( firstnum

    while ( firstnum <= secondnum){ if (firstnum == 1) printf("%10d Special number.\n", firstnum);//special number check
    for (i = 1; i < firstnum; i++){ //determining if the number is a perfect...
  13. Replies
    8
    Views
    6,132

    multiple If statements

    Hello. I'm writing a code that should take two numbers as input from the user, one 8 digit number and one that's 10-150 more than the first one. Then it should print all the numbers and assign them...
  14. Replies
    1
    Views
    2,660

    Help with first C program

    Hi. I'm new here and also a newbie programmer.
    I'm taking a course in C and I'm having trouble with my assignment
    I'm suppose to create a menu to do a couple of things, one of them is to make the...
Results 1 to 14 of 14