19,876 Topics

Member Avatar for
Member Avatar for hfactor9

I think these req's might be impossible. 1. Upload a .hdrs file containing hundreds of thousands of email headers. All headers (each email header record) in this file contains many identical and many different header fields. These email headers are generated from Spam Reports. 2. Return all unique headers and …

Member Avatar for Adak
-1
102
Member Avatar for snivas519

Can anyone explain me the merge sort code(using divide and conquer method and recursive call)...

Member Avatar for snivas519
0
77
Member Avatar for Astro2010

Reading in a string from a file and need to preform basic math equations with it, therefor assuming it can't be in string form. I am attempting to use ATOF but am getting 0's and nan's in return...any suggestions? #include <stdio.h> #include <string.h> #include <math.h> int main() { /*Define Everything*/ …

Member Avatar for Ancient Dragon
0
91
Member Avatar for trippinz

I embedded a font to my winform application and the font showed up on my computer as well as many others. But for some wierd reason it shows up as blank buttons (I used the font on buttons) on some peoples computers. It is not the OS they use as …

Member Avatar for trippinz
1
279
Member Avatar for Krysis

Hello yet again... Anyway, I'm trying to convert a string that has the form of "1097.04", that is, decimal fixed point with two digits after the decimal point. My code currently reads this number from a file then stores it in a *char. Then when i try to convert this …

Member Avatar for Astro2010
0
219
Member Avatar for iceman29

Hi, Is it possible to display the output of a C program in different font sizes by setting it in the code? If yes, please guide regarding the same. Thanks.

Member Avatar for xavier666
0
204
Member Avatar for ftl25

Hi I am creating a DLL which will often make calls to another DLL. I have gone through the procedure of getting a handle to the other DLL and this works fine for some function calls. It seems like the functions which don't modify a parameter work fine. The access …

Member Avatar for ftl25
0
625
Member Avatar for ziarczak

Hello everyone, I'm having problems with this code: [CODE=cpp] #include <vector> using namespace std; template <class Type> class Some { private: vector<Type> elements; vector<Type>::size_type index; //THIS IS WRONG public: Some() { } }; int main() { } [/CODE] It doesn't compile, giving me [CODE] p.cpp:9: error: type ‘std::vector<Type, std::allocator<_Tp1> >’ …

Member Avatar for Luther von Wulf
0
93
Member Avatar for furtaker

Hi, I am trying to incorporate a struct and class in the same program to calculate overtime pay and hours for one person. I am having a hard time with these two and especially putting them together. I am not sure what to do to get the program to compile …

Member Avatar for Luther von Wulf
0
249
Member Avatar for anzoo2009

Hello everyone I am new with algorithm, this is one of my problem which I am trying to sort out. Can anyone help me with some clues for this... Design an algorithm that will read an input weight for an item to be shipped search an array of shipping weights …

Member Avatar for anzoo2009
0
94
Member Avatar for RouseA

I am developing a number of projects for STM32 processors using Eclipse, gcc, gdb and an Olimex ARM-USB-OCD jTag dongle. All works well, but every time I relaunch the project in debug mode the code stops at address 0x08000000. The debug window displays 'No source available for "g_pfnVectors() " '. …

0
64
Member Avatar for hariramprasath

Hi everyone. I want to extract the user list in Active directory using C prog. Please somebody help me. Am badly in need for this.

0
25
Member Avatar for xheavenlyx

Before I ask the question I realize that selection of a programming language depends on the context of a problem at hand. Related to this I would like to know (if anyone) how many of you use which language for programming microcontrollers, embedded systems and even generally on PC. Here …

Member Avatar for stevephillips
0
218
Member Avatar for indianscorpion2

this code is to find the factorial of a number by the recursion principle. trace the control flow in this program very carefully.

Member Avatar for Adak
0
176
Member Avatar for vishal456
Member Avatar for ellenski

Hi, In this "tree" code, what I am having trouble with is for example i inputted 2 numbers ( 7 and 5 ) an 7 is the root. if i wanted to delete 7 which is the root, it should be deleted and replaced by 5 making 5 the new …

Member Avatar for abhimanipal
0
165
Member Avatar for rohith_08
Member Avatar for pheininger
0
246
Member Avatar for Levo

