19,876 Topics

Member Avatar for
Member Avatar for Jellis58

I have a form that is used by say 250 employees right now but soon to grow company wide. This form has several line items listed down the page. Every few days I get several sheets in which right now I use tick marks (on a blank pcs of paper) …

Member Avatar for Jellis58
0
84
Member Avatar for msaenz

greetings, im writing that program that creates a 2 square matrices that need to be added. but the trick is i need to use pthreads in order to do it... for soem reason my output is just 0. Any help would be appreciated im almost done im just stuck on …

Member Avatar for Dave Sinkula
0
189
Member Avatar for SergioQ

The code below is taken from my DLL which is injected into a third party app via a hook. What I am trying to do is read another apps Tree structure. Going by the the first line below, the tree window (wOther) has 55 items, which is correct (I am …

0
59
Member Avatar for neknek

We are supposed to make a program.. and I have a problem.. It's a inventory program, and on the 1st option, you'll add things in the inventory.. on the 3rd option.. you have the option to cut the price... on the second option.. you need to display the changes you …

Member Avatar for plgriffith
0
109
Member Avatar for darknight09

[QUOTE]This program was suppose to make a bingo chess game.. but i am totally clueless.. so far the notes i got was jumbled so i have no clue at all.. anyone mind helping me out? This is a sample image that it suppose to look like a bit: [URL="http://img86.imageshack.us/img86/2594/55923788ip0.jpg"]http://img86.imageshack.us/img86/2594/55923788ip0.jpg[/URL] What …

Member Avatar for darknight09
0
252
Member Avatar for Metahuman

[CODE]int k = 0; int g() { k = k + 1; return k; } int D[] = {13, 19, 47, 3, 7}; ….. D[ g() ] = D[ g() ]++ — D[ g() ]++;[/CODE] According to a book from which this problem comes this code will generate 5 to …

Member Avatar for Aia
0
107
Member Avatar for bwjones

Hi all, so I'm stuck on a certain part of a program for my C class. Okay the program is supposed to query a user for a set number of entries for temperatures which is 26. It is supposed to take those temperatures and calculate the avg. at the end. …

Member Avatar for bwjones
0
187
Member Avatar for Ryuji5864

I am currently taking C++, and I just want to know why it says,"Illegal Else without if," and I would like to know how to fix it so I will not encounter this problem again. I would like to know where to put the brackets, "{ " Here is the …

Member Avatar for Ryuji5864
0
175
Member Avatar for jessel

hello sir i'm a new user,i just want to ask if you have sample programs which deals on linked list....if possible not the add.edit,delete program

Member Avatar for zhelih
0
89
Member Avatar for darknight09

im having trouble programming , but its suppose to look something like this,, can anyone help out? im a beginner in c++ so i don't know much... tthis are my notes and im not sure how to do it image that it suppos to look like: [url]http://img86.imageshack.us/img86/2594/55923788ip0.jpg[/url] what it would …

Member Avatar for zhelih
0
108
Member Avatar for msaenz

Getting this error don't understand really what i need to do to trouble shoot... hw.c: In function ‘PrintMatrix’: hw.c:14: error: subscripted value is neither array nor pointer hw.c: In function ‘main’: hw.c:27: warning: passing argument 1 of ‘PrintMatrix’ makes integer from pointer without a cast [ICODE] #include <stdio.h> #include <pthread.h> …

Member Avatar for WaltP
0
112
Member Avatar for nikita_knp

can anyone plz help me out..to make a text editor in C... i dun even know where to start with... it should perform basic functions like moving cursor up and down.. cut,copy,paste,delete,moving to a new line on a enter etc..

Member Avatar for rizwan_aman007
0
160
Member Avatar for SYT

Hello, I've developed my project using C language on Linux platform. When I compiled my program, I got some linkage errors. I've read in some other C forum that the errors I'm getting is due to a linkage problem with the libraries. Can someone tell me the proper steps to …

Member Avatar for SYT
0
115
Member Avatar for debuggit

I need to write code to: 1. receive user input 2. output to an html table - 3 columns user integer input, 4th column sum of the three 3. if the integer is negative, it needs to print out red 4. if the user enters a zero, I need the …

Member Avatar for debuggit
-1
101
Member Avatar for wonder_laptop

well , i know java, but im new to c. i came across this while learning c : int my_function(const char *str1){ unsigned char c1; c1 = (*(unsigned char *) str1); } well i suppose this code is casting from a string to the character value of it but what …

Member Avatar for wonder_laptop
0
108
Member Avatar for Matt You

I have a simple program (code follows) that circle_shifts an array, but I need it to be able to quit when the user enters a character, (ex. q). Where do I start?[code]#include <stdio.h> #include <stdbool.h> #include <math.h> int printAr(int n[], const int SIZE){ unsigned int i; printf("Array contents: "); for( …

Member Avatar for Matt You
0
121
Member Avatar for wakeup

Is possible to acces to a COM dll from a C program? Do you have any example? Thanks in advance

Member Avatar for morb
0
70
Member Avatar for noble3ad

Hello, I'm in an introductory computer programming course and I'm very new. I've been trying to write a program that will allow a user up to five tries to guess a randomly generated number. Here is what I have so far: [code] #include <stdio.h> //enables printf and scanf functions #include …

Member Avatar for noble3ad
1
115
Member Avatar for ghost_squad7

i would just like to ask i'm making a timer w/in a game my problem is with the scan function the game is like a guessing game. where a jumpled word appears on screen the timer is supposed to be displayed like this -------------------------------------------- output/user screen: -------------------------------------------- sampleword time left …

Member Avatar for WaltP
0
469
Member Avatar for rohoni

when i use for loop to get a string i have following problem why? [code=c] include<stdio.h> void main() { int i; char name[5]; for(i=0;i<5;i++) scanf("%c",&name[i]); for(i=0;i<5;i++) printf("%c",name[i]); }[/code] output world here for [COLOR="Green"]world[/COLOR] i get only [COLOR="Green"]worl[/COLOR]. that is for 5 char I get only four why ?

Member Avatar for gerard4143
0
97
Member Avatar for joshmo

can anyone help me with my code. i am trying to make the exec read input from the keyboard but i have no idea how to start. the code works if the path and the file names are already there..here is what i have done so far with the child …

Member Avatar for joshmo
0
109
Member Avatar for mank

I have two questions regarding c #1 if I have value(initialize a variable with a value) inside a block, like { } then how is it different than the value outside that block, but within the same function why does the value inside the block doesnt retain the old value …

Member Avatar for mank
0
85
Member Avatar for SergioQ

I have a C DLL (WIndows) and within it I hook some specific threads. But truth be told I would like to hook one enteire PROCESS. Is this possible?

Member Avatar for Duoas
0
63
Member Avatar for wonder_laptop

i have to write a c code that it divides a number by a power of 2 by shifting the number to the right the requisite number of bits. im not asking for ANY CODE. im just asking for an explanation for the given. how do we divide by shifting …

Member Avatar for wonder_laptop
0
90
Member Avatar for plgriffith

I have a linked list of structs, with each struct having a char* and an int. When I try to print the list I get a seg fault. If I just print the int however it works. What am I doing wrong so the char* won't print? printf("%s %d\n", p->name, …

Member Avatar for plgriffith
0
2K
Member Avatar for rohoni
Member Avatar for WaltP
0
129
Member Avatar for sam1

hi everyone. I need few good books for beginners, trying to learn C. thanks

Member Avatar for rohoni
0
137
Member Avatar for azadeh.mohajeri

I want to handle a program about flight ticket reservation I write 50% of program but I don't know how to write the[B] RESERVE FUNCTION[/B] if anyone have Idea for this please send me the reply. Regards Azadeh:)

Member Avatar for ithelp
1
103
Member Avatar for mayank24

I was encoding a C program as my assignment and got stuck. Following is the part of my assignment where i got stuck Please enter the employee's pay period information : Income for the current pay period : -2400 **Value must be greater than 0.0 **Try again. : 2400.. **Trailing …

Member Avatar for mayank24
0
67
Member Avatar for Marwa El_shawi

Hello everybody : I have windows vista ( home premium) ,, how can i make a program to send msgs to other pc in my lan ... means : required program c LAN Thanks in advance

Member Avatar for Ancient Dragon
0
30
Member Avatar for shedii

Are C & C++ knowledge required to learn php or a person good at html, css & xml can start learning php directly?

Member Avatar for richie513
0
134
Member Avatar for chopficaro

hey i got some c homework due Monday and I'm stuck. please help me. I'm going to mark the error lines with **** in place of a tab. build errors are at the bottom. i will be eternally grateful for any insight. [code=c] //patrick allard //program4 //prof ed ryder #include …

Member Avatar for chopficaro
0
510
Member Avatar for 88omar

i got this question and started and got a bit stuck can u please help. it goes like this the questions asks us to Write a c-program to read 10 numbers from the keyboard and store the numbers in an array called numbers After storing the numbers in the array …

Member Avatar for Google Spider
0
200
Member Avatar for Cbeginner_us

Hi, I am a C beginner and I am trying to write a program for Cellular Demodulator. Can anyone help me? Thank you.

Member Avatar for Cbeginner_us
0
337
Member Avatar for smiles

I am programming for a microcontroller using CCS compiler (which based on C language) My code is pressing button to select a specified time then using that time to switch on and off a lamp, for e.g The value I got when press button is an int, with 0x31 stand …

Member Avatar for smiles
1
151
Member Avatar for Mr.UNOwen

Hello, Does anyone know of any chip I can buy that I can easily have a C program communicate with through USB and separates the signal into individual parallel connections? Basically I need to send 125 bits to be separated at a given time, so the larger the separation, the …

Member Avatar for Mr.UNOwen
0
84
Member Avatar for 88omar

Hi there again i tried answering the question amm i hope you guys can understand it its a structure ahh i am to: Write a program using (structures) that stores the details of students in a school. Create a structure called students with the following structure elements: Student name. student …

Member Avatar for prushik
0
151
Member Avatar for RexxX

Say I have [code] #include<iostream.h> int tempNum; struct node { int data; struct node *next; }; struct node *newNode = NULL; int main(void) { tempNum = 5; newNode->data = tempNum; //gives seg fault } [/code] *edit - I'm trying to add tempNum to the very first node. I haven't worked …

Member Avatar for Aia
0
105
Member Avatar for wollacott

ok i need to do a program that inputs a amount of characters. my program has to capitalize the first letter and and letter after a full stop. any ideas and hints how to do it?

Member Avatar for Dave Sinkula
0
81
Member Avatar for ankitbullu

What enables C to support variable number of function arguments (varargs), while other languages (like Java) do not support this feature? What is special in C which is not there in Java to support this?

Member Avatar for Narue
0
84
Member Avatar for wollacott

[CODE] #include<stdio.h> main() { static int n=0, number=1; int fibi (int n, int number); printf ("Following are the first 40 Numbers of the Fibonacci Series:\n"); printf ("1 "); fib (n,number); } fib (int n, int number) { static int i=1; int fibo; if (i==40) { printf ("\ndone"); } else { …

Member Avatar for pokiri
0
96
Member Avatar for cnoob3610

Hello all. Sorry to be a bother but I cannot figure out what is wrong with my homework program that's due before midnight. The assignment is to create a program with a two-dimensional array that generates a random walking path. I'll list the assignment as it is probably clearer. [I]Write …

Member Avatar for cnoob3610
0
114
Member Avatar for kwadders

Hi all, I am wondering if anybody has any good links for displaying floats. I have been working with some pre-written code that has bugs in, at the company i work for. But i keep having problems with rounding. I am considering re-writing it but what to get to grips …

Member Avatar for Aia
0
75
Member Avatar for hallinan

Need help I wont to get a system date as integers such as(22/02/2008) rather than string cause I need this to compare two dates any ideas?

Member Avatar for Dave Sinkula
0
86
Member Avatar for buffe

Hi, I'm a new one for c++. I want to call a function in time intervals. (as an example lets say for every 100ms ). How can I do that. Please help:S Thank you

Member Avatar for Nemoticchigga
0
114
Member Avatar for tomeagle

I am a beginner and need help with my program in C. My assignment is to find all the prime number up to the number the user input using a sieve algorithm. for example if user input 6 , the prime numbers will be 2, 3, 5. Then it should …

Member Avatar for VernonDozier
0
216
Member Avatar for wollacott

ok this is my code so far i have to use " isprime" to calculate prime number how do i do thatand where do i put it.thank you [CODE] #include<stdio.h> main() { static int n=0, number=1; // static: so value is not lost int fibi (int n, int number); printf …

Member Avatar for wollacott
0
209
Member Avatar for siri_chow25
Member Avatar for hallinan

Keep getting an error 'syntax before struct_acc' but cant see where can YOU?! (it's like finding woldo to me) [CODE] void print_customer_statement(char customer[]) { int choice; struct_acc Acc[SIZE]; FILE *file_ptr; int i=0; file_ptr = fopen(customer, "rb"); if (file_ptr == NULL) { printf("Error in Opening files... Program End\n"); exit(1); } while(!feof(file_ptr)) …

Member Avatar for hallinan
0
92
Member Avatar for wollacott

can anyone help me? Write functions to: int isprime(int); /* Returns a true value if a is a prime number */ int nextFib(); /* Returns the next fibonacci value (use static variables to track which one was used last call) */ The fibonacci sequence is defined as: Fib(0)=1 Fib(1)=1 Fib(2)=Fib(1)+Fib(0) …

Member Avatar for DangerDev
0
78

The End.