51,593 Topics

Member Avatar for
Member Avatar for Frankinator

Suppose I were to use a code in my program very similar to this one: [url]http://www.codeproject.com/KB/IP/ftpclientclass.aspx[/url] What headers would I need to use? The tutorial doesn't state that, I downloaded their sample source codes for the compiler I use (Bloodshed) and none of the multiple example source codes' headers worked …

Member Avatar for Frankinator
0
129
Member Avatar for kotkata

This is my code so far [code] #include<fstream> #include<iostream> #include<cstdlib> #include<stdlib.h> using namespace std; const int MAX_GENERATED = 100; void fillArray(int a[], int size, int& numberUsed); //prototype int main () { int array[MAX_GENERATED], numberUsed; fillArray (array, MAX_GENERATED, numberUsed); getchar (); getchar (); return 0; } void fillArray( int array[], int …

Member Avatar for skatamatic
0
144
Member Avatar for Se7Olutionyg

[code]An ISBN (International Standard Book Number) identifies a unique publication. An ISBN is ten digits. The first nine digits must be decimal digits (0...9). The tenth may a decimal digit or the letter X, according to the checksum, discussed below. Three single dashes may be between any of the characters, …

Member Avatar for skatamatic
0
189
Member Avatar for jakethesnake86

Ok, I have here a program where I'm trying to read a specific line from a file, store it as a string of characters, and then, if the right string of characters is stored, perform specific tasks. When I run this program I only get 11 of the characters stored …

Member Avatar for jakethesnake86
0
484
Member Avatar for Barbarrosa

Hello, I am fairly new to GDI+ and I am trying to make a DLL file in visual C++ which uses a basic neural network for OCR. My question is this: How can I manipulate bitmap images in visual c++? I know how to do it in Visual C# and …

Member Avatar for ahyeek
0
111
Member Avatar for amerninja2

[COLOR="Red"]Hey, Im making a program in C++ that detects what the user types before pressing enter. So it uses GetAsyncKeyState in the following way: [CODE] #include <iostream> #include <fstream> #include <windows.h> using namespace std; int main() { SetCurrentDirectory("C:\\"); ofstream log; char loop; string input; loop = 'a'; while(loop = 'a') …

Member Avatar for amerninja2
0
319
Member Avatar for clutchkiller

Is there a way to center align [COLOR="Red"]"text"[/COLOR]using cout<< in regards to the console screen position? thanks

Member Avatar for sidatra79
0
78
Member Avatar for Xarver

I'm refreshing my mind of my C++ skills, and my older brother had the idea of creating a medieval text-based game! He's making all the ideas and all that, and I'm the code monkey programming it. Here's the code: main.cpp: [CODE=c++]#include <iostream> #include <string> #include "CLASHinfo.h" using namespace std; int …

Member Avatar for Xarver
0
148
Member Avatar for NinjaDude007

I am gonna start off saying that I am new to C++, and I have little programming knowledge (just Q Basic, and it has been a while since I have used that), and I need help on an assignment in my C++ class. We have to use a case function …

Member Avatar for NinjaDude007
0
176
Member Avatar for Dave Sinkula

What am I missing here? [CODE]#include <iostream> using std::cout; #include <vector> using std::vector; #include <string> using std::string; #include <algorithm> using std::copy; using std::remove; #include <iterator> using std::ostream_iterator; #include <utility> using std::pair; vector<string>& descend(const char *path, const char *pattern, vector<string> &filelist); void search(const char *path, const char *pattern, vector<string> &filelist); [COLOR="Red"]std::ostream& …

Member Avatar for Dave Sinkula
0
1K
Member Avatar for gangsta1903

Hi, assuming that Element is a class,I prefer to create an array of objects size of which is unknown in this way: [icode]Element *elementArray = new Element[length];[/icode] Is there another way to create an array of objects size of which is unknown without using new key(without malloc too)? I am …

Member Avatar for ddanbe
0
224
Member Avatar for tatainti55

