15,552 Topics
| |
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 … | |
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; … | |
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 | |
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 … | |
#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) -: … | |
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 … | |
**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 = … | |
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 … | |
How to write a C program to count the number of mouse clicks in our Pc.Can any one give me idea for that ? | |
hi, I am writing a simple calculator program and want to know how to write my nested if conditions for perfroming calculations | |
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 | |
| |
#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++) … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> /// … | |
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 … | |
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); } … | |
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. … | |
Please tell me the all the implanted things that how to start because I am new in software development field. thank you.. | |
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 … | |
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 … | |
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? | |
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 | |
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. |
The End.