Hi, I am using the following code to download files from the internet: [code=c]size_t write_data(void *ptr, size_t size, size_t nmemb, FILE *stream) { size_t written; written = fwrite(ptr, size, nmemb, stream); return written; } int main(int argc, char** argv) { FILE *downloaded_file; if ( (downloaded_file = fopen (download_path , "w" …

Member Avatar for 0x69
0
2K
Member Avatar for trippinz

I have created a string in (e.g. Button1_click) Call that string "textboxtext" now for some basic text to assign to the string I did the following [code] public void button1_Click(object sender, EventArgs e) { string textboxtext; textboxtext = textBox1.Text; textboxtext += textBox2.Text; textboxtext += textBox3.Text; //Some other code later on …

Member Avatar for saravind84
0
179
Member Avatar for ramilol

ok so im trying to use double buffer to make smooth animation but i can't get it to work here is the code for my drawing [CODE] VOID onPaint(HDC hdc,HWND hWnd) { HDC hDC=GetDC(hWnd); HDC memDC = CreateCompatibleDC(hDC); HBITMAP hMemBmp = CreateCompatibleBitmap(hDC,300,300); HBITMAP hOldBmp = (HBITMAP)SelectObject(memDC,hMemBmp); Graphics graphics(memDC); Pen pen(Color(255, …

0
157
Member Avatar for vbx_wx

I have to do this : define a float variable and take its adress,cast that to an unsigned char and assign to it to an unsigned char pointer: Why isnt this good ? [code] float f; unsigned char* c = static_cast<unsigned char>(&f); [/code]

Member Avatar for Narue
0
77
Member Avatar for gahhon

hey anyone, what is the meaning of while(!correct) ? when correct = 0, what is the meaning of it? i have to trace the output but i dont understand it. please help me (: thanks alot...

Member Avatar for Narue
0
135
Member Avatar for nssltd

NOTE: the zip with the code failed to upload please [URL="http://download460.mediafire.com/8o5t64qgch3g/5j62bckuoo9m8pu/Messenger+Code.zip"]click here[/URL] to get the code. Hey, I have been working on a instant messenger in c# as i knew this was possible, i haven't much knowledge in Sockets and network connections but i browsed the internet for some code …

0
72
Member Avatar for rajsekhar28

SortedInsert() is a function which given a list that is sorted in increasing order, and a single node, inserts the node into the correct sorted position in the list.I know this code works fine.I am just curious to know why we can't use just single pointer to node to traverse …

Member Avatar for Ancient Dragon
0
126
Member Avatar for daredevil786

[code] int x[] = { 1, 4, 8, 5, 1, 4 }; int *ptr, y; ptr = x + 4; y = ptr - x; [/code] why y is coming 4 in this code i think that it should be 8

Member Avatar for pheininger
0
1K
Member Avatar for m_ishwar

I am experiencing a problem with turbo c while I execute odd loops. The compiler doesnt wait till I give a yes or a no. It just jumps out of the loop. Can anyone help me?Is it a problem with the compiler or my program. The latter is not possible …

Member Avatar for Aia
0
119
Member Avatar for guru_iyer

I need to get an output like: 1 1 11 11 111 111 1111111 I tried a lot and came to the following program. But i'm getting output like: 1 1 11 11 111 111 1111111 Please help me correct this program. The preview of the shape was not coming …

Member Avatar for Adak
0
148
Member Avatar for ftl25

Hi. I am writing a DLL application in C (using VC6) which calls external DLL functions. Some of those calls execute and return without a problem, but some others don't. When I say they don't return, I mean that either they don't return at all, or else they take a …

Member Avatar for Ancient Dragon
0
77
Member Avatar for Jsplinter

I am getting this error even though a) the header file does exist and is located in the directory and it's not somehow been switched to read only. Also, my #include statement uses "" like "test.h" so the compiler knows to look in the project directory first. I've read that …

Member Avatar for Jsplinter
0
362
Member Avatar for Codeburner

Hi is there any difference between the size of a struct type and the size of it's instance? similarly with enum type and it's instance...

Member Avatar for Narue
0
82
Member Avatar for watery87

hi guys, I found this code on the web but unable to integrate it into my code, can any1 help?. The problem is, it doesnt read till the eof, instead it stops when the condition is erroneously made. [code] #declare Line_Char_Buffer_Size 4000 #declare INPUT_FILE_NAME "Countries.txt" void readData () { FILE …

Member Avatar for zerocool21
0
103
Member Avatar for Merlin33069

Ok, i've looked in a lot of places, and on google, and it seems that google is perforated with "packet sniffer" and that not what I want, in other words I cant find what I wanted. I'm working on upgrading my server to the latest version of the client (public …

Member Avatar for Merlin33069
0
104
Member Avatar for Shilpakmthn

Hell frinds I want to know the basic that are availble in C# or .net to shortened the code. so any suggestion that are available , u are requested to tell. any suggesion will be welcome. I amd talking suggestion like clone and copy methods in which one is use …

0
59
Member Avatar for arshiyafatima

i have write a c++ progam psudocode on additon of two numbers and average of two numbers enterd from keyboard

Member Avatar for jasikamarshel
0
98
Member Avatar for eligio

Hello! I need to extract a custom shape from a given image. That custom shape can be, for example, a triangle. For example, if source picture is 100px width and 100px heigth, I need to define a triangle with points: (x=0 y=0) , (x = 50, y = 50), (x …

Member Avatar for eligio
0
1K
Member Avatar for kimimaro

Below are a program that supposed to ask a user to enter a user ID and if found, it will then modify the very same person details in the record and if not found then calls the add function to prompt the user details and add into the record.txt as …

Member Avatar for Adak
0
253
Member Avatar for ellenski

Hi, We were asked to make a Binary Search Tree program in C. It should be able to traverse the numbers (preorder, inorder, postorder) then display it. And locate the number and display it. And locate the number to delete, delete it, then display the number that was deleted before …

Member Avatar for ellenski
0
199
Member Avatar for patrick k

I was wondering if anyone could help me a little bit with a problem I encountered on Project Euler. The specific problem at hand is to find the 10,001st prime. I have implemented what I think to be a version of the Sieve of Eratosthenes. When I modify the problem …

Member Avatar for GreenDay2001
0
129
Member Avatar for dwlamb

I'm trying to write a CGI script as part of a web technology programme I am undertaking. There's a challenge with getting form data to concatenate into my SQL strings to populate my database which is in Postgre. This is my HTML form: [CODE="HTML"] <form action="review_input.cgi" method="post"> <input type="hidden" id="cdid" …

0
71
Member Avatar for cpp.coder37

Hi every one. I want to do my fyp in Operating System. Can some one please give me a good idea? I want to do my fyp in kernel programming. But please give me ideas. Thank you

Member Avatar for abhimanipal
-2
63
Member Avatar for mjmythili

Hii friends, Is it possible to find the no. of elements in an array after inserting without counting while insertion

Member Avatar for Ancient Dragon
0
885
Member Avatar for nssltd

Hey well i am using microsoft visual c# 2008 professional edition and i seem to be having trouble using the cursor. The cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my windows default cursors to …

Member Avatar for nssltd
0
255
Member Avatar for cpp.coder37

Hi every one. I want to ask a question. Whenever i plugged a usb in my computer i want to save that time when this happen. Means that i want to save when when a usb is plugged in my pc in a particular day. I want to do it …

Member Avatar for sirio.bm
0
83
Member Avatar for xxpokerxx

Hi, I am trying to implement a binary tree(not sorted) using recursion. I have figured out most of my function however GetMax and GetMin are confusing me. [CODE]#include <stdio.h> #include <stdlib.h> #include <limits.h> typedef int TreeEntry; typedef struct binary_tree_node { TreeEntry item; struct binary_tree_node * left; struct binary_tree_node * right; …

Member Avatar for xxpokerxx
0
282
Member Avatar for Ash.22

hi i've to develope c/c++ console application that connects to a MySQL server and lists all hosts connected to it at that point in time. pls help me

Member Avatar for gunavathi
-2
70
Member Avatar for padmavathi.ps

How to add a image or a picture from c#.net to sqlserver database . so that we can able to see the picture or image in the database when we open

Member Avatar for dnanetwork
0
61
Member Avatar for watery87

Hi guys, am currently creating a client/server program. However im having trouble reading from a text file. Im not sure whether fgets or fread is better in my case. Basically my program requires user to input a country, and the program will display its details out.My question is, what method …

Member Avatar for watery87
0
479
Member Avatar for winecoding

There is a small program. [CODE]#include <stdio.h> void f(char **p); int main() { char *argv[]={"ab", "cd", "ef", "gh"}; f(argv); } void f(char **p) { char *t; t=(p+=sizeof(int))[-1]; printf("%s\n", t); }[/CODE] Assume the size of int is 4, I was asked to give the running result of the following code segment. …

Member Avatar for burgercho
0
92
Member Avatar for NargalaX

I've been looking around for some good DLL Injection tutorials, because I would like to create a DLL Injector, mainly for educational purposes. I've looked around on google for the past 20 minutes and the only things I've come up with are debates on whether its possible or not. I …

Member Avatar for jonmcc
0
279
Member Avatar for Nandu Das

I installed c++ and started to write a new simple program.But i got a warning "Function should return a value". The source code is correct and the directories are also correct. What should I do? Pls help....

Member Avatar for $urya
0
72

The End.