51,593 Topics

Member Avatar for
Member Avatar for serkan sendur

hi guys, i need to encrypt a plain text limited to 15 characters but the output the encryption must also be 15 characters since i am limited to database constraint. how can i do this? thanks

Member Avatar for Tom Gunn
0
515
Member Avatar for esesili

Hi all, I am studying c++ and there is an expression that i did not understand can someone please explain it to me ? It is declaration of a public class method. The expression is [B]bool less_than(const Date &d) const [/B]. name of the class is Date. Thank you,

Member Avatar for Dave Sinkula
0
74
Member Avatar for iammfa

Hi, in the next example code: [code=cplusplus] #include <iostream>; using namespace std; #include <iomanip>; int main(int argc, char *argv[]) { for(int i = 1; i <= 28; i++) { cout << setw(3)<< i; if(i%7 == 0) { cout << endl; } } system("PAUSE"); return 0; }[/code] i compiled and i …

Member Avatar for JameB
0
106
Member Avatar for KolosoK

Hello, I am attempting to convert a Windows BMP byte stream/array into a PNG format. I am unable to modify how this byte stream comes in. My attempts: I've tried using lodepng ([url]http://members.gamedev.net/lode/projects/LodePNG/)[/url], but it only supports RGBA format for bitmaps (mine is only BGR, I believe). I've also tried …

Member Avatar for KolosoK
0
2K
Member Avatar for kelechi96

Hi I'm thinking of writing a mmorpg game and what I would like to do is create a server I would like to send text messages over the internet to trigger events at the client or server. A. How can I do this. B. Is there a better way of …

Member Avatar for kelechi96
0
119
Member Avatar for sfgal

I am totally stuck. I created a program to read in the file and one that will sort from a string array. The problem is that it sorts from the beginning of each line. I need it to sort after the -. I need it to sort by the town …

Member Avatar for sfgal
0
170
Member Avatar for Anon17

I've finally finished my program, but there is one bug I need to fix. Basically, the user tells me their username, and then that's sent off to a ASP file to verify. However, if their username contains special characters such as a space, * or $ for example, the ASP …

Member Avatar for Ancient Dragon
0
100
Member Avatar for new_divine

i am making a banking application in wxwidget using gcc complier code-blocks. i made a administrator login form now i am having a problem in event handling using buttom i don't no how create a open new window/form through buttons. it would be great if anyone can provide me the …

Member Avatar for Stefano Mtangoo
0
112
Member Avatar for walter clark

I have two recommendations for those already familiar with command line C++: [LIST] [*]Here's a trick: put your cursor on a blank place in your code and hit Ctrl-Space. That will call up IntelliSense for all commands that work for the type of program you selected when you ran the …

Member Avatar for Stefano Mtangoo
0
226
Member Avatar for jdm

I'm working on a program that lets the user watch random videos and view random images. I have it to work, but I want to be able to check to see if the image is there and if so view it and if not then pick another image. Here is …

Member Avatar for jdm
0
88
Member Avatar for GDICommander

Hello, everyone! It's been a long time using C++ and I have a link problem. This is the code... [CODE] #include <iostream> #include "libc++/pcslib.h" int main() { std::cout << "About to load the server and all the clients." << std::endl; Pcs serverProcess("server"); Pcs clientProcess("client"); serverProcess.Join(); clientProcess.Join(); std::cout << "After joining …

Member Avatar for GDICommander
0
116
Member Avatar for StephyGraph

Class Fraction You are asked to develop a relatively complete mathematical module on fractions. You are required to use OOP concepts ONLY. Part A Create a class called Fraction Its data members are: numerator, denominator, fraction_value, slash, whole_number. Fraction_value: stores the fraction decimal value. Slash: ("/"): is common to all …

Member Avatar for tux4life
-2
159
Member Avatar for sagyy

can who suggest me for c mini project .... u can also give source code ..... its so imp. for me ..... plZZZZZ..... SNIP

Member Avatar for tux4life
-1
42
Member Avatar for Renegard

Hi guys! I am trying to make an object oriented program for matrix addition, but I am stuck right at the beginning. I would like to have an 2D array as a class variable and another two class variables would define the arrays x and y coordinates. Something like this: …

Member Avatar for Nick Evan
0
147
Member Avatar for Nickyu0712

I just added the allegro and allegroGL packages to my DEV C++ compiler. But I have an error with the set_gfx_mode funtion. I have written this : [ICODE]#include <allegro.h> #include <alleggl.h> int main() { if (allegro_init() != 0) { return 1; } if (install_allegro_gl() != 0) { return 1; } …

0
88
Member Avatar for ITechno

Hi buddies...!!! M an MCA(2nd Yr) Student.....And in a need of Some Project Topics in C++,which can be completed within a span of two months and the topics should be related to the following subjects..... Networking,DBMS,DAA(Design Analysis of Algorithms) or TCS(Theorotical Compiler Construction) Please help me as fast as possible......

Member Avatar for ITechno
0
117
Member Avatar for abby2589

