here's my code now:
#include <stdio.h>
#include <string.h>
#include <ctype.h>
typedef struct{
long id;
Type: Posts; User: blindleaf
here's my code now:
#include <stdio.h>
#include <string.h>
#include <ctype.h>
typedef struct{
long id;
Crap here's my output:
€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ
€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ€õÿ...
ok i changed that but i dont know how to make it stop once it gets to "####" the code i have now isn't doing that, please can someone help?
ok here's the code now, and the errors that are with it:
#include <stdio.h>
#include <string.h>
#include <ctype.h>
typedef struct{
long id;
ok look i want to input something like this:
Yellow_Card
Blue_Dress
Orange_Hat
Purple_Noodle
Green_Fan
Lovely_Sam
Cheesy_Freddy
Marketing_Mark
ok whats another way to write this:
for (i = 0; i < margin; putchar(' '), i++) ;
what does this line of code mean exactly?
p = strtok(line_in, " \t<>\n");
ok heres the code i have now i keep getting a "Segmentation Fault (core dumped)" error can anyone see why? i think it has to do with the loop that i have highlighted in red.
#include <stdio.h>...
ok i've added the check for the full word "end" but i dont know what all this means:
if (scanf("%*[^0123456789]%d%*[^\n]", &gem_value[i]) != 1)
can anyone explain that to me? does it...
ok i've changed the code around some, but this way doesn't work heres the code, i need it to take in the input
11 6
Ruby 2
Emerald 1
Topaz 3
Diamond 4
Sapphire 3
i can't use fgets
ahhh i still can't figure this out here's what i have now, but its basically doing the same thing can anyone help?
main()
{
char board[30][30];
int b_rows, b_cols;
char...
is there a way to store just the first letter of the name in the first array and then the number in the second without using strings? Again i only need to store the first letter in the array not the...
ok i'm trying to input the following input into my program:
4 6
Ryan 4
Peter 5
Harold 2
John 9
ok why does my program not even allow me to enter in a character for the "c" variable?
heres the code:
#include <stdio.h>
main()
{
int board[30][30] = {{0}, {0}};
just curious how about this:
*
**
***
****
***
**
i can't use break;
ok here's what i need when variables are base1=4 and height1=6:
*
**
***
****
****
****
ok i have some code for a trapezoid but what code will make this work with specific height and base inputs? here's what i have:
for (row = 1; row <= height1+1; row++)
{
for (space =...
ok i have loops that print out triangles like this:
*
***
*****
and
ok i have a loop that will make a diamond, i can't get the freaking dimensions right, i dontk now what to change, i've been fiddlin around with the variables but can't figure out what to change by...
can anyone help?
ok the correct output for 1 5 6 0 would be a triangle with the base of 5 and height of 6. I know that this isn't possible but i want the second number to be the base input and the 6 for the height...
ok the problem that exists is that i dont know how to make it work with the given height and base values, i need to have the base and height values incorportated into the for loops, anyone understand...
ok here;s my code:
#include <stdio.h>
main()
{
int shape1, shape2, shape3, shape4, shape5;
int base1, base2, base3, base4, base5;