15,554 Topics

Member Avatar for
Member Avatar for petrkotas

I am not sure if this is more software problem or C problem. Nevertheless, I am trying to run simple test code to check if my lapack installation is OK. [CODE]#include <stdio.h> #include <atlas_enum.h> #include "clapack.h" double m[] = { 3, 1, 3, 1, 5, 9, 2, 6, 5 }; …

0
87
Member Avatar for myk45

Hello, i needed suggestions regarding the book "Art of Computer Programming" by Donald E Knuth. im an undergraduate Computer Science student. i would like to know more about the book before i buy it. So, any reviews? Reviews as to how the Math in it is(i heard there are a …

Member Avatar for myk45
0
105
Member Avatar for robsbots

Hi all. I would like to write a network server in C to run on debian linux. I have some network code thats working, BUT at the same time I want to read data from a serial port, and process it. I want to build a linux based server to …

0
39
Member Avatar for berwick53

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 ?? …

Member Avatar for myk45
0
141
Member Avatar for vinitmittal2008

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++) …

Member Avatar for vinitmittal2008
0
10K
Member Avatar for pikpik

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 …

0
162
Member Avatar for vinitmittal2008

Please give Free download links of Latest and Best C/C++ Compilers for Windows...

Member Avatar for Ancient Dragon
0
159
Member Avatar for yaya

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.... :-|

Member Avatar for somnath Basak
0
158
Member Avatar for berwick53

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) { …

Member Avatar for vinitmittal2008
0
156
Member Avatar for stpmani

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...

Member Avatar for nitin khare
0
84
Member Avatar for Ahmed Sarwat

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 …

Member Avatar for Ahmed Sarwat
0
3K
Member Avatar for kimlong008

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", …

Member Avatar for kimlong008
0
162
Member Avatar for Joey_Brown

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 …

Member Avatar for smellissa
0
96
Member Avatar for Alerwiali

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 …

Member Avatar for Alerwiali
0
69
Member Avatar for xcr

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 …

Member Avatar for Ancient Dragon
0
172
Member Avatar for araisbec

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 …

Member Avatar for araisbec
0
677
Member Avatar for gahhon

[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) { …

Member Avatar for gahhon
0
148
Member Avatar for superjj

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 …

Member Avatar for myk45
0
235
Member Avatar for chenlynn

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..

Member Avatar for Lesetja Frederi
0
156
Member Avatar for a-humam

[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 …

Member Avatar for a-humam
0
143
Member Avatar for pappa j

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!!!!:(

Member Avatar for Adak
0
78
Member Avatar for Jollyyy100

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

Member Avatar for Adak
0
177
Member Avatar for BLUEC0RE

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 …

Member Avatar for BLUEC0RE
0
97
Member Avatar for Asif_NSU

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 …

Member Avatar for rexel0924
1
212
Member Avatar for berwick53

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 …

Member Avatar for Adak
0
196
Member Avatar for MichaelSammels

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]

Member Avatar for Ancient Dragon
0
95
Member Avatar for civirol02

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 …

Member Avatar for Adak
0
140
Member Avatar for civirol02

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 …

Member Avatar for Adak
0
415
Member Avatar for lakk

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 …

Member Avatar for lakk
0
111
Member Avatar for herms14

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’: …

Member Avatar for getlogesh
0
1K

The End.