15,551 Topics

Member Avatar for
Member Avatar for saphira

Hello guys, i'm trying to write a menu for a C program that should implement a bank system but i'm having problems with my code... I have tried to follow the example that my tutor gave on her lecture presentation, but to be honest i don't think i'm on the …

Member Avatar for Salem
0
4K
Member Avatar for aarti_gehani
Member Avatar for nucleon
0
70
Member Avatar for aarti_gehani

hi... i actually want to read the raw file(CR2 file) of jpeg image using turbo C... i m confused regarding the lib to be used and variable initialization i.e. do i need to define structure or array having pixel size... plz help its urgent...

Member Avatar for Ancient Dragon
0
121
Member Avatar for hellIon

i am using pelles c y am i getting these errors ? something wrong wid the winbase header file?? if yes then can u tell me from where should i download another one [code] #include<windows.h> main() { WinExec ("C:\\Windows\\Notepad.exe"); } [/code] C:\Program Files\PellesC\Include\Win\basetsd.h(17): error #2001: Syntax error: expected ';' but …

Member Avatar for Ancient Dragon
0
388
Member Avatar for ZeRo 00

Hiiee der..guyss i wud be gratefull if some1 can help me to sort this bit of my programme. In the shell that i am writing I need to use cd command...(move around the path specified ..das wat i think it does in linux) I have no idea how to get …

Member Avatar for Ancient Dragon
0
81
Member Avatar for MK12

Ok, so I have a project that I've written in Python(Actually it's not done yet), its the card game "Cheat" that you play in the command prompt with (until I learn wxPython -- GUI for Python) with computer players (or other people with you). I want to distribute it later, …

Member Avatar for MK12
0
170
Member Avatar for chriscross86

hi, there, im doing a small program and the output should be as below @ ** @@@ **** @@@@@ Ive coded it, but it gives different answers..please help.the code is as below. #include <stdio.h> int main() { int i,j,k,m,a,y; for(k=1;k<=3;k++){ for(j=1;j<=5;j++){ for(i=1;i<=j;i++){ printf("@"); } printf("\n"); for(i=1;i<=j+1;i+=1){ printf("*"); } printf("\n"); } …

Member Avatar for srikanthkadem
0
84
Member Avatar for geemicah

[ICODE]#include<stdio.h> #include<conio.h> struct record_ko {char name[20]; int stno; char fav_color[20]; }record[5]; void main() {clrscr(); int no; for(int i=0;i<5;i++) {printf("\nwhats your name? "); scanf("%s",record[i].name); printf("what is your student number?? "); scanf("%d",&record[i].stno); printf("what is your favorite color? "); scanf("%s",record[i].fav_color); } for(i=0;i<5;i++) {printf("\nname:%s\t\t\t \nstudent no:%d\t\t\t \nfavorite color:%s\t\t",record[i].name,record[i].stno ,record[i].fav_color); } getch(); }[/ICODE]

Member Avatar for death_oclock
0
73
Member Avatar for slimjimmer

Hi, I am trying to validate user input from the scanf function. I have managed to ensure the input is an integer between the limits of 2 and 1000, but I haven't managed to get the program to only allow one value at input. Can I do this with scanf …

Member Avatar for Salem
0
2K
Member Avatar for mishu1516

hello dani........ plz help to get the following output using C language(array) using one nested for loop ******* ***** *** * *** ***** ******* plz...........help........quick

Member Avatar for jenilgandhi
0
231
Member Avatar for revenge2

hey guys how would i print something 60 times without actually typing the character out 60 times. [CODE=C]printf("#"*60);[/CODE] ^ which is complete rubbish and doesnt work, but what is the syntax for it? cheers!

Member Avatar for Aia
0
130
Member Avatar for jenilgandhi

plz help me... to Write a ‘C’ program to analyse multiple lines of text. First enter and store all lines of text. Then determine the number of vowels,consonanats,digits and whitespaces. Finally determine the number of vowels per line, consonanats per line and so on. Execute the program in two different …

Member Avatar for Aia
0
102
Member Avatar for swetharvss

The description of my problem is here- Suppose I have an array of arrays- 1.1) 23445 1.2) 2144 1.3) 77988 1.4) 545 1.5) 52358 2.1) 2356 2.2)7878 2.3)531 2.4)78 2.5)78090 3.1) 578689 3.2) 90877 3.3) 1345 3.4) 422 3.5) 64 ..... .... ... Now i need to compare 1.1 , …

Member Avatar for death_oclock
0
111
Member Avatar for usman_minhas

Dear All, I am Usman doing my masters in networks. Currently i am working on a project and needs some help regarding the ethernet frame forwarding on different segments. I would like to ask that does any body know about such code which forwards the frame from one ethernet segment …

