64 Posted Topics

Member Avatar for Iam3R

[CODE] #include <gst/gst.h> #include <stdbool.h> static GMainLoop *loop; static gbooleanbus_call (GstBus *bus,GstMessage *msg, gpointer user_data) { switch (GST_MESSAGE_TYPE (msg)) { case GST_MESSAGE_EOS: { g_message ("End-of-stream"); g_main_loop_quit (loop); break; } case GST_MESSAGE_ERROR: { gchar *debug; GError *err; gst_message_parse_error (msg, &err, &debug); g_free (debug); g_error ("%s", err->message); g_error_free (err); g_main_loop_quit (loop); break; …

Member Avatar for Iam3R
0
90
Member Avatar for Iam3R

i have just written a small program on DEV C++. i have been using it for couple of months but i never observed this error. [CODE] #include<stdio.h> int main() { printf("Welcome\n"); system("PAUSE"): return 0; } [/CODE] could not create makefile I/o error 32 any idea? what does that mean

Member Avatar for Iam3R
0
96
Member Avatar for Iam3R

please provide the free pdf link of k & R c prog lang. i spent lot of time in googling but couldnot get it. thanks in adv.

Member Avatar for Tom Gunn
-4
136
Member Avatar for thebluestar

[QUOTE]which would make p1d the name of an array of 5 pointers to type int.[/QUOTE] this one [CODE] int *p1d[5];[/CODE]

Member Avatar for Iam3R
0
178
Member Avatar for s.p.i.

foa i believe this is not a bubble sort . and [QUOTE]for(n=1;n<size1;n++)[/QUOTE] is worng because in the process all ready sorted ( in descending order ) elements again go up. when i =0 n goes from 1-4 n = 1 to 4 all are less than 8 no replacements when …

Member Avatar for dkalita
0
96
Member Avatar for Iam3R

Dont know these types of questions are asked here or not but if any one has idea please help me. i just started started learning system programming and want to pursue a career in the sys prog area. below is the program that use a fork() call. i read in …

Member Avatar for dkalita
0
121
Member Avatar for Grn Xtrm

[QUOTE]I got my function to work somewhat but it only prints the number of occurrences of the first word of the last line in the last line only. [/QUOTE] because you are calling the function [ICODE]search_string(line); [/ICODE] after the statement [CODE]while ( fgets ( line, sizeof line, file ) != …

Member Avatar for Tajon Wong
0
3K
Member Avatar for miskeen

[QUOTE=miskeen;1035838]But, is there any proposed solution to what I'm looking for?[/QUOTE] you can also use function pointers to do same thing.

Member Avatar for miskeen
0
130
Member Avatar for Iam3R

Hello , i have written the code for finding the middle element of the list with 0(n) complexity. please gurus, verify that and let me know if it needs any modifications and ofcourse i have question to ask when the no of elements are odd we can easily find the …

Member Avatar for Iam3R
0
130
Member Avatar for kat_stephens

[QUOTE=kat_stephens;1034585]I'm currently working with a group of my classmates on a recipe measurement converter, and I'm currently on the most difficult code of the three that is my part of the project. The code is basically for getting the amount from the user, a fraction. I have based my algorithm …

Member Avatar for mrnutty
0
73
Member Avatar for Iam3R

written a code for finding nth last element but no idea how to caluculate complexity. how can i make this, of 0(n) complexity. [CODE]// p is position of element to find int nthlast(struct node *n, int p) { struct node *f, *s; if(n) { int cnt=0; f = n;// start …

0
97
Member Avatar for Iam3R

I am very poor in calculating complexities. Please some one let me know what is the complexity of the below program. I actually want to write a program for finding the nth last element with 0(n) complexity. but unable write, please give me some idea. the below code works perfectly …

0
298
Member Avatar for Iam3R

Hello every one, i have written the following program for testing getch function behaviour. but, as soon as i run the program i am getting segmentation fault. i dont understand the problem. i am using GCC compiler on Linux Environment. i want to test the key scan program. [CODE] #include<ncurses.h> …

Member Avatar for Tom Gunn
0
996
Member Avatar for luoyangke
Re: \n

if i use this in a program its keep on taking the return key the program not getting terminated, whats the problem? [CODE]scanf("%d\n",&j)[/CODE]

Member Avatar for Dave Sinkula
0
113

The End.