15,540 Topics

Member Avatar for
Member Avatar for Harshit_4

#include<stdio.h> #include<conio.h> void main() { float r, area; char ch = 'y'; do { system("cls"); printf("Enter the radius of the circle -: "); scanf("%f", &r); area = 3.14 * r * r; printf("The area of the circle is -: %f", area); printf("\n"); printf("Do u want to try again (y/n) -: …

Member Avatar for charlottegracie
0
178
Member Avatar for nadiam

Hello. I have an exercisse to convert from 24-hour to 12-hour clock. code: /*ALGORITHM READ INPUT VALUE IN 24-HOUR FORMAT DISPLAY THE EQUIVALENT 12-HOUR CLOCK WITH THE PERIODS AM OR PM */ #include<stdio.h> #include<conio.h> int InputValid24Hour(void); void Output12HourClock(int); void main() { int data; data = InputValid24Hour(); Output12HourClock(data); _getch(); } int …

Member Avatar for nadiam
0
369
Member Avatar for Anel_1

**A newbie would appreciate if someone could give him a pseudocode or any kind of explanation for the part of the code where the actual algorithm for matrix determinant is written.** using System; namespace Determinant { class Program { public static double DET(int n, double[,] Mat) { double d = …

Member Avatar for Anel_1
0
6K
Member Avatar for JohnMcPherson

Hello, I am working on a new screen for a program used by the U.S. Department of Labor. I am getting a signal SEGV (access to address exceeded protections) when I try to excute the command snprintf(rowh[1] + 30, 4, "%4d", baseyr + 1);. The string I am trying to …

Member Avatar for rproffitt
0
310
Member Avatar for venus87

How to write a C program to count the number of mouse clicks in our Pc.Can any one give me idea for that ?

Member Avatar for Seyferx
0
3K
Member Avatar for Lerato_1

hi, I am writing a simple calculator program and want to know how to write my nested if conditions for perfroming calculations

Member Avatar for ddanbe
0
210
Member Avatar for Diogo_1

I want to connect my database (sql) into a program i made on c in codeblocks but i cant find a way to do it

Member Avatar for rubberman
0
939
Member Avatar for Rukhsar_1
Member Avatar for 고시퍼

#include <stdio.h> int main(void) int movieChoice; int seatNum; int seatPlan[5][10] = { 0 }; int rows, cols; char space; void seatDisplay(int a[][10]); void seatNew(int n[][10]); void seatDisplay(int a[][10]) { //this function shows the seat plan for (int i = 0; i<5; i++) { for (int j = 0; j<10; j++) …

Member Avatar for David W
0
548
Member Avatar for omGac0W

My compiler says the Declaration syntax error is at (88,2) which is one of the brackets? I don't really know what could be wrong. Help please. I'm really new at this. [CODE] #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <conio.h> #define STD_HOURS 40.0 #define OT_RATE 1.5 int clock[5] = {98401, …

Member Avatar for chriswelborn
0
553
Member Avatar for ChangWon

hello guys, super noob here! id want to build a function which is adding number in array, and if number is out of expect, its return to main, else, it go to info_add function. its work fine if i type less than 3. ...but seems like adding number isnt work …

Member Avatar for ChangWon
0
253
Member Avatar for daniel_64

I need to implement the program through the method of communication with message passing between two processes using signal interrupts. Implementation should be realized for Synchronous state . I have to do it in Linux ( C language). I dont have any other data to solve the problem. I really …

Member Avatar for rproffitt
0
146
Member Avatar for Siva_13

Hi friends once I completed C programme in Turbo C , I can see zero errors and zero warnings . But when I suppose to go for output Iam getting note : turbo c IDLE for Windows 7\vista by AKKI. What's this meant ? And how can I get out …

Member Avatar for ddanbe
0
278
Member Avatar for AssertNull

OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World …

Member Avatar for AssertNull
0
2K
Member Avatar for PerplexedB

Hi have this code that runs well for me. It's part of my WordWrapper where Sel is defined as the Selection object. I tried to save `Sel.Font to a var f` variable, and reset `Sel.Font = f`before exit, but that does not work. "Value out of range". /// <summary> /// …

Member Avatar for PerplexedB
0
424
Member Avatar for clife

Hi , Below code prints odd and even numbers using two threads.code works correctly . But i am unable to figure out whether it works in all scenarios. My doubtful scenario is: Lets say `evenfun` thread is invoked first when the value of `count` is 2 , so the thread …

Member Avatar for clife
0
213
Member Avatar for PulsarScript

Hi,can somebody help me to call the boolean method in foreach in client. Here is my code: Client namespace Client { class Program { static void Main(string[] args) { var list = new List<Tuple<int, string>>(); list.Add(Tuple.Create(100, "Andy")); list.Add(Tuple.Create(200, "John")); list.Add(Tuple.Create(300, "Sally")); foreach (var item in list) { Console.WriteLine(item.Item1.ToString()); Console.WriteLine(item.Item2); } …

Member Avatar for PulsarScript
0
2K
Member Avatar for sidyusuf

Hi Friends, I have a numbervalidation method that validate phone no textbox. What i need is i have different windows forms, so where can i define this method so that i can access it on different forms globally. Like in VB.NET we have Modules, is their something in C#.NET too. …

Member Avatar for ddanbe
0
818
Member Avatar for Avnish_2

Please tell me the all the implanted things that how to start because I am new in software development field. thank you..

Member Avatar for Reverend Jim
0
86
Member Avatar for Zaal

Hi guys, want to convert PYTHON to C and RUBY anyone can help me with this? I have tried to find some online services, but can't find.. if someone can recommend free service, i'll be happy. I want to convert this simple code to C, RUBY,NODE JS http://hastebin.com/kibaraganu.pl Someone can …

-1
147
Member Avatar for DavidB

I am trying to translate an old FORTRAN program to C++ and appear to have hit a brick wall. I do not understand how one of the variables returned by a sub-routine can ever take a particular value. I am not a FORTRAN master; maybe somebody here is more familiar …

Member Avatar for rubberman
0
489
Member Avatar for Fola_1

We have a client who needs to make the cash withdrawal option of their ATM's Inactive once the ATM runs out of cash or if there is a cash jam. Can anyone help with this?

Member Avatar for JamesCherrill
0
209
Member Avatar for Johnny_2

trying to Write a program that accepts an applicant to enter his or her marks based on the criteria of clusters, compute the mean and advices whether one qualifies for admission to a university,Maseno, or not. The two groups must be implemented as functions

Member Avatar for shaazzad
0
107
Member Avatar for can-mohan

Hi, I would linke to know what is the best way to synchronise the shared memory segment. is threads usage are also advisible whie synhcronising the shared memory segement. in what circumstances we should use threads or semaphore to synchronize the memory segment.

Member Avatar for rproffitt
0
457
Member Avatar for johans22

Got blue, red and yellow lights that each can turn ON independently of one another. Using operators, structs, etc. how to obtain the current color, if having: Red & Blue is purple, Blue and Yellow is green and Yellow & Red is Orange. This is not a homework.

Member Avatar for rubberman
0
266
Member Avatar for Ghada_1

Can someone help me please find the ploblem with this program ? I know it's a question of a misssing pointer but i don't know where to put it .. #include<stdio.h> void remplissage_matrix(char M[50][50],int l , int c); void remplissage_elements(int l, int c ,char M[50][50],char elements[100],int *n); void remplissage_histo(int histo[100],char …

Member Avatar for StuXYZ
0
235
Member Avatar for johans22

typedef struct { unsigned char Val1; unsigned char Val2; unsigned char Val3; unsigned char ValArray1[2]; unsigned char ValArray2[2]; unsigned char ValArray3[2]; unsigned char Val4; unsigned char Val5; }s1; From the above structure, would like to map only the Val3, ValArray1,ValArray2 and ValArray3 to series of bit values using ideas like …

Member Avatar for AssertNull
0
255
Member Avatar for sudip_1
Member Avatar for Linzi c++

I'm trying to make an interactive calculator to solve the volume of a sphere. The thing is that I can't seem to make the program let the user input their own number for example, What if the user wants to the number four as the radius? Here is what I …

Member Avatar for David W
0
337
Member Avatar for HenCa

I have an Archive Static Library file is called "Web Server.a". I need to recompile it with my updated .h and .c file in the same name folder "Web Server". In order to recompile it I was told that I need to use GNU. I used to use Cygwin for …

Member Avatar for rubberman
0
285

The End.