- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 1
- Downvotes Received
- 13
- Posts with Downvotes
- 6
- Downvoting Members
- 10
21 Posted Topics
hei May I know how to handle dev cpp; It shows error even for simple programs which I had successfully run in turbo c 3.0 | |
Following is my code for reading from a file. #include<stdio.h> int main() { char s[10][10]; int i=0,j=0; FILE *ptr=fopen("input.txt","r"); char c; while(fscanf(ptr,"%c",&c)!=EOF) { if(c=='\n') { s[i][j]=0; i++; j=0; } else { s[i][j]=c; j++; } } s[i][j]=0; fclose(ptr); for(j=0;j<i;j++) printf("%s\n",s[j]); return 1; } and content of input.txt is A->XAZ|Yz|z X->xZ|x Z->Xz … | |
Is there any method to deal with distributed deadlock when multiple instances are available for each resource type? I think method of wait-for graph and chase algorithm can be used only when single instance of each resource type is available. | |
I have made a simple socket program so that client can connect to server by specifying ip of system in which server is running. And in server we can type characters which will be received by client and client will store it in a file. I want to clear some … | |
Can anybody share the algorythm to perform inorder traversal of a binary search tree using parent node(without stack or recursion) | |
Hi, I'm trying to make a simple applet that will display battery status using gtk+ . For that purpose I have written code given below. It continously check for battery status using acpi command and display it. Do you think that I have done things in proper way? I want … | |
Is there any standard function in gcc that is equivalent to getch() so that I can read the input without hitting enter key? ![]() | |
Now I'm learning basics of gtk using C. In gtk the declaration of a text box is as follows GtkWidget *gtk_text_new( GtkAdjustment *hadj, GtkAdjustment *vadj ); Here can anyone tell me what is the meaning of hadj and vadj? I mean what type of value we should pass? | |
Following is the one of code written by me for shared memory. Problem is that program donot come outside from marked loop and read numbers infinitely. "common.h" [CODE] struct common { int a[10],b[10],c[10],flag; }; [/CODE] p1.c [CODE] #include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<sys/shm.h> #include"common.h" int main() { int running=1; void *shm=(void *)0; … | |
I'm trying to design Programmable Logical Array using c language. Due to lack of time I downloaded code for tabulation from internet. Now I have modified it to return f and f' in a character array. It works fine for some functions. But it shows memory allocation problem for some … | |
This is the question appeared in our sessional exam related to shell programming What do you mean by $?,$#,$* and $$. Can anyone help me to answer this question? | |
I'm using Toshiba satallite laptop. It is working fine. But when I turn on it a black screen with blinking cursor appears instead of chipset logo. And then boots normally. In this situation, how can I change the first boot device for a new OS installation? | |
Following is the code written to implement a employ manipulation system using pointer to structures . It makes some allocation problem in dev-cpp while work well in turbo c. Can you help me to understand the problem[CODE] // Implement pointers to structures to produce employ manipulation and produce output //as … | |
[CODE] #include<stdio.h> #include<conio.h> #include<malloc.h> int main() { int i=0,j=0,n=0; char *a,**b; a=(char *)malloc(sizeof(char)*50); printf("Enter your text\n"); gets(a); while(a[i]!='\0') { *(b+n)=(char *)malloc(sizeof(char)*20); //error for(j=0;a[i]!=' ';i++,j++) { *(*(b+n)+j)=*(a+i); } i++; n++; } printf("Words in given text are \n"); for(i=0;i<n;i++) { puts(*(b+i)); printf("\n"); } printf("Possibile combinations are \n\n"); for(i=0;i<n;i++) { for(j=0;j<n;j++) { if(j!=i) … | |
Can anyone tell me the logic to solve common emitter biasing of a BJT using c programming language? Just tell me the idea. No need of program. | |
Source code implemented by [B]Niyas C S2C PPMHSS Kottukkara Kondotty Malappuram Kerala St India[/B] | |
Re: [QUOTE=9122080;1095203]Hi guys, I do need a c++ programm which may "Count vowels in monosyllabic,two syllable and longer words within a string/sentence" bye.[/QUOTE] in tc [CODE]#include<iostream.h> #include<conio.h> void main() { char sent[100]; cout<<"Enter a sentence\n"; cin.getline(sent,100); int counter=0,i=0; while(sent[i]!='\0') { if(sent[i]=='a'||sent[i]=='e'||sent[i]=='i'||sent[i]=='o'||sent[i]=='u') { counter++; } i++; } cout<<"Number of vowels="<<conter+1; getch(); }[/CODE] | |
Re: undefined symbol username... your condition is not ture. while(intuser==1) is always true.. | |
Hai..... May I know how to simply include external image file in Turobo C++? Where can I get a complete tutorial for graphics in C++? | |
Hai, This is a source code written in turbo c for car racing game as a part of my higher secondary project. May I get some advices to improve it? 1.Did I use the real method to constitute motion in c? 2.How can I include sound in c? { Function … | |
Hai, I'm a higher secondary student in kerala. As our project I have to create a simple car racing program in c++. I implemented the following code fragment. May I get some instructions to improve it? Especially the method of accessing input to controll movement of object? [code=c++]#include<iostream.h> #include<conio.h> #include<dos.h> … |
The End.