49,761 Topics

Member Avatar for
Member Avatar for replicant.nz

[url]http://www.security.org.sg/code/loadexe.html[/url] [url]http://pastebin.com/QFHASx75[/url] I've compiled this but can't get it to work properly, It runs fine and shows no errors in the console console output: [code]C:\~\~\Documents\Visual Studio 2010\Projects\loadEXE\Debug>loadEXE.exe AcceleratedC++Exe_2-0.exe Original EXE loaded (PID = 4068). Original Base Addr = 110000, Size = 29000 Unmapped and Allocated Mem for New EXE at …

Member Avatar for Satyrn
0
237
Member Avatar for Gaving30

Hi All, First time asking so go easy :-) I am doing c++ a few weeks now, i am doing questions in Project Euler to hopefully improve my coding, But as you will prob see below i am still very new and "Nieve"... Question is: The prime factors of 13195 …

Member Avatar for TrustyTony
0
439
Member Avatar for YAMNA MIDHAT

I want to make a text editor in c or c++ with features like bold,italic,underline,save as ,save,open,font size,font colour, font type,alingment(left,right,mid),cut,copy,paste.......... Plz i need the code if any one can help me plzzzzzzzzzz,,,,,,,,,,,

Member Avatar for YAMNA MIDHAT
-5
4K
Member Avatar for robdb

can someone tell me how this program works? I'm trying to learning C++ by reading some examples, and this one is one of them. [CODE]#include <iostream> #include <string> using namespace std; class Vigenere { public: string key; Vigenere(string key) { for(int i = 0; i < key.size(); ++i) { if(key[i] …

Member Avatar for gusano79
-1
2K
Member Avatar for coolbeanbob

Hello, I am trying to figure out how to get the rand() function to include 0. [CODE]int value = rand() % range + 1;[/CODE] No matter what I set range to be, the lower bound is always 1.

Member Avatar for Fbody
0
174
Member Avatar for fibbo

Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so …

Member Avatar for fibbo
0
215
Member Avatar for coolbeanbob

Hello, I am trying to get the return value from the next_number function up to the makefile function. I am getting an error that says next_number does not have a class type. EDIT: the error is "return statement with a value, in function returning 'void'" I don't understand why it …

Member Avatar for himgar
0
121
Member Avatar for Anuradha Mandal

Which one is update software for c++ and c language. Some practice center such as Codechef,, Uva online judge , I submit a right code but they said the code has compiling error such as it does not familiar with conio.h,getch() etc. I use Dev c++. How can I solve …

Member Avatar for himgar
0
110
Member Avatar for himgar

I want to know how the structure of C++ program resembles to a client server architecture?

Member Avatar for himgar
0
84
Member Avatar for UGndLord

I know these functions in C, but in C++ they doesn't work. What is replacement for these functions in C++ ? Thanks.

Member Avatar for Narue
0
3K
Member Avatar for sergent

Why almost always capital letters are used when defining macros or variables like [CODE]#define SOMETHING 432[/CODE] instead of [CODE]#define something 3243[/CODE] Also, why in macro definition x is used for example [CODE]#define macro(x) (x*x)[/CODE] Does the letter matter, and can longer variable names be used like [CODE]#define MACROSQUARE(variable) variable*variable[/CODE]

Member Avatar for Narue
0
166
Member Avatar for Anuradha Mandal

Whats wrong with this code.... [CODE]#include<iostream> #include<conio.h> using namespace std; int main() { int x,y; cin>>x>>y; while(1){ if((0<x<=2000)&&(0<=y<=2000)) { if((x<=y)&&(x%5==0)) cout<<y; //else if((x/2)>y) // cout<<y; // else // cout<<y; else { break; } }} getch(); return 0; } [/CODE] I want to print the single value of y.I do not …

Member Avatar for Narue
0
121
Member Avatar for ellisrn

I need to write a program which will execute a factorial, but with an upper and lower bound. Here's what I've written, but it's not working. I keep getting an error message on the for command with expression syntax. Please, I've got to have this and much much more by …

Member Avatar for Fbody
0
1K
Member Avatar for Digitalwolf

I have written a small client server program using tcp sockets, and i ran into trouble in retrieving the data brought in by the receive function. Like down below. [CODE] char *rec; int buff=1024; recv(a,rec,buff,0); [/CODE] You need a char buffer to get the data, but after that i wanted …

Member Avatar for Digitalwolf
0
181
Member Avatar for werdna347

[CODE] cout<<"What HTH level are you (1,2,3): "; cin>>hthLevel; switch(hthLevel){ case 1:out<<"Hand to hand level= 1"<<endl;break; case 2:out<<"Hand to hand level= 2"<<endl;break; case 3:out<<"Hand to hand level= 3"<<endl;break; default: cout<<endl<<"Incorrect"; }[/CODE] Need to know how to loop this so if 1,2 or 3 is entered it continues but if an …

Member Avatar for Cross213
0
285
Member Avatar for Anuradha Mandal