this is my codes in banking system please bear with my codes..im just new in doing classes *can you help me with this error..tnx!! [CODE]#include<stdio.h> #include<iostream.h> #include<stdlib.h> #include<conio.h> #include <time.h> class Account { public: void Account::existing(void) { cout<<"Account #: "; cin>>user; cout<<"Pin # : "; cin>>pin; for(i=0;i<3;i++) { if(!strcmp("dlsl",user)&&("3645",pin)) { …

Member Avatar for thelamb
0
129
Member Avatar for rwagnes

I am using mfc and I have a *.rc file containing a number of dialogs. I have modified one of the dialogs to include a tab control (dragged from the dialog editor in design mode). When the file is opened in textpad, that dialog now looks like this: -------------------------------------------------------------------------------------------------------- [CODE]IDD_ABOUTBOX …

Member Avatar for Salem
0
410
Member Avatar for xiikryssiix

after a lot of fussing, my code finally compiles properly. but once again, its not calculating the things i want. PROBLEM: doesnt calculate "scores entered by user" doesnt calculate "highest max score" doesnt calculate "lowest min score" as far as the scores entered by user... i was hoping this.. if …

0
89
Member Avatar for medopunsher

HI , i need help with a c++ code that downloads a single file from a DIRECT link and save it somewhere on the computer i am working under windows and i have searched google but i didnt find anything simple just tons of codes that i cant understand i …

Member Avatar for Ancient Dragon
0
225
Member Avatar for xiikryssiix

ok. im pretty much done with this small program my teacher asked us to write. my problem is: it wont give me how many scores there are above average. it keeps giving me 0. i dont get it. maybe im overlooking something? i think something is wrong in my [color=#33FF33]// …

0
65
Member Avatar for slatk3y

Hello, I am having problems with templates. I wrote a templated version of vector. My vector is working. Here is the header file for it: [code=C++] // m_vector_g.h template<typename T> class m_vector { private: // Some code here... public: // Some code here... }; [/code] I want to make another …

Member Avatar for slatk3y
0
101
Member Avatar for shou2009

Hello everybody, I need your help for my C project..... The details of the program is given below :---- 1) [B] The input of the program will be another C program, and that is from a file.....( Please note this carefully)[/B] 2) [B] You have to check the syntax of …

Member Avatar for Nick Evan
0
298
Member Avatar for timbuck2

Hey, I've been researching ways to code in C++ and manipulate excel files (i.e. read and write data). Right now I've written macros in VBA that output a .csv file that is read by my C++ program. It all works, but I'm still wondering if I can just write all …

Member Avatar for timbuck2
0
219
Member Avatar for shea279

I created a dialogbox, with controls, by using the DialogBox() function and a resource file with the controls in it (IDD_DIALOG1). But I'm having an extremely hard time finding a function which will add a menu, also in the resource file, to a dialog created in such a way (IDR_MENU1). …

Member Avatar for shea279
0
89
Member Avatar for teddyg18

when you run an ifstream in c++ and go into a textfile what is the data in the file converted to? this is my code [code] #include <iostream.h> #include <fstream.h> #include "TGraph.h" #include <time.h> #include "TDatime.h" void deeznutz() { char inputFilename[] = "data.txt"; ifstream inFile; int x; inFile.open("data.txt", ios::in); if …

Member Avatar for teddyg18
0
161
Member Avatar for DaBunBun

I'm working on a little code snippet and my c++ seems a bit rusty. How do i go about getting the length of an array? My eclipse is giving me weird values when it should be segfaulting, so I'm trying to figure out whats wrong. Thanks in advance. edit: forgot …

Member Avatar for tux4life
0
163
Member Avatar for Nickyu0712

I would like to know which would be a good graphics library to begin with. I am using Allegro, I want to know if this is good enough for 2D graphics like manipulating bitmaps etc.

Member Avatar for slatk3y
0
108
Member Avatar for Brandon21

Hi Sir, please help me with my code I've already finish the sequence. this is my part : [CODE]#include <iostream.h> int main () { unsigned long int a = 0; unsigned long int b = 1; unsigned long int c; int y = 2; int x = 2; cout << …

Member Avatar for DaBunBun
0
128
Member Avatar for baula

Helo frndz, I need a ebook named 'Starting Out With C++ From Control Structurres Through Objects by Tony Gaddis"...If anyone has this book in pdf or chm format, plz PM me to --snipped--. I badly need this book... Thnx Arif

Member Avatar for DaBunBun
0
137
Member Avatar for joker1379

