19,876 Topics

Member Avatar for
Member Avatar for senahi

Hey, I think you will be fine!!! .:) The user has posted the question [URL="http://www.daniweb.com/forums/thread346716.html"]http://www.daniweb.com/forums/thread346716.html[/URL] I want to know how to interface ADC with Micro controller and then how to display the result on LCD. Please Share some code and circuit diagram also. waiting for your reply:X Thankx....

0
44
Member Avatar for onlinessp

Hi, Good Evening,I am new to use Keil and Proteus.From last week i am writing a program,To show Alphabets on LCD, using 89c52.I am in great trouble. The code and simulation files are attached herewith.Plz elaborate my mistake and give me some hints so, I can learn. Respected, Advance Thanks …

1
249
Member Avatar for diwas1

Hey guys, I am new in C programming. I am trying to write a program in C to determine the probable value of a POWERBALL lottery ticket, given a particular jackpot amount and number of people who chose that jackpot combination. The program should ask the user for those two …

Member Avatar for Kirk Conger
0
130
Member Avatar for biancaW

could you write a program that process the weekly payroll of the Brooks Leather Company (BLC). For each employee of BLC the program will compute the gross pay, deductions, and net pay. Each week BLC enters the following information into a data file called 'paydata' for all the employees: Social …

Member Avatar for arkoenig
-3
101
Member Avatar for plang007

Here is my code: #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; float additionalTime; while(choice=='Y'||choice=='y') { cout << "\nThis program will calculate a single, couple, or group …

Member Avatar for Software guy
0
192
Member Avatar for joelem

Hello everyone, I have successfully WRITTEN an array of complex numbers into .txt file using fprintf and scanf(). However, I have no idea how to READ this file. Please see the attached code and reply with your suggestions. Thank you in advance!! Joelem [CODE] #include<stdio.h> #include<stdlib.h> #include<math.h> #include<complex.h> int main() …

Member Avatar for Adak
0
1K
Member Avatar for Oblivious21

hey everyone this is my situation. i am taking a programing course that introduces you to a few languages. the first one is C now im a java guy (not very good with it yet) im still learning but i understand the basic concepts so im not totally in the …

Member Avatar for Oblivious21
0
265
Member Avatar for xxxferraxxx

Hi, I wana to make keygen that not randomly codes, and with 2 text boxes, Like i need to add "username" and "password" to gen for me I need the code please help :)

Member Avatar for Moschops
0
110
Member Avatar for kahaly

I need to write a program, that lists keystrings for each command for a given set of commands. Input The first line contains the number n of commands for the console application. Each of the following n lines contains one command of the client. Each command is a nonempty string …

Member Avatar for myk45
0
127
Member Avatar for plang007

[CODE]#include <iostream> #include <fstream> #include <iomanip> #include <cmath> using namespace std; int main() { char fare; char choice='Y'; int hrIn, minIn, hrOut, minOut; int hours; int minutes; int total_minutes; double cost; float charge; while(choice=='Y'||choice=='y') { cout << "\nThis program will calculate a group " << "\nfare amount which is then …

Member Avatar for rxlim
0
154
Member Avatar for dprakashkumar
Member Avatar for anurag.barman

hey guys, i am trying to build a chat server.....but whn the server is sending login ack the server starts receiving out of order packets.....login ack is send when a username and password matches... format for username and password is username pasword: plz help me short out the prob. thnks …

Member Avatar for L7Sqr
0
116
Member Avatar for carlitosway17

Hi I am New to C# i Am trying to create a grade book form but I cannot build successfully because of the following error. [COLOR="Red"]The name 'InitializeComponent' does not exist in the current context [/COLOR] [code] // Fig. 19.7: GradeBook.cs // A reusable Windows Form for the examples in …

Member Avatar for carlitosway17
0
2K
Member Avatar for prvnkmr194

I have a 2d array of size 4X4 that is [CODE] int arr[4][4]; [/CODE] i want to initialize this from 1-15 but in random manner not sequential example 7 8 9 5 1 2 12 14 3 6 10 13 11 4 15 0 I try [CODE]random()[/CODE] function but iam …

Member Avatar for prvnkmr194
0
438
Member Avatar for tomtetlaw

I find the OpenGL Co-ordinate system really hard to use. I would much rather have things like glVertex2f(-100,-100) put a vertex back 100 pixels in the X and Y direction from the origin, instead of it being totally off the screen. Is there any way that I can do this? …

Member Avatar for myk45
0
269
Member Avatar for plang007

I need a lot of help with this program: I know this is a homework problem but I am really struggling with it. This program requires you to input information about rickshaw taxi fares. The ODUSPORTS is a student powered on-campus rickshaw transportation system. Upon departure, a ticket is created …

Member Avatar for ravenous
0
724
Member Avatar for yassop

