18,491 Topics

Member Avatar for
Member Avatar for sjgriffiths

Hello I have a list of data, which looks something like below www.clickajob.co.uk%2Fprofiles%2F316%2F6%2F|a/TLT10911641168.google www.ukdata.com%2Fcompany-listings%2FAd-16.html|a/TLT10911767856.google I need to parse this data so i am left with www.clickajob.co.uk|TLT10911641168.google www.ukdata.com|TLT10911767856.google Does anyone know how to help me? I have the following so far [ICODE] if ( fp == NULL ) { printf("Error opening …

Member Avatar for Ancient Dragon
0
90
Member Avatar for Agni

Hi, We're using curses library functions to draw windows in our project. For showing an error the error message is enclosed within '-'s , it seems to be working fine till we ported to a new linux machine where its displaying some garbage instead of the '-' . To be …

Member Avatar for Duoas
0
132
Member Avatar for paolomontero

Hi, Im writing a program in Turbo C but i also want to use some assembly functions, for this im using nasm. This is my assembly code: [CODE=ASM] BITS 16 GLOBAL _Add4 n_Add4 equ 4 _Add4: push bp mov bp,sp mov ax, [bp + n_Add4] add ax, 4 mov sp,bp …

Member Avatar for xrysf03
0
568
Member Avatar for joesmithf1

[COLOR=black]Hi I have been pulling my hair out trying to figure this out. Please help!!! Here is my project description: By using a pointer to pointers **A and **B and the function calloc() allocate the memory for the 4x4 matrices A[][] and B[][]. By using the pointers *a and *b …

Member Avatar for Necrolis
0
157
Member Avatar for googledat

Hi Everyone, I am glad to be part of Dani community and look forward to getting to know the members in the coming months. I joined this community because I am an adult learner currently working on an IT degree. I just completed a C programming class, didn't grasp all …

Member Avatar for webwareshop
0
83
Member Avatar for somename

Hi. i'm trying to copy a binary already with a predefined permissions. I got this code: [CODE] FILE *f1, *f2; char cp; f1 = fopen("file1","rb"); f2 = fopen("file2","wb"); while(!feof(f1)) { cp = fgetc(f1); if(!feof(f1)) fputc(cp, f2); fclose(f1); fclose(f2);[/CODE] but this just copy a file. But what i'm trying to do …

Member Avatar for somename
0
141
Member Avatar for joytech22

when i was playing C&C 3, the game Hung causing me to try and end the process. the same happens in Colin Mcrae DiRT. im running Windows XP GPU:Nvidia Geforce 9800GTX 512MB! CPU:Amd Athlon X2 5200+ (2.7GHz ea core!) MOBO:Gigiabyte S-series PSU:codegen 530W RAM:1.7gb

Member Avatar for disophisis
0
129
Member Avatar for booly_joon

Hi I have been pulling my hair out trying to figure this out. Please help!!! Here is my project description: By using a pointer to pointers **A and **B and the function calloc() allocate the memory for the 4x4 matrices A[][] and B[][]. By using the pointers *a and *b …

Member Avatar for Ancient Dragon
0
98
Member Avatar for mm-marek

Hi, I need to transfer data from file to fields... Can anyone help me? file: [CODE] name surname weight age male/female name surname weight age male/female marek mixa 70 23 M ... [/CODE] kód: [code] typedef struct lidi { char cl_jmeno[16], cl_prijmeni[21], cl_muz_zena[1],cl_vyska[3], cl_vaha[3]; } LIDI; LIDI lidi[6]; [/code] i …

0
93
Member Avatar for dobado

i need a prog to find the num of solution possible for n queen can anyone help???? waitin 4 a reply as soon as possible...... thx...

Member Avatar for tesuji
0
136
Member Avatar for Clockowl

Hey, When quick googling didn't really clarify, I'd like to ask here. When declaring an N-dimensional array, 2D in this case, how to set them all to zero? For 1D arrays it should work with type name[n] = {0}; Is the same approach also guaranteed to work for N-Dimensional arrays …

Member Avatar for Salem
0
304
Member Avatar for MiTiM

I'm trying to read two data (different types) from binary file (First I had written these data in it). I have problem with output. it's really unexpected: 0.000000000000000000000000 and 10000. Where's the problem in reading double data type? (OS: win xp; compiler tc 3.0; similar result i get with Visual …

Member Avatar for MiTiM
0
2K
Member Avatar for ~bleach~

parser for c language help me -------------------------------------------------------------------------------- i want parser in language i have grammer is that SS->AAaBBb AA->a|b BB->aAA this a letter for language a ,b [code=cplusplus] int lexan() { int lookahead; lookahead=getchar(); return t; } int match(int t) { if(lookahead==t) lookahead=lexan(); else error(); return lookahead; } void error() …

Member Avatar for Duoas
0
163
Member Avatar for yap

Hello I have older c functions which I want invoke in new cpp program: [code=cpp] // Example of old c function void c_function(int** x, int r, int c) { int i, j; for (i = 0; i < r; i++) { for (j=0; j<c;i++) printf("%i ", *(*(x+i)+j)); printf("\n"); } } …

Member Avatar for yap
0
306
Member Avatar for AHMADI110

how programing a text editor by c program answer me my mail :<snipped email>

Member Avatar for jephthah
1
89
Member Avatar for rocky1821

Good day, Generally speaking, for C programming, what can I do, if the application which I am writing requires the heap to expand and contract dynamically?

Member Avatar for Salem
0
92
Member Avatar for somename

Hello. I got a problem of that type: for example i have a simple program like this: [CODE]int main(){ sleep(10); }[/CODE] now if i define time to be 10 sec, prog works fine. [CODE]#define TIME 10 sleep(TIME)[/CODE] but i am trying to do something like that: [CODE]char time; // or …

Member Avatar for somename
0
383
Member Avatar for towhidd

hi how r u? i have solve to find out prime number. But i can not do this problem which is: if i take a number. supose it is 40. the program will display 1-prime, 2-not prime,3-prime upto 40-prime. plz solve my problem. thnk u. bye

Member Avatar for WaltP
0
298
Member Avatar for savinki

why cant we use strcat without initialing first parameter? e.g. char *b = "a"; char *a; strcat(a,b);

Member Avatar for Radical Edward
0
108
Member Avatar for alban08

i`m trying to make a program to calculate the product of this serie: 1/2 *1/3 *5/2 *5/6 *8/10 *16/13 *23/24..... the following program gets compiled without errors but when i execute it pops up a window: prog.exe has encountered a problem..etc... can anyone help me with this problem [code=cplusplus] #include<stdio.h> …

Member Avatar for alban08
0
128
Member Avatar for danibootstrap

I want to use cygwin compiler in DevCpp...how shall I?(I have been using cygwin to compile programs of Lnux in Windows)

0
88
Member Avatar for cuplux

I found a problem with how to find a maximum value with linked list... but it didn't need a parameter...

Member Avatar for joshmo
0
79
Member Avatar for anandi.sa
Member Avatar for sarehu
0
181
Member Avatar for mihal

Ok, so far i have 2 strings inputed from keyboars into stringA and stringB, defined as db now i need to count how many times is string B appearing in A and output that number. Max lenght of strings is 29. I think it should be done in 2 loop, …

Member Avatar for mihal
0
116
Member Avatar for anu.ke

Hi Am learning C, m a pro at VB6. Hope to gain n share knowledge on this forum Cheers Anu

Member Avatar for funmaza
0
69
Member Avatar for p3_tib2001

Help! Now I study about NAT (Network Address Translator), it is a new way about translate IP local to public. Ok, the point is when I want to install NAT in LINUX, i got error messages like below. I think this is about coding in nat.h. What should I do …

Member Avatar for p3_tib2001
0
184
Member Avatar for agodislife

Can someone help me with this probem please. Thank you. [code=cpp]#include <iostream> #include <iomanip> using namespace std; int main() { double pay_rate, hours, regular_pay; double overtime_pay, gross_pay, tax, net_pay; // The functions receive no parameters and return no results. // All communication is through the global variables. void Calculate_Gross_Pay(); void …

Member Avatar for Sky Diploma
0
97
Member Avatar for lich

Teacher gave a question today to find Base is 2 and power is 3. so that Answer should be 8. so to find that she told us to use Recursion and do it. i done it in the normal way. but when i do it in the Recursion way. one …

Member Avatar for jephthah
0
131
Member Avatar for nelledawg

Hey guys, this is a really basic question but I can't figure out how to answer it! I wrote a program for users to input product price, quantity, etc. After getting the input the program displays the quantity, price, total cost, etc., and asks if the user wants to input …

Member Avatar for Radical Edward
0
187
Member Avatar for roshini45

i know everyone hates hw help but i just need some help getting started with writing the functions. here is what i have so far: [code] /* ATM Simulator Function Source File atm.c ** ** CSC-234 (M. Hutchenreuther) John Jones ** Assignment 8 Part A Section 1 ** November 9, …

0
89
Member Avatar for sid99

I'm very new to this topic so not so good. I'm trying to right this to be right recursive: [B]Question (1)[/B] A ---> A + B A ---> C B ---> B + C B ---> C C ---> (A) C ---> integer Would it be something like this: A …

Member Avatar for sid99
0
111
Member Avatar for savinki
Member Avatar for ithelp
0
143
Member Avatar for savinki

I want to split a string into token depending on different delimiters. e.g. char * temp = "asfs:ggd,oper:eger,ropptujnsdn:hfhgw"; and firstly I want to split data by using "," (lets call a block). and then each block should again split using ":" and save each token's value. then finally I want …

Member Avatar for saandeep_jan
0
1K
Member Avatar for Zello

Hi everyone! Name: Olle Nickname: Zello Height: 178cm Weight: to much Hair: Red Eyes: Blue Location: VästerÃ¥s - Sweden (100 km west of Stockholm) Age: 47 Hobbies: Music - I'm an active Harpsichord player, OpenSource (Joomla) Relationship Status: Married, 2 boys 19 & 17. Fav Music: Almost everything from Bach …

Member Avatar for zandiago
0
103
Member Avatar for lalalu

Hi I am wondering about the syntax to convert the value in address.sin_addr.s_addr into readable ip value (ie reverse of inet_addr?). btw I do know we can just use address.sin_addr to get the ip, but i need to use s_addr to pass ip infos between clients thanks in advance

Member Avatar for jephthah
0
125
Member Avatar for Anita Jennifer

What are the major differences between C and C++ programming languages??

Member Avatar for Anita Jennifer
0
123
Member Avatar for jamshid

Hi Everyone; I have a Statistic project. There i must calculate random samples, samples mean values, Construct Histograms, Construct confidence intervals for each sample mean etc.. I want to ask you that which programming language is suitable for this project to be coded. C, C#, C++ or any else programming …

Member Avatar for jamshid
0
142
Member Avatar for savinki

How can I type cast char* to a long value? e.g. char * abc ; long xyz; xyz = abc????

Member Avatar for Radical Edward
0
249
Member Avatar for siripong153

I am making a game and i want to to have multi player support. What i mean is that.... When you load from the save file, you have to write the file name right? Eg. [code] FILE *out; out = fopen("datafile.dat", "r+b"); [/code] How can you let the player choose …

Member Avatar for siripong153
0
126
Member Avatar for nagguns

HI I am facing some (lot of, actually) problems porting a legacy program from UNIX to WINDOWS... I see a lot of errors like this error LNK2001: unresolved external symbol Can some one help how to get rid of these errors.. Thanks in advance

Member Avatar for jephthah
0
304
Member Avatar for SonxQ7

here's my code [code] #include <math.h> #define M_PI 3.14159265358979323846 // Calculate Constant double constant() { const double figure = 7.9454E-18; double number = log (figure); return -10 * number ; } [/code] The value in number should be -17.099... But i get -39.379... What's the problem here?

Member Avatar for jephthah
0
247
Member Avatar for charkac

Hi, I want to know how to capture and store images using a webcam in C? I searched this many places I did not get it.If somebody knows it please tell me.

Member Avatar for jephthah
0
2K
Member Avatar for cyruski

Hello everyone, I woke up this morning with a list of unanswered calls on my mobile which was coming from my younger brother who is freshman in computer engineering. anyway he desperately needs a small coding in C [B]Project [/B] A XOX (Tic tac toe) game coded in C (very …

Member Avatar for jephthah
0
151
Member Avatar for Leil@

[B]I need a program which convert infix to prefix using stack in c[/B]

Member Avatar for jephthah
1
107
Member Avatar for Drake

Hi can anyone tell me if global variables are not liked to be used and why, and whether local variables are a preferred or not and why?? thanks if you can help

Member Avatar for jephthah
0
214
Member Avatar for awi123

the program asks to calculate the power of a number, for eg. if 2 is entered as the base and 3 is th power it should display 8.

Member Avatar for lich
0
140
Member Avatar for twgood

Here is my problem; I do not know hwere to start. I have written pswudocode before, for a currency converstion program but I am unsure if I am doing the same thing with this one. Can someone please just tell me how to start this, do like the main module, …

Member Avatar for jephthah
0
138
Member Avatar for dalaharp

hi, i have to do image read and write in Turbo C. i am very new to C. so please help me out as to how to do these operations and provide some sample code if you have any.. i have a vague idea that it can be read as …

Member Avatar for jephthah
0
3K
Member Avatar for vikram_sriram16
Member Avatar for jephthah
0
310
Member Avatar for SonxQ7

I'm trying to represent a number such as [B]1.45E-15[/B] in C... How do i do this... I know there's pow() & exp() function but i don't think they are useful here...

Member Avatar for jephthah
0
160

The End.