15,551 Topics
| |
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 … | |
hi all... i want code for reading a binary file in C. can anyone help? | |
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... | |
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 … | |
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 … | |
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, … | |
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"); } … | |
[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] | |
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 … | |
hello dani........ plz help to get the following output using C language(array) using one nested for loop ******* ***** *** * *** ***** ******* plz...........help........quick | |
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! | |
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 … | |
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 , … | |
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 … | |
I need to execute some dos commands like executables(.exe) PLEASE HELP ME OUT OF THIS | |
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 … | |
[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 | |
[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 … | |
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 | |
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 … | |
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.. | |
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... :) | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
hi everyone..... how to create a c compiler using c language.... can anyone explain the steps involved..... thnx in advance | |
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"); … | |
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, … |
The End.