15,551 Topics
| |
I've got to write a program where it replaces a letter with a dash and then asks the user to enter the letter that should be their. I've written a program and It works the first time around and then prints out two lines. Where have I gone wrong ?? … | |
Hello Friends I want to pass a Double Dimension Array to a Function using Pointers... Right Now i am doing this.. [CODE] # include <stdio.h> void show(int *,int,int); int main() { int a[3][3]={1,2,3, 4,5,6, 7,8,9}; show(a[0],3,3); return(0); } void show(int *p,int row,int col) { int i,j; printf("\n\n\n"); for(i=0;i<row;i++) { for(j=0;j<col;j++) … | |
Hi, As part of porting a (mostly C++) library[1] to a "new" operating system[2], I'm trying to link the library's semaphore class to the platform's semaphore implementation. The problem is that the library assumes that the semaphore implementation will be a modern POSIX one[3] but the operating system's semaphores are … | |
Please give Free download links of Latest and Best C/C++ Compilers for Windows... | |
question about pointer and array. can we add a 2-D array (**A) with a 1-D array (*B)? both of the array is define as a pointer in the program. where array A is A[i][j] and B is B[i] new in C programming and pointer is difficult.... :-| | |
Please can you tell me where I've gone wrong !!! thanks Sam [CODE]#include<stdio.h> #include<stdlib.h> #include<ctype.h> #include<string.h> int main() { char array[80]; // input array int i=0; // loop counter 1 int vo=0; // vowels int co=0; // consonents int ot=0; // other characters printf("please enter string\n"); fflush(stdin); gets(array); while(i!=80) { … | |
Hi advance thanks... kindly let me know the detail command and communication with smart card... tell me the reference and suggestion....i have 94POS Machine.. i need to write and read the data from 94POS Machine with smart card... | |
Hello, I am trying to read two floats from a file written in its first line using the below code but after compiling I always get "wrong dimnesions" coulp please help me in that problem. Thanks in advance. [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> int main() { float … | |
Please give me code demo by C or C++ : Speak file text ! HRESULT hr = S_OK; CComPtr <ISpVoice> cpVoice; CComPtr <ISpObjectToken> cpToken; CComPtr <IEnumSpObjectTokens> cpEnum; //Create a SAPI voice hr = cpVoice.CoCreateInstance( CLSID_SpVoice ); //Enumerate voice tokens with attribute "Name=Microsoft Sam” if(SUCCEEDED(hr)) { hr = SpEnumTokens(SPCAT_VOICES, L"Name=Microsoft Sam", … | |
Hello, Im looking at this weird little code fragment I stumbled upon the other day and I cant figure out how it works. OK, I get the picture how the array is filled up to the fourth index, but that descending part is evil. And weird. :) [CODE] #include<stdio.h> int … | |
Hi Every one in this great community ...i need help with Nokia BlockD game algorithm i really do not know how to start ,,,please could anyone here can get my feet on the stage ,just help me with some ideas to be able to get started: The rules of the … | |
| Hello all, I turn once again to the wisdom of the internet: I have attached my two files to this post as to not use up a whole lot of space. The program is a mock "assembler" it takes mock assembly code and turns it into a file with hex … |
Alright, so I've spent countless hours on this code and I need a fresh pair of eyes to give it a glance... This is my third assignment for my datastructures class, where I am to write code that turns a fully parenthesized expression (such as "((3+2)/(3-8))") into aan "arithemtic expression … | |
[CODE]#include <stdio.h> #include <windows.h> void main() { int i; for(i=0; i<21; i++) { if(i == 5) { system("cls"); printf("\n\n\n\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\t\t *** ***\n"); printf("\t\t *** WELCOME TO ***\n"); printf("\t\t *** CLASS ATTENDANCE SYSTEM ***\n"); printf("\t\t *** ***\n"); printf("\t\t ***************************************\n"); printf("\t\t ***************************************\n"); printf("\n\n"); } if(i == 10) { … | |
I want to read a bmp file in c. i can read the header but now i need to see het photo. the attachments is am exemple. [CODE]#include <stdio.h> /* We moeten een apparte struct aanmaken voor de Magic Number, anders krijgen we een foutieve waarde hiervoor.*/ struct MagicNumber{ unsigned … | |
please help me.. here's another one.. 2 dimensional array program that computes the sum of data in columns and sum of data in rows. 3x3 array variable. please help me.. | |
[COLOR="Green"]Hello everybody I am writing a mini program in Linux I have a message queue which has a default maximum capacity of bytes that can be written in it. I am trying to modify this capacity. I googled for a solution and tried to change the value of (msg_qbytes) by … | |
I am new to c prog. I have a project to do and i'm finding it difficult to do . it is a power transfer circuit with a programmable power supply,the power transfer circuit ,and the programmable load any help would be very appreciated!!!!:( | |
Hi, i'm a student and i needed help in storing all my information from C to a text file. Could anyone help me out. Thank you | |
I'm having an issue with my program when taking in a string. I have two variables (ones for testing), char xpr[50] and char tst[50]. xpr gets it string by fgets --- fgets(xpr,50, stdin); tst gets it value by strcpy --- strcpy(tst, "((1 + (2 * 3))*(2*3))"); when prompt, I put … | |
I was trying to do some simple exercises on recursive functions: 1. Write a function using Recursion to print numbers from n to 0. My solution: [CODE]int integer(int n) { if(n>=0) { printf("\n%d",n); integer(--n); } }[/CODE] The next exercise was 2. Write a function using Recursion to print numbers from … | |
I have the following array below apart from it having more data and its all stored in a string array. how would I sort it so that It goes from highest to lowest. col 0 col 1 example 0 90.87 example 1 100.87 example 2 873.88 example 9 88.98 to … | |
Hello DaniWeb, [INDENT]I am making a command line program, which does not use a GUI. However, I am wondering if there is any code that I can use in order to change the program's icon (the one that appears on the top-left of the window, or in the Taskbar)?[/INDENT] | |
Input rows and columns manually. Like this: input column: 3 input row: 2 then the output must be: 1 2 3 2 4 6 it's continuous. so if I enter new number in columns and row, it will display the numbers included. What is the code applicable for this. I … | |
The user is asked to input the number of days in a month and the first day of the month. Here is the sample output: Input the number of days in a month: 30 input the first day of the month: 4 0-Sunday 1-Monday 2-Tuesday 3-Wednesday 4-Thursday 5-Friday 6-Saturday Sun … | |
Hi all, I have used popen function to run a shell script in my c program.. using that shell script, i write some floating point vale to a temporary file.. Then i tried opening that file using fopen and i used fscanf to read the only floating point value that … | |
guys, ive copied a code about socket programming just to see how it runs. problem is i cant compile it everytime i compile client.c it shows and error. here is the error [CODE] client.c: In function ‘error’: client.c:9: warning: incompatible implicit declaration of built-in function ‘exit’ client.c: In function ‘main’: … | |
I know how to test for a blank space,but how can you test for more than one blank ? | |
i have done program as below. need to input no of students and no of subject. no of subject and student is undefine. every entered marks should produce its grade. in this case i've defined the no of subject by right it should be entered by user. how can i … | |
[COLOR="Green"]Hello Friends... i made this Queue Program in c and its working good.. But I want to make it circular Queue please give some ideas..[/COLOR] [CODE] # include <stdio.h> # include <conio.h> # include <stdlib.h> # include <string.h> # define QSIZE 5 typedef struct{ int head,tail; char names[QSIZE][30]; }QUEUE; void … |
The End.