Thanks .I found my problem is the if clouse
Type: Posts; User: lio
Thanks .I found my problem is the if clouse
I thought that the a.out is countet for argument to,any way i did a.out 123 it print enter arguments,i try a.out 1 2 4 -nothing,
a.out 1 2 -nothing prints out,
Is that the right place for the flash
#include <stdio.h>
int main(int argc, char *argv[]){
if(argc<3)
{
fprintf(stderr,"%s\n","Enter the arguments");
fprintf(stderr,"%s %s %s"...
YEs :))
first run it cc file.c
then
a.out 4 6
Thanks .I did it and there are no errors,but it is not printing anything
#include <stdio.h>
int main(int argc, char *argv[]){
if(argc<3)
{
Thank you ,could you tell me hot to pass integers
Hi,I am trying to print the first passed argument,but doesnt work,no error just not printing it.
Thanks
#include <stdio.h>
int main(int argc, char *argv[]){
if(argc<3)
{...
I wrote this program for checking matching brackets using stack.I have to figure out the complexity of the program,but I have know idea how
Thanks
#include <stdio.h>
# define MAXSIZE 100...
Hi ,I need to figure out the running time of a program ,is there any build in function in c(like System.currentTimeMillis() in JAVA),or I have to write one
Thanks
Hi,I am trying to compare if the entered string is with opening and closing brackets using stack
everithing works OK ,but my varabales brace,c bracket and par ,are not updateing (they stay 0)
the...
Thanks a lot,that was the problem
One more question,how can eliminate Ctrl +Z from counting
I Try,but didnt work
if(c!='^Z')
try this ,dont work
if(c!='26')
Thanks a lot, the new line was the problem
Thanks,i fixed it,
the same problem
It doesnt print anything.EOF for windows was ctrl Z,right
Why this program doesn print the size of the entered char
Thanks
#include <stdio.h>
int main()
{
int c ;
int count=0 ;
Thanks,
Common tater
I pasted your code agin and it works
Hi ,I wrote this functiont to check for abanded characters ,but it doesnt work
I need help
Thanks
The errors are missing terminating characters
int checkout(char letter)
{
char...
Thanks
I am trying to set each elements value to its column(prev dimetion)
How can I do that
Thanks ,I fixed that but still the same problem
Hi ,I am confuse a little,why the print(in red),which supposted to print the first element in the array in this case 0 is printing 2
Thanks
#include <stdio.h>
void FILL(int masif[3][5][5]);...
Thanks
Thanks
I am trying to pass to the function array defined by the user ,how can I do that
I am trying to define function that takes as input a 3 dimensional array, and its dimensions
#include <stdio.h>
#define fd 5
#define sd 5
#define td 5
void inputArray(int fd,int sd,int...
If I declare the function like that ,it gives me error that the variables are not declared
Function that takes as input a 3 dimensional array, and its dimensions
How can I do that
void inputArray(int fd,int sd,int td,int array[fd][sd][td])