Quzah is showing you that you need to declare the function before you use it... I guess you're trying to use 'extract_op_patterns' before even you declared it.
Type: Posts; User: serruya
Quzah is showing you that you need to declare the function before you use it... I guess you're trying to use 'extract_op_patterns' before even you declared it.
the d++ should be after the checking! not before...
#include <stdio.h>
#include <string.h>
#include <ctype.h>
typedef struct{
long id;
float quota;
> for(i=0; i<10; i++)
printf("%s", dealers.name);
you want to print the same name always? maybe dealers[i].name?
>>Dealer *d .... dealer++;
you know the problem? what the hell...
>init_dealers(&dealers);
remove the '&'
And strcmp just return 0 when the strings are the same... so change to if(!strcmp...) or if(strcmp(.....) == 0)
struct person {
int age;
char *name;
};
.....
struct person me;
me.age = 16;
me.name = "serruya"; //use strcpy of course :P
sorry the question wasn't in the FAQ.
I see a lot of people talking about the differences between:
#include <iostream>
and
#include <iostream.h>
What are the differents and whats the correct choice and why?
Thanks! :)
I'm using College Linux, ohh you really tried in Debian and it didn't work? damn, no more system("pause")'s.
yes I tried before:
[serruya@programming Desktop]$ uname -a
Linux programming 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 unknown
[serruya@programming Desktop]$ cat file.c
#include...
yes, pause is platform specific, but for me as I told it always work, it works with linux, dos and windows.
Of course don't forget to include the 'stdlib.h' header file :)
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("%15s","right\n");
printf("%-15s","left\n");
>>scanf("%s",&me);
That's not pretty efficient too :) If you still want to use this, remove the '&' operator, you dont need it here. Also, for getting strings (%s) use the fgets() function, but this...
I guess you're working with windows, so Dev-C++ is a good option, if you're working with Linux, KDevelop is a great option, here a screenshot
>strstr( line, "<a href" ); maybe?
Sometimes '<a href' can contain "blank" links, like:
<a href="#" onClick="javascript:void test('lala')"></a>
It is a poor using of the <A> element, in this...
Yes hooligan, this happens a lot, you have some options, at the main( ) function, before the 'return 0' statement, use one of the following statements:
getchar();
system("pause");
You have...
Hooligan, don't worry, most books uses void main(void), luckly compilers are getting smarter and starting to tell people that the correct is int main(), so from now, just use int main() :)
Malloc cast he mean like this:
(int**)malloc(nrows * sizeof(int *));
Remove the (int**) it's not needed, compile your code with '.c' extension (as C) and you wont need to cast.
Noobie, can you try system("CLS"); and tell me if it works? Maybe it'll work for you.
change your code to:
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;;
}
You could try this two basic functions:
#include <stdio.h>
#include <string.h>
void getuser(char *email, char *out)
{
int i;
Your code looks like C++, you're using cout... hmm and don't forget you're in a C board, and not C++ board.
I don't understand really your message, you say you run a program in console, then this program prints some line in the console, then you call another program witch contains clrscr(); but it doesn't...
Hah good luck with your program :)
I really don't understand what you want completely, but I get an figure now, please try the bottom program, and tell me what you want to do:
#include <stdio.h>
int main(void)
{
int...
No, I told you... [1][1] is one element, [0][1] is another. Draw this in your mind as an matrix:
[0][0] [0][1] [0][2]
[1][0] [1][1] [1][2]
[2][0] [2][1] [2][2]
...