Sorry couldn't find the edit button so i guess ill just repost. I've added some comments to clear it up as best i can but a lot of this code is just pieced together from the professors code of sobel...
Type: Posts; User: DaNxTh3xMaNx
Sorry couldn't find the edit button so i guess ill just repost. I've added some comments to clear it up as best i can but a lot of this code is just pieced together from the professors code of sobel...
I'm writing a canny edge detector for my intro to robotic vision class. There are output samples to check if we have it right, and my magnitude image is coming out exact but my peak finder is not...
yup. almost got the output right just a few more tweaks thanks for the help
through commenting out sections ive narrowed the segmentation fault down to this part:
if(header->prev == NULL)
{
header->prev =...
I can't, that stuff in the headers was given to me and im not allowed to alter it.
So i've never really worked with doubly linked lists in terms of coding, and I didn't do great with singly linked lists either. I have it all coded out but it's giving me a segmentation fault when I...
OK thanks. Now I just need to find out if they already are defined somewhere that i don't know or if i have to make them myself.
but at least now i know, thanks.
Yes I know there are threads on this but ive viewed multiple ones and i just don't get it. This is my first time operating with things like this and my teacher didn't even explain it to us so im...
i changed it to: if (!strcmp(event_name, "LOGON")) return LOGON_EVT;
(took out the [1] completely and it did what i wanted. so thanks for the help)
tried this:
int i =0, len = strlen(event_name[1]);
if (!strcmp(event_name[1], "LOGON")) return LOGON_EVT;
if (!strcmp(event_name[1], "SIO")) return SIO_EVT;
if...
Here is the function description:
Capitalize event name so that case does not matter
Verify that name's length is shorter than constant the EVENT_NAME_LENGTH_MAX
For event ID = 0 to...
so i would just have 9 string compares in the for loop checking for each one individually? if so then how do i return the integer value of the event just return LOGON_EVT; ?
So I really haven't used enumeration since my intro to c class and now have to for this program. I'm having trouble understanding how to go about using it.
In a header file that was given to me i...
*working*
no the computers are decent (im at a university)
it just pops up and says birthday.exe stopped working.
i ran through the debugger and it just stops once i go over my mergesort call, but if i...
OK so I have this struct:
struct person{
char first[30];
char last[30];
char month[11];
int day;
int year;
int num_month;
OK so I have a struct:
struct person{
int arrivaltime;
char name[NAME_LEN];
int num_items;
};
I have used fgets to get a line that looks like '1500 ALAN 7'
Ah crap. I don't want to get a 0 because someone comes here and copies my code so I guess I'll just try to figure it out on my own within the next 3 hours. Sorry for wasting your time.
It is a matchmaking program where it compares two individuals rating of each other to calculate their "likability" and then arranges the entire group according to the best overall likability.
My...
edit: fixed the problem. thanks for looking though. It really is that every time I post here no matter how long I've been trying on my own I figure it out right after. It's crazy.
I was like oh...
2
3
Adam Bob Carl
Diana Ellen Fran
4 8 7
6 7 5
5 9 6
7 6 8
6 5 9
4 7 3
well num_each would change for every group it runs. the problem says the max will be 10 of each gender so should i declare it as that and then fill in what is needed for each run through and just...
thanks. man it is always the most simple thing.
Don't know what that means. I took it to mean that you can't tell whats wrong without the rest of my code
#include <stdio.h>
#include <string.h>
#define MAX_NAMELEN = 19
int main() {
Here are the errors i get:
line 20: syntax error before "=" (first line posted)
line 21: syntax error before "="
men_names and women_names are undeclared in this function