18,490 Topics

Member Avatar for
Member Avatar for shinsengumi

I'm trying to make some sort of database for cards for a cardgame similar to Final Fantasy VIII Triple Triad Card Game where each card has its name and scores on the top, bottom, left, and right sides of the card. I'm using arrays of structures. i can't compile it …

Member Avatar for Ancient Dragon
0
234
Member Avatar for RouseA

I am developving a number of projects in Eclipse that share common files (such as peripheral drivers). Each project therefore pulls together source files from a number of folders. Within my makefile I have concatenated together the names of all the source folders as can be summarised: [CODE] SOURCE = …

Member Avatar for RouseA
0
361
Member Avatar for ftl25

I have an array of strings as follows: [CODE]char *sCmdInt[8];[/CODE] I need to use elements from the array to pass to another dll. The function takes two LPSTRs as parameters. What I need to do is copy two elements from the array into ints/longs, and then create two LPSTRs from …

Member Avatar for Ancient Dragon
0
123
Member Avatar for okwy

his is a follow up to the question I asked earlier and with the help of some people here I was able to start up with the function I want to write,but I am yet to complete it. Here is my earlier question: I have a series of files with …

Member Avatar for Adak
0
242
Member Avatar for gpremium

I need help parsing a const char * string. I am using strtok to parse it, however, after one successful return of strtok, I only get memory addresses, and the program crashes. So I figured I would copy the pointer string into an array, and strtok that... However when I …

Member Avatar for Ancient Dragon
0
163
Member Avatar for nbaztec

To avoid double postings kindly refer the thread here, since I couldn't make up, which forum was best suited. [URL="http://www.daniweb.com/forums/post1297528.html#post1297528"]http://www.daniweb.com/forums/post1297528.html#post1297528[/URL] Please do take part in the discussion. Regards, Nisheeth Barthwal

0
101
Member Avatar for Newtothis123

