Ok great. Glad to know I wasn't quite as far off as I thought I was. I thought I had to use pointer notation in the strlen() function. But I guess 'array[i]' is a pointer anyway... right? Thanks...
Type: Posts; User: agamemn0n
Ok great. Glad to know I wasn't quite as far off as I thought I was. I thought I had to use pointer notation in the strlen() function. But I guess 'array[i]' is a pointer anyway... right? Thanks...
Ok here's the error message:
C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include/string.h:54:18: note: expected 'const char *' but argument is of type 'char (*)[200]'
size_t...
I've got a program that reads a bunch of tweets from a .txt file into a 2D char array. Each tweet is a new row in the array, while the characters in each string make up the columns (or at least I...
Thanks so much Salem! Your tip really helped me.
So far this is my code for the diamond using all the same character. I think that the second nested for loop is gonna be where the action takes place to get the characters to change but I'm just not...
Hi all,
I am having some trouble with an assignment for one of my courses. We're supposed to print a character diamond, but not a diamond composed of just one character. It asks the user to input...
Ahhh yes! It all makes sense now. Thank you so much friend.
I understand how for loops work on their own. It's when there is a for loop nested inside another for loop that I have an issue.
In my code above, 'i' starts at zero and 'j' starts at one. ...
Ok, I think I understand.
So you're saying that '++j' happens AFTER '++i'? I was thinking that everything in the inner loop happened before moving back to the outer loop.
Hi all. I'm new to C programming and I am having A LOT of trouble understanding nested for loops. Here is a program I wrote.
#include <stdio.h>
int main(void){
int userNum = 0;
...