can someone help me wit this, why does my form becomes unresponsive when i execute this code: [code=c#] private Thread trd; private int y = 0; delegate void MyDelegate(bool show); private void button1_Click(object sender, EventArgs e) { trd = new Thread(new ThreadStart(this.ThreadTask)); trd.IsBackground = true; trd.Start(); } private void ShowProgressBar(bool …

Member Avatar for serkan sendur
0
106
Member Avatar for xiikryssiix

i dont really know whats wrong with this, but its super basic. im not done writing the program yet, im still missing some input prompts for the user, but as i am testing my current program, i keep getting an error message that says line 70 - name lookup of …

Member Avatar for mrjjkalyn
0
114
Member Avatar for xiikryssiix

this is weird to explain in the title alone, but i created a program below that works and compiles properly. it does everything i need it to do. user inputs however many scores he/she wants. 6 scores get calculated for the desired calculations. if user inputs more than 6, the …

Member Avatar for Sky Diploma
0
215
Member Avatar for Anon17

Hi. I have a function which checks for a placement of a substring in a buffer after recieving it over TPC. It checks for the value up until a '&' appears in the string (As the value can be any length). However, my program crashes if the packet has no …

Member Avatar for Anon17
0
168
Member Avatar for daviddoria

I frequent the c++ forum, and I've seen quite a number of posts that are about windows api/MFC stuff. This seems to be quite a separate thing than just "c++". Would it make sense to add a new forum to separate it? Dave

Member Avatar for NicAx64
0
204
Member Avatar for FBI

[B]hello everyone i was wondering what is the best book for beginning c++ apress beginning c from novice to prfessional tech yourself c++ in 21 days..and so on I'm completely newbie and also not good at math either:confused: btw i'm interested in computer programming... so i really want to learn …

Member Avatar for tux4life
0
362
Member Avatar for jempag

can you please help me how to use [COLOR="Green"]function and about function calling?[/COLOR]please give me some easy tip! thank you very much!

Member Avatar for necrolin
0
210
Member Avatar for macla
Member Avatar for prakash.s

hi, can any one give an idea how to rewrite the .net url using cpp.how to integrate it with the ISAPI Headers in IIS. Regards, Prakash --------------------------------------------------------------------------------

Member Avatar for Laiq Ahmed
0
97
Member Avatar for KIngIS

Im using ifstream to read the content in text file. But i want to ignore the first 5 line content. what i do now is using the own function to ignore 1st 5 line content, then save it into new file and reopen the file again. i think this is …

Member Avatar for tux4life
0
144
Member Avatar for xiikryssiix

im not sure whats happening here, but i dont know what code to use to stop the prompts from looping. My exercise is to create a program revolving Array-Based Lists. I simply want the user to input a set of student's records, but the user can input how many he/she …

Member Avatar for MrSpigot
0
115
Member Avatar for apease11

Does anyone know how to accomplish this? Or know of any Open Source C# Web Browser? I'm trying to port one to the Xbox 360, but I don't know where to begin for programming a Web Browser without a GUI. Thanks.

Member Avatar for kvprajapati
0
81
Member Avatar for xiikryssiix

i dont know why im getting a compling error for this... error is: line 112 - name lookup of `i' changed for new ISO `for' scoping line 95 - using obsolete binding at `i' what does that even mean?! my current code is below, to get a better understanding. is …

Member Avatar for Salem
0
62
Member Avatar for xiikryssiix

does anyone have any advice? i created a program and it works fine. my teacher, however, is asking me to have my INPUT and OUTPUT to be subprograms such as the VOID function. i guess my algorithmn has to be.. // struct // void for inputs // void for printing …

Member Avatar for Salem
0
135
Member Avatar for Mr Violent

Hello, I'm having a problem receiving information with Winsock. I have 2 programs written, one is a server capable of accepting sockets from multiple users, and the other is a simple one socket client. The server uses an array of a user defined data type with a boolean variable and …

Member Avatar for leo_yasir
0
1K
Member Avatar for aliaks

[CODE] while (true) { // Display the players location and possible movements. cout << "------------------" << endl; cout << "Location: " << NewUser.location->name << endl; cout << "\nDescription: " << NewUser.location->description << endl; if (NewUser.location->north) cout << "(N)orth to: " << NewUser.location->north->name << endl; if (NewUser.location->south) cout << "(S)outh to: …

Member Avatar for aliaks
0
99
Member Avatar for scarypajamas

I'm doing some math with floating point numbers and I'm getting weird results. For instance, the result of one of my math problems has an "e" and "+" in it. -4.49255e+013 How do I make it display a value without the weird "e" and "+"

Member Avatar for necrolin
0
110
Member Avatar for jessejamesjjr

can any one help me find info on modular programming and how to understand it's functions? any links to go to?[TEX][/TEX]

Member Avatar for ahmadabdullah
0
132
Member Avatar for Poab9200

Aside from many projects I'm working on to learn more about general programming and this language it self. I was wondering how do programmers create "program specific files". Examples: Microsoft Word has .doc type files. Adobe Acrobat Reader has .pdf files. Photoshop has .psd files. On a current project I'm …

Member Avatar for Poab9200
0
125
Member Avatar for Poab9200

First off. Hello, I'm having issues with my little program I've got a few classes down to a tee and am having issues with the War class. With the following code I iterate a new game of War and I have stats that hopefully will help some figure out whats …

Member Avatar for Poab9200
0
2K

The End.