/* About this program: - This program counts words. - The specific words that will be counted are passed in as command-line arguments. - The program reads words (one word per line) from standard input until EOF or an input line starting with a dot '.' - The program prints …

Member Avatar for ftl25
0
693
Member Avatar for coolshiva

hi frineds can anyone help me to write a program on creating a calender with enumerated data type

Member Avatar for abhimanipal
0
92
Member Avatar for ota1it1iuss

Sorry, I originnaly posted this in the Geek Lounge: Okay, the first project was to build a calculator that functioned as follows: ----------Using the example functions about, write a calculator program. Allow for the user to enter a simple math functions to evaluate: (Note: the '>' designates user input for …

Member Avatar for sfuo
0
2K
Member Avatar for okwy

Can some one please help me on this issue as I have spent time going around it without making any headway. I have data in an array of size say 3O. 1. I want to take the first five elements of the array, find their mean value. Store the value …

Member Avatar for abhimanipal
0
9K
Member Avatar for Ricky65

Hi I've attempted to create a little app which encrypts and decrypts a file using the XOR cipher. However, it only encrypts/decrypts the first few lines and I'm not sure where I'm going wrong. Advice appreciated. Ricky My code: [CODE]//XOR Encryption #include <stdio.h> #include <string.h> //XOR Encryption key char XORkey …

Member Avatar for Ricky65
0
394
Member Avatar for creeps

Hello, I've been going through K.N. King's [url=http://knking.com/books/c2/index.html]C Programming: A Modern Approach[/url] and, after completing the first 10 chapters, I wanted to give my knowledge a try and write something I've always wanted to: a Hangman game. It turned out more of a "Mystery Word" game, as I haven't created …

Member Avatar for creeps
0
553
Member Avatar for ftl25

I have an array of strings as follows: [CODE] char *sCmdInt[8];[/CODE] I am filling this array by tokenizing a line of text from a file. I then want to check if element 0 of the array is equal to a value. Eg: [CODE] if (sCmdInt[0] == "ReadMemory32") { // do …

Member Avatar for ftl25
0
170
Member Avatar for libathos

so i have written a c program...my question; is it possible in any way that it will execute itself whenever say a flash disk is in input or the file that contains it is opened??

Member Avatar for libathos
0
112
Member Avatar for chrysanterus

gud day...i'm just a new member of this sites,is there somebody may help me about turbo c,turbo pascal and fox pro code,i just need a sample basic codes.i've been searching on the net and those info. was so broad and made me so confused..our instructor want us to search and …

Member Avatar for abhimanipal
0
147
Member Avatar for ota1it1iuss

Okay, the first project was to build a calculator that functioned as follows: ----------Using the example functions about, write a calculator program. Allow for the user to enter a simple math functions to evaluate: (Note: the '>' designates user input for cin) >5 >+ >7 >= result:12 or: >5 >+ …

Member Avatar for ota1it1iuss
0
219
Member Avatar for drunkenmonk

I'm writing a lite version of the stty command for school, and I keep getting this error at compile: showtty.c:40: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token My code: [CODE] #include <stdio.h> #include <stdlib.h> #include <termios.h> /** ** showtty ** displays some of current tty settings **/ main(int …

Member Avatar for sree_ec
0
187
Member Avatar for qqwushi12345

Write a C program to solve the Greatest Common Divisor, according to the brute-force The output should appear as the following example: 1st number = 37 2nd number = 11 The GCD of 37 and 11 is 1. Press any key to continue_ thank you,

Member Avatar for Nick Evan
-1
176
Member Avatar for amegahed3

Hi All, I'm not an expert in C, and what I need to do is the following. I have a certain large .txt file that has many lines (sometimes the lines are separated with one empty line, sometimes two, sometimes 3,...etc. Some of these lines have "= 9999999999" at their …

Member Avatar for amegahed3
0
99
Member Avatar for kadams

I need to count characters from a file. But I get an error error C2660: 'getchar' : function does not take 1 arguments. Im new to C please bare with me. Thanks for your help. #include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "string.h" int _tmain(int argc, _TCHAR* argv[]) { int …

Member Avatar for kadams
0
155
Member Avatar for okwy

Good day all, I have a date string format say like "2010-03-01" and I want to get the "tm_wday" equivalent of it say like Monday, Tuesday ... Could someone give me a hint on how to achieve this in c. Thank you.

Member Avatar for Ancient Dragon
0
234
Member Avatar for krishna_sun82

Hello everyone, I am getting ImportError when I tried to do pure embedding and call Python function from C. The Python code is named dummy.py given by: [CODE=python] def multiply(x, y): print x, y z = x * y return z; [/CODE] It is called by the c program "calldummy.c" …

Member Avatar for krishna_sun82
1
1K
Member Avatar for piro87

Hi guys, i really need help here. I must write a program in c that reads a file .RAW that it contains photos in sequential order, every photo has a head-board of 4 bytes. (0xff 0xd8 oxff 0xe0 or 0xe1) and that way I can identify the beginning of the …

Member Avatar for Adak
0
848
Member Avatar for vicky_rawat

Hi All, I have implemented general LZW algorithm, if anyone can help me with motif base lzw algorithm. I will highly appriciate this.

Member Avatar for Adak
0
107
Member Avatar for maxzoran

Good morning, thanks in advance for the help. I am creating a pig latin translator for a class (with that in mind, sorry for bad coding form) and I am having trouble. I have my function working, but it seems like I am stuck in a loop. I'm having trouble …

Member Avatar for Adak
0
225
Member Avatar for skiabox

How can I declare on top of my code a function that takes an array of ints as argument? Thank you.

Member Avatar for skiabox
0
119
Member Avatar for Saranya Ravi

Could anybody please tell me some competitive certification exams for c and c++

Member Avatar for mike_2000_17
0
153
Member Avatar for ronnyrhymes

Hello folks, I tried writing my own function on string copy and this is what i managed to do.Though it somehow works, I have got a great problem with the manipulation of pointers. Please explain or modify it for me. Thank You. #include <stdio.h> #include <stdlib.h> int main() { char …

Member Avatar for ronnyrhymes
0
138
Member Avatar for pav6kor
Member Avatar for ronnyrhymes
0
114
Member Avatar for becon

Dear all I would like to read the input from user #!/bin/csh echo "Please enter a number:" set cutoff = $< # C shell input from stdin cluster_struc validate_rmsd.disp $cutoff 4 | cat > file1.out cluster_struc validate_rmsd.disp $cutoff 4 | wc > file2.out then read the number of line of …

0
65
Member Avatar for niitb

I m newbies here!! I m a student nd wana part time job! So is there any company or site that gives SOFTWARE MODULE so that i can make that module and give them return. Also i know the langauge C,C++ and .NET!!!!! Pls reply anyone............

Member Avatar for niitb
0
103
Member Avatar for omGac0W

Whenever I try and run this my compiler shows a random error and a bunch of binary numbers. I have no idea what is wrong. Am I missing something? Its a program to check if a number is a palindrome. [CODE]#include <stdio.h> #include <math.h> int palindromecheck (int number) { int …

Member Avatar for Ancient Dragon
0
116
Member Avatar for new_programmer

I have basic idea about malloc and calloc i heard about falloc and dlmalloc, can any one explain about it?

Member Avatar for new_programmer
0
200
Member Avatar for apolochaves

i wrote this code for a simple life game loosely based on Conway's. I wrote an 40x40 integer matrix with random numbers and a 40x40 char matrix based on the previous one, where the numbers 0 to 3 generate an X (alive cell) and the numbers upper 4 generate an …

Member Avatar for Adak
0
145
Member Avatar for figuer25

Hi so I am just trying to figure out what is wrong with my program. I am trying to implement the node class in C++. All I want to do is learn how to implement it and get it working. I am not trying to use it to create a …

Member Avatar for figuer25
0
1K
Member Avatar for dragontruong

I have an assignment that requires me to not use an array with [] at all throughout my code, read a file in a certain way, and I need a better understanding with malloc as well with pointers. The code with the [] is pretty easy for me, but pointers …

Member Avatar for jihan sultana
0
176
Member Avatar for chade25

Hey, I am trying to find a good C book that is dedicated to low level programming. Any suggestions? If it could skip all the beginner stuff, that would be great. Also, a side note, I am interested in making my own compiler. Are there any books that study this …

Member Avatar for gerard4143
0
144
Member Avatar for ganesh_IT

Hi guys is this possible to write a biggest number program( biggest among 3) in a single line

Member Avatar for 0x69
0
108
Member Avatar for anu john

Hi. plz tell me how I can connect to an SQL server to an microcontroller or a PC using C language.... Plz reply soon....

Member Avatar for 0x69
0
2K
Member Avatar for phillstarr

hey, i have this program that when a user types in a date (day/month/year)and it works out the next date. It's meant to find out whether its a leapyear and therefore on the 28/2/2012 it should print out the 29/2/2012. At the end of the year 31/12/year it is meant …

Member Avatar for Adak
0
104
Member Avatar for cj232

how can i get the total of x value, x2 value, x3 value...??? i cant finish this home work for now thi is all i have... realy need help... #include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout<<"x value x2 value x3value\n\n"; int x=0, y, …

Member Avatar for newbie_learner
0
188
Member Avatar for weird86

hi there i am new to this forum and very new to c programming i do need any of u guyzz there to help me with my assignment i need to do a simple bank program asking the user password at first with the menu: 1. withdraw 2. balance enquiry …

Member Avatar for newbie_learner
0
157
Member Avatar for skiabox

If I leave some integer array items uninitialized I get sometime some strange numbers instead of zeros when I display the list of the array items. Why is it happening? Thank you.

Member Avatar for newbie_learner
0
118
Member Avatar for Dave Sinkula

This code uses a structure to map a letter to an equivalent representation of Morse code. It simply loops through either a string to encode or decode looking for text to substitute with a replacement string or character. Output is presented to the stdout.

Member Avatar for Quagmire232
0
407
Member Avatar for fizzle

As I posted before I'm totally new to C. In bash i can use [CODE]IP = "`wget -O - -q icanhazip.com`" echo $IP[/CODE]= and it returns my ip. However I'm trying hard to get this via curl although I don't quite understand how it works yet. I determined it is …

Member Avatar for mitrmkar
0
202
Member Avatar for madhusingh123
Member Avatar for vijeta sharma
0
111
Member Avatar for s2n

I have started Computer Graphics using C recently. below is the code for drawing a line using the 'line' function. I am using Code::Blocks 10.05. I need help with some kind of linker error. this is what i have done till now. [LIST] [*]installed C::B with all default setting. Then …

0
111
Member Avatar for herrel17

Our teacher have asked us to make a program in C language to read the difference between two cities in km, m, cm, inches and feets... I have tried every hell to make this work... I am not able to combine it all together... please help!!! I am so confused. …

Member Avatar for vijay143
0
261
Member Avatar for GMSI

With windows XP, normal inport, outport functions do not seem to work. I downloaded a utility to open ports and then use these funtions, but it didnt help. Anyone can give details how to do parallel port programming in XP using C?

Member Avatar for kings_mitra
-1
578
Member Avatar for skiabox

I want to get the digits of a number the user entered without using arrays. Is it possible? Thank you very much.

Member Avatar for kings_mitra
0
135

The End.