15,552 Topics

Member Avatar for
Member Avatar for nadiam

Hello. I have this tutorial and I'm at a lost. The program is suppose to calculate the call charges according to the rates. conditions: a) all calls start at 600pm and before 700am will be given 50% discount from the normal rate b) any calls that starts at 700am and …

Member Avatar for JamesCherrill
0
667
Member Avatar for anny**

hello !! i want to ask that in below program if i want to change cin and cout into printf and scanf then how colud i?Becuse when iam changing my program in cin and cout it is not running :( [CODE]#include <iostream> #include <iomanip> int main () { long number; …

Member Avatar for helo_1
0
4K
Member Avatar for ema_1

Hi, I have a seminar in programming. My topic is how to use the api in C and how to use the api in vb6. I dont know anything about that. Can you help me a little bit? Thank you

Member Avatar for Reverend Jim
0
185
Member Avatar for khalid_10
Member Avatar for ALi_66
Member Avatar for sciprog1

Hello Members, I want to write a C program which creates two threads and uses a semaphore (as a critical section) to sleep for 1 second and then terminate. I am having a hard time with some of the C Syntax for semaphores. Is it possible to post an example …

Member Avatar for charlottegracie
0
4K
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
451
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
311
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
953
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
549
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
576
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
280
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
425
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
214
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
825
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
87
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
148
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
493
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
210
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
108
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

The End.