18,490 Topics

Member Avatar for
Member Avatar for hiphoprules

This is a input file DEL 0050 XYZ 0050 0310 CCU 0710 MAA 1325 TRZ 10415 KWI 0050 FJR 0325 0325 CCJ KWI 0050 FJR 0325 0425 CCJ 0925 1005 i.e maximum items(column entries) in a row can be 8 but their data type will be in same order i.e …

Member Avatar for Dave Sinkula
0
170
Member Avatar for hiphoprules

hi! this is my input file by name SC.txt CD 737 123457 AM 320 246 XY 543 357 AR 222 2 TY 212 1357 now i want to read this file and compare the last column entires with a user entered number. i.e user enters a no. for example 2 …

Member Avatar for hiphoprules
0
147
Member Avatar for allomeen

does anybody know how can i find my local ip address ? should i use getsockname() or is bind() is enough to give my ip, port and family? Alaa G

Member Avatar for DMR
0
143
Member Avatar for Mr Violent

Okay, I'm learning how to load a WAV file into DirectSound in order to play it. I've successfully surfed through the headers of the WAV file, and loaded it. However, when I go to create a buffer with this WAV sound data I've run into a road block. I'm getting …

Member Avatar for Mr Violent
0
398
Member Avatar for lewisy

Hi, I need to send an email through the smtp server. The hard part about this is that I need to embed a jpeg signature at the end of the mail. But this signature is not an attachment. any ideas on how to do that? I am using CMIMEMessage and …

Member Avatar for Salem
0
157
Member Avatar for alvin_aldrich