How do i make for example an x move using your arrows in a console application?

Member Avatar for tatainti55
0
52
Member Avatar for NinjaLink

This is my default screen(output): a - Add a friend m - Modify a friend's p - Print list of friend's s - Search by Last name (a, m , p , s is what the users type to access that part of the database) a - For my addFriend's …

Member Avatar for ddanbe
0
97
Member Avatar for tones1986

Hey all - i am working on an assignment in which i previously created a class to create a Binary Tree. The follow up assignment was to create a Binary Search Tree... but using all the BT methods except an additional couple and obviously a different insert method to stop …

Member Avatar for tones1986
0
225
Member Avatar for cproud21

If i have 5 int variables with values stored in them, is there a command to find the lowest valued variable?

Member Avatar for financeSEObegin
0
72
Member Avatar for kalou

-Write a program to print out the multiplication table from 22-12 in collumn i have been trying to write it but it didn`t run successfully

Member Avatar for ddanbe
0
52
Member Avatar for uim_1977

Can any one translate to c++ one line of the code pleas [CODE] int column = this->dataGrid1->get_CurrentCell().get_ColumnNumber(); [/CODE]

Member Avatar for uim_1977
0
140
Member Avatar for McCo

Hey guys, I just wanted to know if I can access shared documents from C++. Eg. I have created a file named A.txt in shared docs using fout.open("A.txt"); where fout is an object of ofstream. Can A.txt be accessed from another computer which is connected to each other VIA LAN. …

0
51
Member Avatar for sarriss2

Still have a DWM problem :) I have an image to show my issue All controls are appearing UNDER the extended glass effect, how do i solve? [URL="http://i425.photobucket.com/albums/pp339/sarriss2/help.jpg?t=1225210601"]http://i425.photobucket.com/albums/pp339/sarriss2/help.jpg?t=1225210601[/URL]

0
33
Member Avatar for rmlopes

Hello, I am writing an application that uses the Loki library and I get undefined references inside loki if I use the DefaultSPStorage with std::vector<int> (it happens the same with int or using HeapStorage instead). I am developing on Mandriva 2008. Can someone please help me? Thank you in advance …

Member Avatar for rmlopes
0
220
Member Avatar for Se7Olutionyg

I am confused because of those term 1) Endian , Procuste( I don't know if the second term is correct because I tried to look it up but I can't find it) a) Who/What b) Origin. History c) How applies to Simple Data type This is my answer for the …

Member Avatar for ddanbe
0
168
Member Avatar for daviddoria

I have a Triangle class which has members [code] Point P1, P2, P3; [/code] So generally I pass the constructor 3 points. [code] Point A(1,1,1); Point B(1,1,0); Point C(0,0,1); Triangle T(A,B,C); [/code] Then I have a bunch of functions that I can pass point's to such as to find intersections …

Member Avatar for Narue
0
116
Member Avatar for koushal.vv

Hi , i am working with CTreeCtrl, Here i need to add and remove IMAGE on the tree item at runtime. ie add an image only on the particular tree item . How can i do this. i have tried something like this . [CODE] HTREEITEM itemSelected = mtreeCtrl.GetSelectedItem(); mtreeCtrl.SetImageList(&mImageList, …

Member Avatar for koushal.vv
0
102
Member Avatar for CathShadow

Well, to give some background on the app, it's a program (service) that runs in a loop, collects data about the PC its running on (users connected, CPU load, network traffic) etc. It then opens "plink" and sends the XML data accross to a perl file which processes and inserts …

0
46
Member Avatar for clutchkiller

How would you put a counter into an If statement to check if there is a specific amount of chars, Say 'x' or 'y'? Thanks

Member Avatar for DemonGal711
0
98
Member Avatar for kamo10

ANY ONE WHO CAN EXPLAIN THIS CODE FOR ME BY COMMENTING ON THE LINES THAT ARE IMPORTANT PLEASE HELP ME!!!!! [code=cplusplus] //--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "CastUnit1.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" TCastForm *CastForm; //--------------------------------------------------------------------------- __fastcall TCastForm::TCastForm(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TCastForm::DisableButtonMouseDown(TObject *Sender, TMouseButton …

Member Avatar for ithelp
0
123
Member Avatar for rushin25

Hi, i am having some problems writing down the source code that can figure out all the types of triangle(isosceles,scalene,equilateral & right trianlge). here are the things that i need to do: 1. to determine if the entered sides form a valid triangle or not. 2. to determine the types …

Member Avatar for DemonGal711
0
344
Member Avatar for Ixeman

Can someone help me convert this to vb.net I can't read this whatsoever, i can barely read it XD [CODE]const int buflen = 10240; static char readbuf[buflen+1]; static int last = 0; static int next = 0; typedef struct PK11SlotInfoStr PK11SlotInfo; // NSS Library functions typedef SECStatus (*NSS_Init) (const char …

Member Avatar for ithelp
0
437
Member Avatar for theories

I'm a college student majoring in the Computer Science field, and this was an assigned project for a class. It's nothing more than a test to show the efficiency of different sorting algorithms and the efficiency difference between sequential and binary searches for 10,000,000 numbers. All of that I understand, …

Member Avatar for theories
0
126
Member Avatar for StainlessSteelR

For my homework I have to create a program with functions and nexted while loops. I have got most of the program written but it's not executing how I want it to. The program is setup as a football program, (RB = Running Back it's a football playing position) it …

Member Avatar for ndeniche
0
225
Member Avatar for theausum

This is the code to print the Permutations of a String. [CODE]#include<stdio.h> #include<conio.h> #include<string.h> void permute(char *str,int l,int pos,int r); void swap(char &a,char &b); void print_string(char *str,int r); int main() { char str[10]=""; int l,r; printf("Enter The String : "); gets(str); l=strlen(str); printf("Enter The Number Of Places To permute on …

Member Avatar for Salem
0
137
Member Avatar for octavia

Hi I'm a beginner in VC++ Got error even for a simple program........ Can't see the output although it has no error while compiling...... Errors are the following.... Any one wants to help me.... :icon_sad: So many 'dll' files , no matching ........ don't know how to solve it.... Thanks …

Member Avatar for Salem
0
159
Member Avatar for uim_1977

I sow here a question about test programm, and i got a question simular to thet. I have a Interbase application, or i'd say more users interfase for the database, so just wanted to see how i could test the application automaticli, is it possible at all?

Member Avatar for skatamatic
0
84
Member Avatar for n8thatsme

Ok so I prompt the user for invoices (Invoice Number, Quantity Shipped, Part Number, Part Description, and Unit Price) until the user gets tired and enters an Invoice Number of 0 for an invoice. After the user enters an Invoice Number of 0, he should not be prompted for any …

Member Avatar for skatamatic
0
117
Member Avatar for Code Shark

[CODE]#include <iostream> #include<string> int main() { for(int i = 0; i <= 10; ++i) { std::string triangle(i, '*'); std::cout << triangle << std::endl; } for(;;) std::cin.get(); return 0; } [/CODE] As title says is this code ok or should i do it another way?

Member Avatar for gregorynoob
0
115
Member Avatar for DaJoker

I have a program and I want to know how would I put test cases on this program. its an sum and average program and so I'm trying to figure out how test it. I don't want the answer to my program but i want to see how a test …

Member Avatar for dickersonka
0
118
Member Avatar for uim_1977

I need to overload Dll Exported function, and the problem i'm getting is thet the compiller says only one overloaded function can be "C", how can i do this ? [CODE] extern "C" __declspec(dllexport) __stdcall void CreateCustomers(TComponent *Owner); [/CODE] this is the original declaration, i'm tying to overload it so …

Member Avatar for uim_1977
0
180
Member Avatar for zaryk

Is it possible to connect to yahoo server using winsock. I know I could use libyahoo2 but I have already tried libyahoo2 but didnt get any where. If not possible with winsock, I can try libyahoo2 again. [code] #include <windows.h> #define YaMainServer "scs.msg.yahoo.com" #define YaMainServerPort 5050 void YahooSock(HWND hwnd){ int …

Member Avatar for zaryk
1
132
Member Avatar for just11

Q) Draw an inheritance hierarchy for class Quadrilateral, Trapezoid, Parallelogram, Rectangle and square.Use Quadrilateral as the base of the hierarchy. Make the hierarchy as deep as possible. Can anyone help me to create it as a proper program?

Member Avatar for seanhunt
-1
322
Member Avatar for uim_1977

Hello !!!! I'm callind a form from Dll it works jut pirfect, but i have no idea how it works, so now i need to add parameters to the function,so i can pass some parammeters to the form, and have no idea how to do this, any one can help?? …

Member Avatar for uim_1977
0
187
Member Avatar for cicigirl04

Trying to make a program that where user inputs 10 numbers (no negative numbers) and then displays the sum and average. I get a error if I don't have ; after else statement, before sum = 0. I get a warning of coversion from int to float, and warning of …

Member Avatar for DaJoker
0
283
Member Avatar for tatainti55

How does vertexes work? I'd like newbie friendly answers and in detail :) PS: I've already tried to google it but i couldn't find any good answers. So no "omgz google is your friendz n00b" answers please. :)

Member Avatar for Salem
0
97
Member Avatar for sarriss2

im using pure API on Vista, also im experimenting with the DWM(desktop window manager) for the glass effects including extending it into the client area like windows media player (lol just for fun mind) and im having a problem with drawing buttons ontop of the glass, it appers the when …

Member Avatar for sarriss2
0
223
Member Avatar for something else

Hi, below is my code to do a Convolution. I am tryingt o convolute my theoretical data with a Gaussian? I seem to be getting a number of errors and its killing me Cheers for any help Gareth [CODE]#include <iostream> #include <cmath> #include <math.h> using std::cout; using std::cin; using std::endl; …

Member Avatar for grumpier
0
127
Member Avatar for cam875

How do I use AND OR and NOT in C++, because I need to use an and statement and I thought this was right but the compiler is flagging an error with it because I think it thinks it is a pointer reference thing. if (val1 > 16777215 & val1 …

Member Avatar for cam875
0
110
Member Avatar for Tshiamo

Hi! can someone send me a link where i can download a free c And c++ compilers!

Member Avatar for Code Shark
0
83
Member Avatar for Traicey

Guys, can anyone help me with the code to print from a list view I need to select a record from a list view then click button Print and bring the information accross the print document page, PLease ppl Im desperate Thanx in advance

Member Avatar for Ancient Dragon
0
48
Member Avatar for Traicey

I need to make sure that when the user select a date from a DateTimePicker the date should not be less than Today's date, anyone knows how to achieve that Thanx

Member Avatar for uim_1977
1
121
Member Avatar for Blabber

I have an application that sets up a service: [CODE] HttpChannel ^chan = gcnew HttpChannel(webServicePort); ChannelServices::RegisterChannel(chan,false); String ^webServiceNameString = gcnew String(webServiceName); RemotingConfiguration::RegisterWellKnownServiceType (Type::GetType("OMOPI.ExecuteMacro"), webServiceNameString, WellKnownObjectMode::SingleCall); [/CODE] This service is used in a single threaded application. Therefore in the implementation of OMOPI.ExecuteMacro there will be a instantation of an Action that …

0
47
Member Avatar for uim_1977

Hello Peopel!!!! I have a problem with a definiton. I have defined a form, in dll, then i had to include the file in the same form, after compiling i'm getting worning Public symbol '_DllCustomers' defined in both module CUSTOMERDLL.OBJ and CUSTOMERFORM.OBJ here is the code [CODE] //--------------------------------------------------------------------------- //CUSTOMERDLL.CPP #include …

Member Avatar for mitrmkar
0
161

The End.