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;
Type: Posts; User: Lidor718
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;
I'm sorry. could you elaborate on how to check the string input.. I don't quite get how to work with strings
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...
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...
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..
...
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>...
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..
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...
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...
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'.....
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...
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...
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...
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...