hi everyone, I would just like to ask what (long)table_1 means? The table_1 is defined below. I do get a value of 4395176 with this code printf("table 1 is %d\n", table_1); But i dont know what operation was done? Can someone please help unsigned char table_1[256] = { 0x08, 0xCB, …

Member Avatar for hollystyles
0
184
Member Avatar for inquizitive1

Hello.. I am trying to do image processing using C. However, I am a complete novice at this. Can anyone please tell me about a C library(or a similar program etc) to read JPEG (or other) image files and store the data thus obtained. Please help me in any way …

Member Avatar for ~s.o.s~
0
93
Member Avatar for rollbamaroll316

i was just wondering if i could get a little help on this program that i need to do. I am having a lot of trouble just starting it. this is a program dealing with european football AKA soccer. - The program must set up an array of 12structures. - …

Member Avatar for Salem
0
125
Member Avatar for wingwarp

is there a way to simply tell the compiler to JUMP back to a different point??? like: [code] loop; "stuff" loop; [/code] the first loop says where the second loop loops back to any help would help thatnks alot -kbcubs-

Member Avatar for server_crash
0
157
Member Avatar for chethanasrao

[B]i need to write a program which accepts a folder as input and browses through that folder and says whether there is a file or a subfolder present in it and generate an xml file that gives the hierarchy(subfolder names & file names present) in that folder.[/B] [I][U][B]BUT IT SHOULD …

Member Avatar for Salem
0
108
Member Avatar for dilip.mathews

[CODE]void main(void) { char *p = "name"; p[0] = 's'; printf("%s", p); }[/CODE] The above piece [COLOR=black]of code is giving me eror at run time. The reason for this error might be that I am not allocating any memory for the pointer(correct me if I am wrong).[/COLOR] [COLOR=black]My doubt is, …

Member Avatar for dilip.mathews
0
285
Member Avatar for mehak_soft
Member Avatar for ithelp
0
42
Member Avatar for hiphoprules

This is the code...what iam trying to do is that i am checking whther the date entered by user is valid...i.e lies btw begin date and end date... if the condition is true the next step is to enter the time slot btw which i want to see flights departing …

Member Avatar for Dave Sinkula
0
91
Member Avatar for angelv

HI I am new to php I would like to ask how I can insert a C source code into a php file please help I have a C scheduling algorithm that I'd like to use for my site that I am developing using php/mysql but I don't know how. …

Member Avatar for Member #46692
0
195
Member Avatar for Tamir

Hi all, I wrote an addin for ms-word and I wish to write an application which communicates and share functionality and data with this addin. [B]is it possible[/B] to write an application which communicates with a running ms-word addin? -- [U]the addin is running in ms-word and should be communicating …

0
115
Member Avatar for Ritu Shah

As we have JVM- can we have smthng similar for C which first converts C into a byte code and then executes it.

Member Avatar for 'Stein
0
45
Member Avatar for wingwarp

ok after 4x of ppl telling me to learn the basics im starting at the bottom... my tutorial didnt explain this function well... what is a pointers use...

Member Avatar for wingwarp
0
179
Member Avatar for gurudatta.verma

<< split from [thread]50420[/thread] >> i want to know abt Ellips arugument passing to any funtion plz reply me quickly

Member Avatar for ~s.o.s~
-1
204
Member Avatar for shwetashelke

Sir, I want to make connectivity in c with database oracle so plz tell me the code for that.thanx in advance.

Member Avatar for Dave Sinkula
0
167
Member Avatar for Shaitan00

When trying to set the 'max server memory' of a database I use the stored procedure (SP_COFIGURE) as follows: [CODE] _bstr_t bstrCommandText = OLESTR("SP_CONFIGURE 'max server memory',"); bstrCommandText = bstrCommandText + bstrServerMemory; // where bstrServerMemory = {"128" (1)} // looks like = {"SP_CONFIGURE 'max server memory',128" (1)} iCmd->CommandText = bstrCommandText; …

0
94
Member Avatar for joshilay

char s[]="the cocaine man"; int i=0; char ch; ch=s[++i]; printf("%c ",ch); ch=s[i++]; printf("%c ",ch); ch=i++[s]; printf("%c ",ch); ch=++i[s]; printf("%c ",ch); output = h h e ! i got the outputs like this ...can anyone please what are the reasons for these outputs !! is it compiler dependent ?? if yes …

Member Avatar for ~s.o.s~
0
161
Member Avatar for Simon268

Hi all. I can't get this to compile; [code] #include <iostream> #include <string> using namespace std; int main () { int number; string response; for (number=5; response!='Y';) { cout <<number <<endl; cout <<"Had Enough (Y/N)?"; cin>>response; } cin.get (); cin.get (); return 0; } [/code] when i try to compile …

Member Avatar for Simon268
0
205
Member Avatar for misnit_22

dear friends i want to know what we mean by generic pointers and what are the benefits of it. thanks every1.

0
96
Member Avatar for jazzz

Can anyone tell wat does this do?? - [CODE]_FOpen(Time_File,"r",fp_time); _Fread(&st_Time,sizeof(TimeHead),1,fp_time,TimeFile);[/CODE] Thankx jazz

Member Avatar for WolfPack
0
249
Member Avatar for jamshid

Hi Everyone here ; I am starting C and wanna you start C lessons here , so we (we new starters) can learn good and can discuss about some important points here.. It will so Nice and i hope our friends whom they know better this language start lessons here.

Member Avatar for ~s.o.s~
0
282
Member Avatar for sgriffiths

Hello how would i go about converting a string value to HEX ie char name[10]="STEPHEN"; Convert name to HEX

Member Avatar for Dave Sinkula
0
3K
Member Avatar for gampalu

Hi, in the declaration of IP_name: [CODE] int InputNumber; ... // function that gets the InputNumber ... char IP_name[InputNumber];[/CODE] I have this error: [CODE] error C2057: expected constant expression error C2466: cannot allocate an array of constant size 0 error C2133: 'IP_name' : unknown size[/CODE] How can I solve this …

Member Avatar for gampalu
0
217
Member Avatar for Eddy Dean

Hello everyone, I 've been looking for a solution for this problem for some time now but I don't seem to figure it out. I want to download the source of a web page (the HTML source). I found several API function that have to do something with internet and …

Member Avatar for ~s.o.s~
0
953
Member Avatar for joshilay

if i implement same algorithm iteratively and also with recusrion ...than which of the above methods is better in implementing ..... and what are the advantages of recursion over iterative methods ??

Member Avatar for joshilay
0
176
Member Avatar for jamshid

I know PASCAL programming language; Know i can't decide to learn which programming language.... I don't know if i start C or C++ or C#... or others.. [B]I hope you will guide me in this way[/B], so thanks for replying and guiding me.

Member Avatar for jamshid
0
205
Member Avatar for Latentsage

I understand most basics but have hit a wall when I come to graphics. I just want to make a 2d game. Any good tutorials out there?

Member Avatar for Dave Sinkula
0
159
Member Avatar for joshilay

can anyone tell me what are pointers to function ??? and how are they implemented ??

Member Avatar for Laiq Ahmed
0
133
Member Avatar for powerpuffgals

Dear all, I'm Vanitha...I'm new here....Just want to ask a help...Do anyone know how to change PASCAL codes to MATLAB?? or mayb PASCAL codes to C?? I'm really in need that help..Its for my project!! Hope someone can help me!! Thanks...n nice to be here!!! Hv a great day all!!

Member Avatar for stymiee
0
57
Member Avatar for chechenkerz

Hi. I'm new here. i'm wondering if anyone of you guys have experienced designing an inventory administration program.. the attached pdf file describes the machine problem...please have a look at it... i'm currently doing the code but it's still on the 'menu' selection part. i've been told that i may …

Member Avatar for Dave Sinkula
0
90
Member Avatar for tefflox

this is all that is given: [code] char word[10]; addS("fasten", word); cout << endl << word << endl; // will output fastens [/code] for a program that must make a word plural (add an s) here is my code, which compiles but gives a peculiar "segmentation fault" that I haven't …

Member Avatar for Eddy Dean
0
171
Member Avatar for powerpuffgals

Dear Guys... I really need a help...I have this PASCAL codes which i nee dthem to be translated to either in MATLAB or C codes....Do anyone knows how to do it? I have a short time...Its for my project...Is there any software to help me?? Hope to get a reply …

0
66
Member Avatar for CrazyDieter

Hie, I'm trying to get a code in a DLL runned each time a program is launched. 1) I have put this value in the registery key : [code] HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows="D:\myDLL.dll" [/code] 2) [code] BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ , DWORD reason /* Reason this …

Member Avatar for Eddy Dean
0
682
Member Avatar for comp_sci11

[code]#include<stdio.h> #include<string.h> #include<conio.h> #define SIZE 21 #define MAX 10 int id[MAX]; int idn[MAX]; char fn[MAX][SIZE]; char ln[MAX][SIZE]; char mi[MAX][SIZE]; int q1; int q2; int q3; float ave; int menu() { int i,s=0; while(s<1|| s>4) { clrscr(); gotoxy(5,5); printf("menu"); gotoxy(5,7); printf("1.insert"); gotoxy(5,9); printf("2.delete"); gotoxy(5,11); printf("3.Display all"); gotoxy(5,13); printf("4.Quit"); gotoxy(5,15); printf("Select(1-4): "); …

Member Avatar for comp_sci11
0
178
Member Avatar for ~s.o.s~

Hell "o" to all programmers out there. I was just fiddling around with pointers to [inlinecode] const [/inlinecode] when i wrote this snippet. [code] [COLOR=#008000]int main (void) { int* ptr = NULL; const int i = 20; ptr = (int*) &i; *ptr = 40; printf ("\nThe addr of the const …

Member Avatar for ~s.o.s~
0
180
Member Avatar for rxgmoral

Ask a problem,about template:) i write template class <<<<<<<<<class.h>>>>>>>> #pragma once template <class T> class Tem { public: T rxg(T a); }; <<<<<<<<<class.Cpp>>>>>>>> #include "stdafx.h" #include "class.h" template<class T>T Tem<T>::rxg(T a) { return a; } <<<<<<<<<<<Dialog.Cpp>>>>>>>>> #include "Class.h" ................................ Tem<int> moral; int a=moral.rxg(10); Error: Test.obj : error LNK2019: unresolved external …

Member Avatar for Dave Sinkula
0
278
Member Avatar for mitchelltab

he is what the home work should be. [COLOR=#000000][B][I]Programming Assignment [/I][/B][/COLOR] [CENTER][CENTER][COLOR=#000000][B]CS 320 - Homework Program #1 [/B][/COLOR] [COLOR=#000000][B][I]Due: Sunday, at the end of Week #2 [/I][/B][/COLOR][/CENTER][/CENTER] [COLOR=#000000]Write a program to compute a student’s tuition for one semester, according to the following specifications. [/COLOR] [COLOR=#000000]A student may be classified as …

Member Avatar for ~s.o.s~
0
186
Member Avatar for jobahed

Hi everyone, I'm *very* new to Linux development, and my question topic is probably pretty obscure, so I thought this was the best place to ask. I need to be able to programattically attach arbitrary binary data to an executable so that the program can access it. In Windows, I …

0
120
Member Avatar for mitchelltab

hi my name is tabby. Im in the process of learning c programing and need a lot of help:mrgreen:

Member Avatar for happygeek
0
69
Member Avatar for aholliker

[LIST=1] [*]I need to write a program in c that prompts the user to enter the scores for four quizzes each worth a maximum of 100 points. Your program should compute the average score and display this average together with a letter grade based on the following scale:[/LIST]90 - 100 …

Member Avatar for ShawnCplus
0
119
Member Avatar for joshilay

can anyone explain me why the values are not swapped in the below code ?? main() { int *i,*j; *i=4000; *j=9000; f(i,j); printf(" %d %d",*i,*j); //output =4000 9000 } void f( int *a, int *b) { int *temp; temp=a; a=b; b=temp; }

Member Avatar for Salem
0
315
Member Avatar for sgriffiths

mvwprintw(main_screen, row, col, "%*.*s", REC_NUM_SIZE + 2, REC_NUM_SIZE + 2, ptr2); The above mvwprintw command is part of the unix curses library but can anyone explain what the "%*.*s" is doing, and is used just for the unix library curses? Regards

Member Avatar for Narue
0
95
Member Avatar for Tlhokomelo

Thank you for reading my thread,I am new to C and I have a big problem -Naturally.I cant seem to compile thise code: [code] # define EOF =-1 main() { int c,nl; // integers nl = 0; // assignment int ln to 0 value while ((c = getchar() !=EOF) // …

Member Avatar for Salem
0
113
Member Avatar for Bellaa

Hi all, I will be developing a C compiler :mrgreen: that will support Object Oriented Techniques, Database Connectivity and Simple Networking programming using VB.Net language. I really wish you guys could give comments/opinions on my compiler by downloading the doc attached and send it back to me....:D

Member Avatar for Bellaa
0
185
Member Avatar for blewis999

Greetings I develop C code for embedded Freescale microprocessors. These devices have no OS, or at least the code I develope doesn't. I came across this site in looking for some graphics code snippets; I saw some code from Viky_dev that looking helpful. All the best Bob

Member Avatar for Dani
0
36
Member Avatar for Mr Violent

Hey there, I'm having a problem with the WAVEFORMATEX format, and setting my primary buffer's format. My code is below: [code] void ErrorBox(string strMessage) { MessageBox(NULL, strMessage.c_str(), "Error", MB_OK | MB_ICONEXCLAMATION); return; } bool DSPlayer::SetPrimaryBuffer() { if (lpDS == NULL) { ErrorBox("Direct sound not initialized."); return false; } ZeroMemory(&dsBufferDesc, sizeof(DSBUFFERDESC)); …

0
69

The End.