Hey, I'm trying to make a nice looking output, but some of the information I'm outputting is too long. I know %8s will give you 8 characters minimum, but is there anyway to do a max?
Never mind, got...
Type: Posts; User: jrfall349
Hey, I'm trying to make a nice looking output, but some of the information I'm outputting is too long. I know %8s will give you 8 characters minimum, but is there anyway to do a max?
Never mind, got...
Hrmm, still gives me problems, but thanks for the help.
Woops, meant to give a line number on that...
Are you saying I don't need to cast it at all?
I'm having a problem with incompatible pointer types
[Warning] assignment from incompatible pointer type
struct CD {
unsigned int ID;
char *Title;
char *Artist;
char *Genre;
I can't believe I forgot that frackin '&' again! Thanks. And I meant I wasn't concerned about the string for now.... But thanks for the heads up on it anyway.
I'm not concerned about the string grab, as it is working.
I'm not sure what you mean with the pointer...
Okay, I've got a small problem going on. Here goes.
struct CD {
unsigned int ID;
char *Title;
char *Artist;
char *Genre;
int Year;
int Time;
Okay, I think I get it... I don't want to add to point, I want to add to the value of point...
Only problem I get now is
[Warning] assignment makes pointer from integer without a cast
And my...
Guess I'm just not sure what dereferencing is actually doing. We haven't covered that yet.
I'm not sure if that's going to work for my particular problem
point is the beginning of a dynamically allocated array, and as such I don't really want to change it, or its contents.
This is probably a pretty simple problem to fix, but it is causing me a great deal of concern. The problem appears in the line
spot = (point+place)*y;
Where spot is an integer pointer, point is...