18,490 Topics
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 …
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 …
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
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 …
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 …
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, …
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 …
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. - …
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-
[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 …
[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, …
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 …
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. …
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 …
As we have JVM- can we have smthng similar for C which first converts C into a byte code and then executes it.
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...
<< split from [thread]50420[/thread] >> i want to know abt Ellips arugument passing to any funtion plz reply me quickly
Sir, I want to make connectivity in c with database oracle so plz tell me the code for that.thanx in advance.
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; …
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 …
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 …
dear friends i want to know what we mean by generic pointers and what are the benefits of it. thanks every1.
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
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.
Hello how would i go about converting a string value to HEX ie char name[10]="STEPHEN"; Convert name to HEX
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 …
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 …
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 ??
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.
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?
can anyone tell me what are pointers to function ??? and how are they implemented ??
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!!
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 …
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 …
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 …
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 …
[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): "); …
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 …
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 …
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 …
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 …
hi my name is tabby. Im in the process of learning c programing and need a lot of help:mrgreen:
[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 …
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; }
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
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) // …
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
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
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)); …
The End.