0
40
Member Avatar for abhi_marichi

I need to execute some dos commands like executables(.exe) PLEASE HELP ME OUT OF THIS

Member Avatar for Narue
0
136
Member Avatar for slimjimmer

Hi. I need to make a program which outputs an array to a file. The output file needs to have two columns, one labeled m(e) another labeled v, but I can't get the columns of the array to be separated in the output file, it just prints a string of …

Member Avatar for csurfer
0
155
Member Avatar for hellIon

[code] #include<stdio.h> void main(int argv,char * argc[]) { int num1,num2; num1=(int)argc[1]; num2=(int)argc[2]; printf("%d\n",num1); printf("%d\n",num2); } [/code] wat output should i expect? is there something wrong wid this code? cus i am getting weird outputs

Member Avatar for Narue
0
154
Member Avatar for gayatridas

[QUOTE=Kerry;41762][COLOR=Blue]Hello, my name is kerry and i just sign up .Well, my question is how do reverse a number input by user using recersive function.Thanks for the help. [/COLOR][/QUOTE] I have a sequence of 5 numbers. I want to write it in reverse order. Could you please help me that …

Member Avatar for moonw3ll
0
138
Member Avatar for rambo123

hi i am not getting pointers concept.guide me to learn this concept.i can't understand the increment and decrement of pointer variable. And maximum how many dereference operator you can apply in while declaring a pointer variable. reply me asap

Member Avatar for csurfer
0
109
Member Avatar for JoannaMeier

Hi all. I wrote a small sequence to read data into a dynamic array of structures, which seems to work just fine so far as I can tell. Unfortunately a friend with somewhat more experience than I do pronounced it 'hairy,' but wasn't good enough to explain why. I'm simply …

Member Avatar for Ancient Dragon
0
101
Member Avatar for jaanu.cheruvu

HI.. i am implementing a method for password strength detection. how can i use dictionary in linux system. is there any dictionary searching method. plz.. give me reply.. regards..

Member Avatar for death_oclock
0
129
Member Avatar for stepipai

hellow everyone, can u please help me.... just a code fragment in C... the program is designed to add fraction... the user should input like this: enter the fraction to be added: 1/2 1/4 the answer is: 3/4... tnx... :)

Member Avatar for csurfer
0
89
Member Avatar for RexxX

I have an assignment I'm working on in C but I didn't want to ask for any code specifically. I just wanted to ask about the methods to use. The program reads a text file where it tells you the number of values to hash. The hash function is completely …

Member Avatar for Narue
0
148
Member Avatar for jaanu.cheruvu

hi... plz solve this .. actually binary search takes two tests inside the side the loop . Now i want with one comparison inside the loop. [U]Question is[/U]: [B]Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside.) Write a …

Member Avatar for death_oclock
0
96
Member Avatar for emj83

I am trying (unsuccessfully!) to code the game of life for an assignment, I am very new to C programming and am finding it very difficult. I am at the part where the program needs to count how many cells are live/dead and I thought it would be a good …

Member Avatar for death_oclock
0
92
Member Avatar for jaanu.cheruvu

can any1 solve this .....Given a sorted list of infinite size in which first n elements (n is unknown) are finite integers and rest are infinity, write an efficient function that finds a given number in O(ln n ) time complexity.

Member Avatar for jaanu.cheruvu
0
320
Member Avatar for Hillcoat

Hey so heres a simple program I'm making that has to calculate a number from different inputs by the user. It worked for a bit, but now when executed the command prompt screen comes up but its blank, then I try to close it and it stops responding. Then when …

Member Avatar for Ancient Dragon
0
82
Member Avatar for britto

hi everyone..... how to create a c compiler using c language.... can anyone explain the steps involved..... thnx in advance

Member Avatar for MosaicFuneral
0
427
Member Avatar for abby2589

how to use push and pop here??? thanks! #include<stdio.h> #include<stdlib.h> void push(char palindrome[20], int *top, int value) { if(*top<=10) { palindrome[*top]=value; *top++; } else { printf("Stack is full!!"); exit(0); } } int value; void pop(char palindrome[10], int *top) { if(*top>=0) { value=palindrome[*top]; *top=*top-1; } else { printf("The stack is empty!!\n"); …

Member Avatar for Ahmed_I
0
120
Member Avatar for behrk2

Hey everyone, So, for a class I am taking, I am building a Lego robot whose main function is to drive around a room and collect data (via a sonar sensor) as to where objects are in its surroundings. Some of the data I will collect is: Current robot position, …

Member Avatar for behrk2
0
110

The End.