[CODE]#include <stdio.h> float pounds = 0, inches = 0, BMI = 0; float kg = 0, meters = 0; char input[100], choice; int main() { start: do { printf("\n\nThis program is used to calculate the BMI of a person.\n\n\n"); printf("What kind of BMI do you want to calculate?\n"); printf("(Imperial(i/I) or …

Member Avatar for yassop
0
309
Member Avatar for whodoes21

ok so what does this do.. 1.) read the text file(most likely a c++ code in text form) line by line and display it line by line... 2.) (as the title says) check for syntax errors. ( only minor ones like missing ";" or a lack of closing braces) soooo..... …

Member Avatar for ravenous
0
2K
Member Avatar for Xytheron

Hey all. I don't want to be one of those that sounds like HW but they didn't say it was so I'll be honest, this is HW but I feel like I've done enough that it's reasonable to ask for a little help here. This is a snippet from a …

Member Avatar for charlybones
0
209
Member Avatar for EMT

Hi, I am having following code, [CODE] char str[] = "FULL MOON" printf("%c",*str); printf(" for %s",str); [/CODE] This gives output as [B]F for FULL MOON[/B] What exactly is happening inside the str,*str,str[] ? I am lost in the behavior of char array and char pointers. Kindly Help.:(

Member Avatar for WaltP
0
148
Member Avatar for davidjg

Hello all, I am new to C programming and I am currently working an encoder program that encodes text unintelligibly. I need help writing my recursive function to provide the desired output results. A sample is below. Can anybody help me out or point me in the right direction or …

Member Avatar for davidjg
0
126
Member Avatar for surfer2009

i want to write a code which determines whether a file is executable or relocatable.....i have try this code but its now working ... #include<stdio.h> #include<elf.h> int main() { int fd; elf32_ehdr myhdr; fd=open("abc.c"); if (myhdr.e_type==ET_RELl) { printf(:relocatable"); if (myhdr.e_type==ET_EXEC) printf(executable"); else printf(:other type"); return(0); }

Member Avatar for Ancient Dragon
0
90
Member Avatar for fab2

[ICODE]Hi, I am following a C course on a book, that's good. Now I am studying the functions, the different type of variables, such as static, local and global variables. There is in the chapter an example of how these types of variables behave when they are on a program, …

Member Avatar for fab2
0
220
Member Avatar for Xytheron

Hey all! Homework help again...except this time not in the way you think lol...I finished all my problems and realized there's a problem in my makefile which I need in order to submit Here's the original make file that our professor gave us [CODE] CC = gcc JVC = javac …

Member Avatar for gerard4143
0
200
Member Avatar for rockerjhr

i have to impplement a dynamic stack to create a program but when i try to compile my stack.c file(with gcc) I get a bunch of errors here are my files GLOBALS.h [CODE] #ifndef _globals #define _globals #define DATA( L ) ( ( L ) -> datapointer ) #define NEXT( …

Member Avatar for rockerjhr
0
312
Member Avatar for punter

The basic structure of the program is this: 1. issue an interactive prompt for the user to enter a non-negative number, 2. verify that the input is indeed non-negative, or that the user wishes to end the program, 3. calculate the square root of the input value, using the method …

Member Avatar for SaadBinSaulat
0
191
Member Avatar for plang007

Here is my code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <cmath> #include <time.h> #include <assert.h> using namespace std; int main() { // = (num3&&num4) - (num1&&num2); // save this calc for later: hrIn + (hrOut/60.0); // same thing = num3 + (num4/60); // write an alogorithm to establish the …

Member Avatar for rxlim
0
165
Member Avatar for sing1006

well,this is my college assignment question.the question ask us to write a program that can compare 3 number,who is the biggest and smaller.the output should be like this: Enter 3 numbers. Number1: Number2: Number3: Main Menu 1)Find the biggest value among the 3 value you have enter juz now. 2)Find …

Member Avatar for ravenous
0
389
Member Avatar for slygoth

[code] # include <stdio.h> # include <conio.h> # include <time.h> # include <stdlib.h> # include <string.h> # include <ctype.h> int start; int last; # define SIZE 10 int largest (int num[],int msize); int smallest(int num[],int asize); int main() { int num[10]={0}; int i; int min; int max; int pick; int …

Member Avatar for slygoth
0
153
Member Avatar for xshashiy

hi i want to generate non repeated random numbers many times. for that i m using the following code. [code]#include "sys/types.h" #include "stdio.h" #define MAX 200 #define N 20 main() { int array[N],r; int n = 0; int count_check,count_gen ,i,j; for(j=0;j<10;j++,printf("\n")) { srand(j); for (count_gen=0;count_gen<=MAX;count_gen++) { r = rand()%N; for …

Member Avatar for slygoth
0
225
Member Avatar for ayushi12

heyy..plz suggest me new C#.net project topics other than managemant systems..

