Hi all:
Can anyone please give me a hand on how to write my own makefile?
I have programming under Windows, do not know much about programming under Linux.
Thank you
Type: Posts; User: yuzhangoscar
Hi all:
Can anyone please give me a hand on how to write my own makefile?
I have programming under Windows, do not know much about programming under Linux.
Thank you
Hi all:
How do I add command in line arguments to a project built in Visual Studio?
Cheers
The outcome I want:
long custid - 2 - 12 "No bugs"
After I read from the file:
long
custid
-
2
Hi all:
I need to read a string from a file as following:
long custid - 2 - 12 "No bugs"
I am thinking of using fscanf(), but the...
Do not worry about it. Solved.
What happened:
A bad pointer is a pointer that points to nowhere.
I made a stupid mistake somewhere else.
Cheers
Hi all:
In my code, I declared a structure:
typedef struct VIEW_MEMBER_TAG
{
char *VIEW_NAME; //Has to be less than 16 chars.
char *type_ptr; //The type of a member.
void push(char* string)
{
size_t N = 0;
VIEW_MEMBER* newmem = NULL;
newmem = (VIEW_MEMBER*)malloc(sizeof(VIEW_MEMBER)); //Need to check for error here.
InitializeStack(newmem);
N...
Hi all:
I declared a structure in the .h file to implement a stack:
typedef struct VIEW_MEMBER_TAG
{
char *ptrString;
struct VIEW_MEMBER_TAG *ptrNextViewMember;
}VIEW_MEMBER;
Hi all:
I have declared a pointer as following:
char *stringPtr = NULL;
stringPtr = malloc(10);
After I finish with it,
free(stringPtr);
Cheers.
Thank you for your help
Hi all:
Can I declare a pointer as:
void *ptr = NULL;
and later use it to point at any type of data?
Cheers
Hi all:
I need to create a stack that stores string pointers. But I do not really know how exactly I am going to start, can any one give me a hint?
Thank you
Hi all:
It is easy to declare a pointer that points to a integer:
int *ptr = NULL;
My question is how to declare a pointer that points to another pointer, basically a pointer that...
You got it exactly right.
I was so confused.
I am very glad to have helpful people like you around.
Cheers
Hi all:
I need to measure the size of an alphanumeric string. But I found out when I used sizeof() on the following strings:
1: VIEW1
2: VIEW10
The result I got was 4 for...
Ennnnnnn.....
That is right. I did not think that far. Thank you for your reply.
Thank you
? Not so sure about it.
Because when we include header files, it is simply a copy and paste action.
So my guess is that it does not really matter but I heard a few times that header file should...
Hi all:
As a general rule for good programming practice,
Should I put the following structure declaration in a header file or in a .c file?
typedef struct VIEW_TAG
{
char...
Thank you laserlight.
Hi all:
I have written the following block of code:
typedef struct VIEW_TAG
{
char name[16];
VIEW_MEMBER *ptrViewMembers;
VIEW_MEMBER *ptrLastAddedMember;
Hi all:
I have assigned a task to basically process a text file. One typical line of text in the file is shown below:
long custid - 4 - 12 "no bugs"
There...
Thank you all. I have solved my problem, cheers everyone.
Hi all:
I have been given a text file full of text pattern as shown below:
# VIEW OBJFILE = iiomsview16.V
VIEW II_STD_HEADER_T
# TYPE CNAME FBNAME COUNT FLAG ...
Cheers, will try it out.
Hi guys:
Thank you for your reply, but I think because I put my question the wrong way, it somewhat misled you.
Here it goes again:
In this assignment, I was asked to read...