19,876 Topics

Member Avatar for
Member Avatar for johnray31

HI ALL, i have written some code of line as [code] typedef struct _nodeList { unsigned int pointCode; struct NodeList *next; }NodeList; typedef unsigned int PointCode ; int right_configuration(NodeList *head,PointCode x, PointCode y) { NodeList *node1; NodeList *node = head; int k =0; unsigned int NodePoint[100]; node1 = (NodeList *)malloc(sizeof(NodeList)); …

Member Avatar for johnray31
0
99
Member Avatar for amishosh

Hi! Is there a way that I can "Build" a single source file? Wihout creating a project? I want to be able to open a *.c file in Visual Studio and simply Build it with out having to choose a project. I know it's a whole different world but in …

Member Avatar for Tight_Coder_Ex
0
78
Member Avatar for naserca

Hello, I want to use C for computer oriented numeric methods (i.e. evaluating Numerical values of mathmatical functions and the like). Could some body give some reference stuff (either online or books)?-- could be algorithms and/or programs/codes. Regards, Naser

Member Avatar for iamthwee
0
94
Member Avatar for NycNessyness

I'm currently having a problem with having where it says DailyChild on my code to go up when the user adds a number. For example if they type 1 it should say 1.50. If they enter 2, it should say 3.00. But no matter what I do, it keeps printing …

Member Avatar for NycNessyness
0
891
Member Avatar for tu_m.aimes

Is there a delay function for C? I'm using usleep, but I just found that somewhere on the net and if I get asked about it, I won't be able to explain or even name which library I'm calling it from. Is there a delay function in time.h? If so, …

Member Avatar for ashishtrivedi
0
214
Member Avatar for asilter

how do i assign -let's say number 12000- to 3-byte stream? could u plz give a little code example? thanx.

Member Avatar for ssharish2005
0
140
Member Avatar for chelo77

I'm having problems here with this function i'm making, i need to make function that will write to a text file. This function has to ask the user for the file name and check if it exists. If this is all good then it will write the string in the …

Member Avatar for Aia
0
208
Member Avatar for nanodano

When programming with pthreads, you pass the thread a function to run when you create it. When this function is done, is the thread cleaned up automatically? Is it necessary to put [inlinecode]pthread_join()[/inlinecode] in the calling function somewhere? Is [inlinecode]pthread_join[/inlinecode] only useful when you want to [I]wait [/I]for a thread …

Member Avatar for mcldev
0
209
Member Avatar for grii_19

[code=c] # include<stdio.h> # include<conio.h> void main() { float square(); float a,b; printf("\nenter any number"); scanf("%f",&a); b=square(a); printf("\nSquare of %f is %f",a,b); } float square ( float x) { float y ; y=x*x; return(y); } [/code] when i run this i get an error ::---- "" type mismatch in redclaration …

Member Avatar for Aia
0
816
Member Avatar for jaz

construct a hierarchy chart (divide the tasks into modules) then an algorithm,flowchart, or pseudo code that will allows a person to track a list of personal contacts. for each contact there are five fields - First name - Last name - Occupation - Phone Number - Relationship (of the contact …

Member Avatar for jaz
0
125
Member Avatar for R_brahmankar

hi friends , i am rushikesh brahmankar . i am studying final year of BE COMPUTER . I AM REQUIRING SOME GOOD IDEAS WHICH CAN BE IMPLEMENTED AS BE PROJECT. I HAVE KNOWLEDGE OF C, C++,JAVA ORACLE. I AM READY TO DO PROJECT IN ABOVE LANGUAGES. I AM ALSO READY …

Member Avatar for ssharish2005
0
122
Member Avatar for programmer321

Hi All, I am trying to compress a text file using C. For example, if data written in a text file is ABCDEFGH, it occupies 8 bytes. I want it to occupy only 1 byte so that the size of the file can be reduced. Regards.

Member Avatar for ssharish2005
0
75
Member Avatar for asilter

how can i convert a void array to unsigned char array? could you plz give a little sample?

Member Avatar for ssharish2005
0
121
Member Avatar for DeathEvil

Ok, today is the final and I'm still confused with the struct. Last assignment was supposed to be transformaed from regular arrays to struct and even though I did it and it works, it's more like each member inside of a record is a array rather than array of records. …

Member Avatar for DeathEvil
0
115
Member Avatar for amitbhat

Hi Techis... I am given an assignment of writing a C program which behaves as assembler. That is implementing assmbler using C. I ll have set of assemply statements. I need to convert those into the machine equivalent binary representation. I ll have two data structures to keep track of …

Member Avatar for amitbhat
0
122
Member Avatar for acchao

Hi, my name is Andrew. I believe this will be my first post on daniweb so please bear with me. I'm working on a compression algorithm (miniSEED steim 2 compression if anyone is interested, its for seismic lossless compression) in C so I do a lot of bit manipulation of …

Member Avatar for Salem
0
634
Member Avatar for kgbalaji1980
Member Avatar for Ancient Dragon
0
120
Member Avatar for Sivakumar_K

I saw the follwing coding in the forum.. But i dont know how to execute in the Turbo C compiler.. Or else we need to use seperate connectivity coding for Turbo C compiler???? Can i know the include files (Header files) for the coding given below.. ------------------------------------------------------------------------------------------------- HENV hEnv = …

Member Avatar for anu john
0
110
Member Avatar for letmec

hello to you all. I need to now how we can write a simple c code which will run when ever we plug in the usb drive in the port. Simply how to load our program at boot time. Thanks

Member Avatar for letmec
0
119
Member Avatar for defeaning

hi everyone,.Im new in Assembly language.I ask if you can teach me on how to convert the following c++ program to tasm. I hope you could help me with these. [code=cplusplus] #include <iostream.h> #include <conio.h> int main() { clrscr(); int n; cout<<"enter number: "; cin>>n; if(n==50) cout<<"n is 50"; else …

Member Avatar for Tight_Coder_Ex
0
86
Member Avatar for chota

hi guys i am new to this site...hope you all will provide me the required information.... here is what i wanted to ask.... i created a cricket game in C using some basic graphics functions.... what i did is i created some frames of bowler -bowling & batsman batting... first …

Member Avatar for TkTkorrovi
0
100
Member Avatar for pranay500866
Member Avatar for mona1nine

[code=c] #include <stdio.h> #include <string.h> struct courses{ char coursenumber[10]; float credit; float grade; }; struct courses list[2]; main() { int i; int count; printf("Enter number of courses to input: "); scanf("%d", &count); for (i=0; i<2; i++) { printf("Course number: "); scanf("%s", list[i].coursenumber ); printf("Credit: "); scanf("%f", list[i].credit); printf("Grade: "); scanf("%f", …

Member Avatar for Aia
0
92
Member Avatar for cheesedoff

HI FOLKS WENT TO DEFRAG MY HARD DRIVE TO FIND A RECYCLER\NPROTECT FILE LISTED WITH OVER 7GB LISTED. I DELTED NORTON SYSTEM WORKS AGES AGO. WHEN I OPEN UP THE RECYCLE BIN ON DESKTOP IT IS STANDARD RECYCLE BIN. SEARCHED FOR THIS AND FOUND MESSAGE DETIALED AT END OF THSI …

0
37
Member Avatar for NewbieTJ

Here is a code I have been trying to finish but can't. I'm very new to this as you probably know by my other post but this program has been giving me a fit. I feel like I have hit a brick wall and it bothers me because I know …

Member Avatar for Aia
0
99
Member Avatar for ellenski

hi, i'm supposed to create a very simple address program in C & not in C++. my program works but my problem is how to "search & edit a record" and how to "search & delete a record", that is what i lack. this program is really giving me a …

Member Avatar for Aia
0
167
Member Avatar for NewbieTJ

Hi I'm very new to this world of programming and am having several difficulties. I'm trying to practice a lot and become more accustomed to everything but I've only been doing this for about five weeks so I'm sure know it's usually a slow start. I would like to build …

Member Avatar for Aia
0
145
Member Avatar for asilter

[code] /* One file can be hundreds of MBs. So, 640 MB in maximum*/ int nMaxByteCount = 64000000; [/code] I read files to get binary info in it. But I don't know the exact sizes before reading. So, I allocate nMaxByteCount for large files first and get support from fread …

Member Avatar for Salem
0
104
Member Avatar for danielbasten
Member Avatar for Salem
0
62
Member Avatar for DeathEvil

I have no problems connecting strings but if I follow the same procedure for chars then the program blows. [CODE]void Input_Code(char *d1_p, char *d2_p, char *d3_p, char *d4_p, char *d5_p, char *d6_p, char *d7_p, char *d8_p, char *d9_p, char *d10_p, char *full_code_p) { char buffer[12]; printf("Please enter 10 character account …

Member Avatar for Aia
0
98
Member Avatar for asilter

BulkData structure is this: [code] #define MAXSIZE 64 typedef struct bulk_data { char data[MAXSIZE]; struct bulk_data * next; }BulkData; [/code] In my program, I'm mallocing a pointer in 16 bytes: [code] BulkData * bdWaitingToBeCopied = malloc(16); bdWaitingToBeCopied->next = NULL; [/code] So, is this a overflow? And another question: if it …

Member Avatar for Ancient Dragon
0
123
Member Avatar for DeathEvil

This is the final mini step I need to do before my program is complete. a line has 85 chars from begining to end. I want to start the line with an *and end a line with a *. The problem is, that I don't know how long the ref, …

Member Avatar for DeathEvil
0
123
Member Avatar for asilter

[code] RadarData * rd = NULL; rd = GetRadarData(sFileName); /* Here the debugger says that : rdp->llBdContent.bdContent.next = 0xa13f080. This is ok,but... */ CreateHVFERadarBUFR(&rd); [/code] GetRadarData is here: [code] RadarData * GetRadarData(char * sFileName) { short int nRadarSubtypeInFile; short int nRadarTypeInFile; /* Radar Data Structure */ RadarData rd; /* Radarin …

Member Avatar for asilter
0
130
Member Avatar for DeathEvil

Let's assume that the 100th user inputs his name as: Jackson Michael. I would like my prog to print to the file the reference, which would be combining the first letter of the lastname with all the consonants remaining after removing all vowels (a,e,i,o,u). in case of Jackson it would …

Member Avatar for DeathEvil
0
135
Member Avatar for patsfan4878

Hello again all. Got a question concerning palindromes. Basically I am writing a program that will determine if a line is a palindrome or not, neglecting spaces and punctuation that is. Now I am trying to do this by setting two variables on each end of the string and comparing …

Member Avatar for Hamrick
0
80
Member Avatar for anand_daksh_999

hey guys i got turbo C software but every time i compile a program it says that cant recognise stdio.h,conio.h,iostream.h help thanks

Member Avatar for Ancient Dragon
0
84
Member Avatar for asilter

Hi, I'm trying to assign variables where vpSec0 points. [code] void * vpSec0 = NULL; CreateHVFESection0(vpSec0); [/code] CreateHVFESection0 function is below. [code] void CreateHVFESection0(void * vpSec0) { int hSec0; size_t * nbytes = (size_t *) malloc(sizeof(size_t)); hSec0 = bitio_o_open(); /* 'B','U','F','R' */ bitio_o_append(hSec0,66,8); bitio_o_append(hSec0,85,8); bitio_o_append(hSec0,70,8); bitio_o_append(hSec0,82,8); /* Total length of …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Fromethius

If I launch my DirectX program, full-screen initializes. If I alt tab out of it, it alt-tabs as normal. However, if I then maximize it so it has the focus of my computer again and then alt-tab for the second time, the window doesn't minimize. The taskbar shows up but …

Member Avatar for FireNet
0
159
Member Avatar for GaryD.

1) An overview of what your program does. The entire program asks the user for a starting balance, then deposits and withdrawals, then asks the amounts of each, and then prints a record of all transactions and an ending balance. The area i'm having difficulty with is the part where …

Member Avatar for GaryD.
0
95
Member Avatar for eyedea2011

Can someone help im suppose to write a family of overloaded functions called equal(), which take two arguments of the same type, returning 1 if the arguments are equal, and 0 otherwise. This is what i have that refuses to compile. [CODE=cplusplus]#include <cstring> using std::cin; using std::cout; using std::endl; int …

Member Avatar for JRM
0
125
Member Avatar for Firestone

I'm using Dev C++, and I want to compile my program into a program usable on macs. Can I do this from Dev C++, or do I have to use a different program?

Member Avatar for John A
0
110
Member Avatar for DeathEvil

I have "converted" my prog to psedocode (I know, I should di it before writing source code" and everything is looking smoothly and easy to understand. The only problem I have is translating 2 lines involving array: [CODE] if (strcmp(full_name[index[inner]],full_name[index[inner+1]])>0)[/CODE] and [CODE]temp = index[inner],index[inner]= index[inner+1],index[inner+1]=temp;[/CODE] can anyone help me out? …

Member Avatar for DeathEvil
0
103
Member Avatar for echobase

Hello- I'm trying to write a classic producer/consumer program using signals. My parent process (producer.c) forks and executes a new child program (consumer.c). The producer copies values from an input file (100 total int values to copy) to a common file, then sends a signal to the child to copy …

Member Avatar for TkTkorrovi
0
181
Member Avatar for johnray31

Hi All, can anybody provide me recursive implementation of depth first search.. one more question .. is it possible to code any problem with recursion without using global variable.. i just need general views about good recursive program.. thankx

Member Avatar for Hamrick
0
111
Member Avatar for khalidxa

Hi guys, I am trying to pass a two dimensional array into a constructor. I am having hard time with it. Can anyone please tell me how to pass arrays into a parameter. the code is something like this : testCase::testCase(int i, int *matrix[][],float m) Your help is appreciated Khalid

Member Avatar for Lerner
0
118
Member Avatar for DeathEvil

The prototype [code]void Print_Sorted_Employee_Detail_To_File(FILE *report, int i, int i2, int index, char full_name, float pay_rate, float hours, float ovt_hours, float gross, float federal_tax, float state_tax, float ssi_tax, float deferred, float net_pay);[/code] The call: [code] Print_Sorted_Employee_Detail_To_File(report, i, i2, index[i], full_name[i], pay_rate[i], hours[i], ovt_hours[i], gross[i], federal_tax[i], state_tax[i], ssi_tax[i], deferred[i], net_pay[i]);[/code] This is …

Member Avatar for DeathEvil
0
124
Member Avatar for eyedea2011

I'm trying to write 2 codes in C++, but i'm having major problems. The first one should output something like this: Enter a number: 123 -- Enter a name: Jack Thank you, Your name and number is Jack and 123. [code=cplusplus] #include "stdafx.h" #include <iomanip> using std::cin; using std::cout; using …

Member Avatar for Ancient Dragon
0
396
Member Avatar for komathana

I am writing a DICOM viewer program, now my program displays three info abt DICOM..i want to make my program to display other informations like patient name and slice thickness..understanding dicom is really hard..if one any working with DICOM plz help me. This program dont have errors..but i need some …

Member Avatar for Ancient Dragon
0
145
Member Avatar for eyedea2011

I'm a student that needs extra emergency help please!! Please help my assignment is already late. I'm trying to get these 2 codes to work but i can't. I have no more ideas, can someone please please help me. I'm using Microsoft Visual C++ to for my codes. Here they …

Member Avatar for Salem
0
254
Member Avatar for harshbhatt88

I have to make a program as shown below: Design a program that creates and uses a file to store experiments' data for any number of experiments as requested by user. The program should use the following structure type: struct data { int experiment; float value; }; The program should …

Member Avatar for harshbhatt88
0
116

The End.