Member Avatar for ddanbe
0
98
Member Avatar for threwup

I am having trouble with the "for loop" of a 32 bit Adder program. I am suppose to take 2 arrays of 32 bits and sum them together. The 2 errors I get are on line 37 and 38 called "called object is not in function". I don't know how …

Member Avatar for griswolf
0
118
Member Avatar for amir malik
Member Avatar for mikecolistro

The question is as follows: Write a program to read in a word that is up to 10 characters long. See if any 3 consecutive characters in the word are found somewhere else within the word. If they are, echo those characters to the screen. For example, if the word …

Member Avatar for WaltP
0
133
Member Avatar for Progr4mmer

could someone please explain to me the differences of these languages (C, C++, C#) and when i would use them. (i know a little C++)

Member Avatar for ddanbe
0
108
Member Avatar for mackemforever

I'm currently trying to create a small program that gets the user to enter 5 values, which are then saved in an array, and then the program calculates the average and displays it. Here is what I have so far, it works as far as getting the user to enter …

Member Avatar for melisko
0
154
Member Avatar for gyuunyuu

I understand the concept of bubble sort and have no trouble implementing it, but I can't grasp the concept of doing it for 2D array. I've googled for some resources but I was unable to understand those codes. So let's say I have a 2D char array with words (maximum …

Member Avatar for Adak
0
1K
Member Avatar for buniferous

I promise I read the Read This First post and also searched for relevant threads, but I didn't have any luck. I'm taking my first C++ class, and the instructor hasn't been much help when it comes to fundamental things like what compiler we should use, where to get it, …

Member Avatar for buniferous
0
280
Member Avatar for paddypowa

Hey all, A quick question, i've been picking my brain and browsing the net for a few hours now and still can't get any further. I have a simple C# windows form which acts as a login, but also has a form to change the password of a user. When …

Member Avatar for zachattack05
0
4K
Member Avatar for sachintha81

I'm using .NET 3.5 with VS 2005 C#. I created a simple application where when I select the time zone from a combo box, it displays the current time of that time zone. To do this I simply use the GetSystemTimeZones() method of TimeZoneInfo class, and then populate the combo …

Member Avatar for darkagn
0
1K
Member Avatar for tomtetlaw

Why does fopen_s have the paramater [icode]FILE **_File[/icode] rather then the [icode]FILE *_File[/icode] that fopen has? And what is the difference between those two functions?

Member Avatar for tomtetlaw
0
247
Member Avatar for Sundayy

Hello Everyone: its nice to find this site because I'm just starting to learn C++ and I would welcome any help I can get. Thanks All!

Member Avatar for debasisdas
0
39
Member Avatar for rgpii

I have been trying to communicate between my client and server program. I have checked and rechecked the man pages and it seems my syntax is correct. I'm trying to send packets from my client to my server and the server prints out the host name. My server seemed to …

Member Avatar for rgpii
1
1K
Member Avatar for knight92

Hi, another question from someone who is interested in learning more about C/C++. My question is that everyone says C/C++ is more powerful than many other languges e.g Visual basic but why is it more powerful. Is it because of the pointers ? As far as my knowledge goes they …

Member Avatar for Adak
0
365
Member Avatar for prtipal.singh88

i want to create a virtualization software (like vmware ) which can run single operating system virtually i was searching for this from past few days but not able to know much about coding part So plzzz help me out in this i have to submit it as my project …

Member Avatar for L7Sqr
0
118
Member Avatar for pinky khan

Iam using graphics.h header file for the first time.plz tell me how the following program is written: write a program to print "Hello world" three times in different colors and fonts with yellow background colour using graphics.plzzz give me the answer.

Member Avatar for JSPMA1988
0
108
Member Avatar for aguilaron

I am having trouble with this program in the if else part I feel that is a really simple problem, I have tried 'else if' as well as 'else' but all sorts of errors come up. [CODE] #include <stdlib.h> #include <iostream> using namespace std; int main() { double a, b, …

Member Avatar for Narue
0
1K
Member Avatar for illuminatus89

[CODE]#include<stdio.h> #define ARSIZE 1000000 int main() { int i=0,j=0,c=0,k,n; int prep[ARSIZE]; for(i=0;i<1000000;i++) { j++; for(k=2;k<j;k++) { if(j%k==0) c++; } if(c==2) prep[i]=j; c=0; } printf("Enter N : "); scanf("%d\n",&n); printf("%d",prep[n-1]); getch(); return 0; } [/CODE] why is this code giving segmentation fault??

Member Avatar for vikashj
0
76
Member Avatar for lochnessmonster

i was told objects can be created in C just like c++. Does anyone happen to have any examples of how this is done or any recommended resources on this :) thx

Member Avatar for Narue
0
182
Member Avatar for lisaroy1

The End.