69 Posted Topics

Member Avatar for gahhon

You want single instruction ??? I dont think thr are any such instructions which can calculate number of occurances.. But you want a program to calculate it [URL="http://www.daniweb.com/code/snippet329277.html"]Count alphabets[/URL]

Member Avatar for Shankye
0
78
Member Avatar for rukia020

Post what all you have .. How you going to calc grade using percentage thn anyone 'll help you

Member Avatar for Shankye
0
2K
Member Avatar for jeremy62

You can use a simple switch .. May be like this.. [CODE]#include <stdio.h> int main(void){ while(1){ int opc; printf("What u want to do?\n"); printf("1. smthing\n"); printf("2. smthing\n"); printf("Your Choice: "); scanf("%d",&opc); switch(opc) { case 1 : FirstFunction(); break; case 2 : SecondFunction(); break; .. .. .. default: printf("Wrong Choice\n"); break; …

Member Avatar for Shankye
0
263
Member Avatar for shellac85

u not defined both variables .. and on 169th line u allocating memory but u not holding its address .. I think correct line there may be [CODE]guessWord = (char *) malloc ((sizeof(char)*2000)+1);[/CODE] sry if its wrong not read your full program ..

Member Avatar for Shankye
0
211
Member Avatar for esy928

Reading others code code is a good way to learn but if you code by yourself you 'll get to learn lots of things .. I coded a similar program .. Al you need is ... [CODE] // Big while loop int direction; while(1) { if(khbit()) { //program which returns …

Member Avatar for Shankye
0
369
Member Avatar for atoivan
Member Avatar for atoivan
0
202
Member Avatar for Alerwiali
Member Avatar for sciprog1
Member Avatar for fg_aa_c

I dont have clear idea but write() function, may be it writes in binary mode so may be thats why text editors complaining ..

Member Avatar for Madawar
0
127
Member Avatar for atramposch

Is this you talking about?? [CODE] while( (ch=getchar())!="\n" && i < MAX_SIZE) { input[i] = ch; i++; } input[i] = "\0"; [/CODE]

Member Avatar for Shankye
0
159
Member Avatar for moroccanplaya

All of us understands C language more easily .. Post part of code u coded so that everyone can get a clear idea what help you want..

Member Avatar for moroccanplaya
0
113
Member Avatar for Transcendent

Whats your error??? Answer not correct? Use a larger data type .. instead of [CODE]int num=1;[/CODE] try [CODE]long num=1;[/CODE] or [CODE]long long num=1;[/CODE]

Member Avatar for Shankye
0
167
Member Avatar for rain.divine88

Scan String thn use a function like [CODE]int isNum(char c) { if ( c < '0' || c > '9' ) return -1; return c - '0'; }[/CODE] Function works for single char .. you may try for string .. or else u can use same function for every char …

Member Avatar for Shankye
0
160
Member Avatar for quangvn

[CODE]#include "stdio.h" main() { FILE *fsource, *fd; char ch; fsource = fopen("file_name", "r" ) ; if ( fsource == NULL ) { puts( "Cannot open source file" ) ; exit(0); } fd = fopen ( "Destination", "w" ) ; if( fd == NULL ) { puts ( "Cannot open target …

Member Avatar for Shankye
0
168
Member Avatar for westony

Oopppssss .. See in ur [CODE] for(i; i<(i+p); i++) { printf("Enter %d number:",i); scanf("%d", &(*(a+i))); }[/CODE] i <(i+p) when i increaments it increaments on either side.. Condition cant fail unless p=-i .. Soluction is simple use another variable to store count of elements [CODE] int temp = i; for(i; i<(temp+p); …

Member Avatar for Shankye
0
108
Member Avatar for ram619

Program works fine with scanf also but fflush(stdin) at 19 n 22 are must ..

Member Avatar for ram619
0
185
Member Avatar for Shaabangbang

It may help u ... Donwload with source code .. http://shashankkulkarni.co.cc/progs/addressBook.html

Member Avatar for mfaisalm
0
231
Member Avatar for mfaisalm

I dont think thr are any special functions to do tht but u can use older Borland C to change text size color them etc .. Check graphics.h header ..

Member Avatar for Kamatari
0
109
Member Avatar for MNR
Member Avatar for iamthwee
0
641

The End.