ok so written like this, they are all seperate. i am not sure what you mean by deferencing my points though. i need to use x p and q instead of x y and z?
#include <stdio.h>
#include...
Type: Posts; User: tgarrisoniv
ok so written like this, they are all seperate. i am not sure what you mean by deferencing my points though. i need to use x p and q instead of x y and z?
#include <stdio.h>
#include...
ok, how else can i point to a pointer? im a bit confused. the assignment is as follows:
Write a program that creates the structure shown in the figure below and reads data into a and b using the...
pointers are as follows:
x points to a
y points to p points to b
z points to r points to q points to c
pretty basic, first pointer program i have written. format is for a*b=c.
a has pointer *x, b has pointer *p, and **y, and c has pointer *q, **r, ***z. using *x, **y, and ***z to print results. it...
i just dont know what to do to get it to run. im not sure what you mean. im pretty new to programming... i made the 4 functions for clamping with the claw, releasing with the claw, going back and...
ok, so i have a robotc that is to navigate a course, find a colored block and deliver it to the correct corner. there is red, blue, and red.
this is the program i have so far and it is a...
anything else that i could improve upon in this code? trying to be a "good" programmer not just one that can put stuff together and hope it works
ok thanks,
i originally had the int menu(void) up a few lines out of the function but it says "declaration for parameter 'menu' but no such parameter but when i have it where within the function,...
#include<stdio.h>
#include<stdlib.h>
int genrand()
{
int menu(void);
int random;
i want to make the menu in this program a function so it will be at the bottom and you simply call it without it being in the main. I tried but when i did it didnt like the way i returned it to the...
ah i figured out my problem. works fine now. thanks for the tip!
HMM.... doesnt work for me. it says subscribted value is neither array nor pointer for that line. i am running code blocks with gnuc compiler...
nevermind, i got it! i just used exit(0);
thanks a lot!
ok but the page you are referring to does not operate.
how do i make this repeat? my way is not working...
#include<stdio.h>
#include<stdlib.h>
// Global Declarations
int MonthDays[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
char *months[]=
its due in an hour....:(
how do i get the program to stop after it prints "INVALID CHOICE"?
/*
This is a menu driven program that prompts a user for either the smallest, largest, sum, or average for a group of 5...
task is to create a program that asks for year and prints calendar for entire year. this is by the far the largest program i have written so far. i am trying to take it in small pieces. i think the...
thanks everyone, i got it all working properly!
ok it runs fine but the sum and average functions dont work for some reason.... it doesnt return anything. any ideas?
thanks!! i also had to remove the
option return;
ok, task is to create a menu driven program that asks for 5 integers and asks if you want to find sum, average, largest, or smallest. I have created some of the program but i am not lost. how can i...