Has anyone had success with these? I have three that I just put in our staging environments, and I am having a very hard time with get them to register with the management / service center server. I was running HFA_08 on the mangement server and was able to register the appliances that were...
>> use /t for a tab /b for a single blank
reply if it helped
yogesh >>
It helped a little, but the names still align unevenly since each set has a different amount of characters.
It's running okay now. But one more question. How do you align strings up? I'm trying to do this.
fprintf(writefile1, "%d%6s%15s\n", id[i], botanical[i], common[i]);
But it's coming out like this.
Thanks, it's running okay now.
But one more question. How do you align strings...
>> kaotic,
there is absolutely no problem in this part of your code
and there is no segmentation fault in this part
it may be a a minor compile
time fault depending upon you compiler but that has
to do with the line seperator
there may be segmentation fault in other parts
this part of...
Nevermind that. I fixed it, but now I have another segmentation fault in this function for some reason.
retailHeading(writefile1);
void retailHeading(FILE *writefile1)
{
fprintf(writefile1, " Beautiful Plants, Inc.\n");
fprintf(writefile1, " Retail Plant...
Oh, and I don't know what happens to the i's. But it should come out like this.
while (!feof (readfile) )
{
fscanf( readfile, "%d%s%s%d%d%lf", &id[.i], botanical[.i], common[.i], &maxinv[.i], &stock[.i], cost[.i]);
i++;
}
Okay, thanks it worked. But now I'm getting a segmentation fault for this while loop. What should I do?
while (!feof (readfile) )
{
fscanf( readfile, "%d%s%s%d%d%lf", &id[i], botanical[i], common[i], &maxinv[i], &stock[i], cost[i]);
i++;
}
OK, I'm using pico on the unix system, and I'm trying to run a program with strings, arrays, functions, and file statements. How do I pass character string arrays to functions? I tried doing it like this, but I keep getting errors.
char botanical[40][n], common[40][n]; /* n defined as 30*/...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.