Can any one say why the [B]break[/B] state does not work. [CODE]#include<stdio.h> #include <stdlib.h> int main() { int n; loop: scanf("%d",&n); if(n!=42){ printf("%d",n); goto loop;} else { break; } return 0; } [/CODE] this is my code.

Member Avatar for Anuradha Mandal
0
101
Member Avatar for cppman

Hi, I have a .txt file containing information about 1000 events; each event lists 10-15 hit information. This number is not fixed. The format is given below: ================================================================= begin of event: 45 Hits(): X = 1.01101 Y = 1.01101 Z = 0.048 Hits(): X = 1.00502 Y = 1.02509 Z …

Member Avatar for cppman
0
177
Member Avatar for coolbeanbob

Hello, I have been working on an assignment using codeblocks with the GNU GCC compiler. The assignment must compile using Visual Studio 2008. I have not been able to get my hands on Visual Studio 2008 as of yet, but I was wondering if anyone thinks I should be concerned. …

Member Avatar for coolbeanbob
0
296
Member Avatar for hondros

I am at my wit's end with this thing. I just can't figure out, why I cannot set the WNDCLASSEX.lpfnWndProc equal to my class's function. Can someone help? Here's my code: system.h [code] #ifndef SYSTEM_H #define SYSTEM_H #include "stdinc.h" class System { private: void initD3D (void); void cleanD3D (void); LRESULT …

Member Avatar for hondros
0
193
Member Avatar for coolbeanbob

Hello Everyone, I am working on a program that will write random numbers to a file. I am getting the following error on line 31 of the filer.cpp file. "error: no match for 'operator<<' in 'outstream << srand((( srand(((unsigned int)time(Ou)))'" I believe the code used to generate the random number …

Member Avatar for coolbeanbob
0
204
Member Avatar for matanking

[CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream First("firstt.txt"); fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(First, firsttime); if(firsttime!="not"){ First << "not"; cout << "first time settings (to be changed at file.txt)" << endl << "allow every one enter? …

Member Avatar for venomxxl
0
215
Member Avatar for michelleradu

Error C2662: 'Event::GetTime' : cannot convert 'this' pointer from 'const Event' to 'Event &'. This is my code: [CODE] #include <iostream> #include <queue> #ifndef Person_h #define Person_h #include "Person.h" #endif using namespace std; enum EventName { _SendMessageToUserInterface, _SetPNOld, _IntroduceInfection }; class Event{ int time; EventName name; Person person; public: Event(int …

Member Avatar for michelleradu
0
357
Member Avatar for aloi93

This is what i've made so far. [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int b=1; for (int i=1; i<=5; i++) { for (int k=1; k<=i; k++) { cout<<b; b++; } cout<<endl; } getch(); return 0; } [/CODE] The output is as below 1 23 456 78910 …

Member Avatar for Anuradha Mandal
0
386
Member Avatar for BlackHawck

Look at this program compiled using [I]Turbo c++ 3.0 compiler[/I] Aim is [B]to calculate the factorial of a no[/B]. [COde]#include<iostream.h> #include<conio.h> long double factorial(int); void main() //main function { int inp; clrscr(); cout<<"Enter a positive no. "; cin>>inp; cout<<"factorial is :"<<factorial(inp);//displays factorial getch(); } long double factorial(int a) { long …

Member Avatar for Anuradha Mandal
-1
740
Member Avatar for Samuelandjw

Hi, I have some experience with Visual C++. Recently I have been trying to develop on Mac OS X, and the IDE of choice is naturally XCode. It is very straightforward in VC++ to build the program in DEBUG configuration or RELEASE configuration. But as a newcomer for XCode, I …

0
56
Member Avatar for Hayzam Sherif

Hi i Am A Newbie In This Website So Please Go Easy on Me. I Have Baisc Knowledge of C++ And I Do Projects on A Daily Basis, But I Have Never Tried Anything Related To Networking .So I am Asking How Can I Make A Chat Program With 2 …

Member Avatar for Narue
0
210
Member Avatar for Digitalwolf

Hello everyone, i write mostly in java but have recently started picking up c and c++, and i was wondering if there was an equivalent to the java date class in c++ or c? I've searched for a date.h and came up empty.

Member Avatar for Digitalwolf
0
620
Member Avatar for pseudorandom21

Basically I'm wondering what a sensible approach to learning Windows driver development would be. I have a logitech mouse that logitech decided to drop support for Vista/W7 on, and I'd like to write a driver for it but if that isn't possible it's fine and I would work with some …

Member Avatar for Narue
0
77
Member Avatar for David321

Is there any easy way to view the full content of multidimensional arrays in VC++ 2010 in the debugger (or some other way I suppose)?

Member Avatar for David321
0
201
Member Avatar for [Prototype]

Hello there, I'm having some trouble trying to converting images/characters/strings/data into a byte array and then send them. In C++, I already have established a connection between the client - server and would like to send and receive data. Now I'd like to send an install file which is like …

Member Avatar for L7Sqr
0
146

The End.