49,756 Topics

Member Avatar for
Member Avatar for jan1024188

I want to know how to write a program that moves for example C:\ex.exe to D:\ex.exe.... What header to use? stdio.h? what function to use? Can i get a link of source(this program) ?

Member Avatar for luigi10011
-2
20K
Member Avatar for jagan605

i recently started typing the code for the program to convert a binary number to its decimal form and i got stuck when my compiler reported this error. this is what i have typed till now. [CODE]#include<iostream> using namespace std; #include<math.h> main() { int n,s=0,k=0,a,b,c; cout<<"\n\n\tPROGRAM TO CONVERT BINARY TO …

Member Avatar for jagan605
0
196
Member Avatar for Excizted

Heyloo ^_^ I've stumbled upon this code :D [CODE]#define VERSION_MAJOR 1 #define VERSION_MINOR 1 #define VERSION_PATCH 2 #define VERSION ((VERSION_MAJOR << 16) | (VERSION_MINOR << 8) | VERSION_PATCH)[/CODE] I've been searching for some time now, unable to understand what << 16 and << 8 does, and why. I converted VERSION …

Member Avatar for Excizted
0
147
Member Avatar for doraemon79

Hi boys, I am working for a job interview and I was writing a nice piece of cod in c++, partially copied and pasted. This is supposed to work but now i am obliged to use dev-c++ last version for windows, usually I just use gcc on linux and I …

Member Avatar for doraemon79
0
2K
Member Avatar for Excizted

Hello. I'm wondering if I'm duplicating this class by doing the following. [CODE]SimpleClass *point; SimpleClass sc; sc.somevalue = something; point = new SimpleClass(sc);[/CODE] This post is quite tiny, I'm not being lazy, but I couldn't think of anything else needed for this question. Thanks :)

Member Avatar for mrnutty
0
94
Member Avatar for ShadowScripter

Hey, I've been working on a project for a while, and had some difficulties at the beginning with the d3dx9.h and lib files, then after some threading here I got the help I needed, or so I thought. It worked well until I decided to make a new project, using …

Member Avatar for Excizted
0
906
Member Avatar for eduard77

Hello I am rather new in visual c++ and I learned to code but I didn't find in any book how to ad an interface to my program. So please tell give me some references where from I could learn how to add a proper interface in visual c++. Thanks

Member Avatar for Excizted
0
160
Member Avatar for shock1

Write the definition of a function printGrade , which has a char parameter and returns nothing. The function prints on a line by itself the message string Grade: followed by the char parameter (printed as a character ) to standard output . Don't forget to put a new line character …

Member Avatar for Narue
0
334
Member Avatar for overpower8

Hello. I have a program that reads from file, modifies its content and saves. But there's a problem - when i write only one block of data, two of them are been written! [CODE]class person { ... }; ... person User; fstream File; File.open("file.dtb", ios::in|ios::out|ios::binary); // Adding 1 record: File.seekp(number, …

Member Avatar for overpower8
0
106
Member Avatar for randomkid73

Hello, I have done some research and keep getting results to hide the console window. What I would like to do is to hide the output of a command. For example, I have a segment that renews the PC's IP connection, so I get a long stream of the new …

Member Avatar for marco93
0
105
Member Avatar for localp

I need to OCR a image and get the text of it .. i wanted to do this in java but , i found out that its hard to implement it that way. so i am trying to do this in C++ .. is there any possibility to do this …

Member Avatar for localp
0
35
Member Avatar for nguyen duy khoi

this is the small game using mouse device, I write it in turbo C++, it is a example about using asembler in Turbo C++, but when I write it in Visual C++ 6.0, It haves many error, I think it is a big difficult. Could you help me solve this …

Member Avatar for ankurnit
0
213
Member Avatar for timtianchen

I am coding a program that requires a dynamic 2-d matrix. it is a finite element analysis program using stiffness method to give you some context. Can someone suggest a good free library for matrix operations? Thanks!

Member Avatar for timtianchen
0
77
Member Avatar for samsons17
Member Avatar for mrnutty
0
79
Member Avatar for Silvershaft

Is there any way to hide the command line window where the program runs on? I got a little program and I want to it to go hidden if user writes hide. Is there any way?

Member Avatar for Excizted
0
185
Member Avatar for ASHAR VIRK

I am a new student in this field tell me tips for getting skill in this field

Member Avatar for Excizted
0
75
Member Avatar for GDICommander

Hi, everyone! I'm having trouble with a linker error (I'm using Visual Studio 2008) and I would like to have some tips on solving this problem: This is my code: Bill.cpp [CODE] #include "Bill.h" #include "../Exceptions/InvalidArgumentException.h" Bill::Bill() { } Bill::Bill(string shopName) { if (shopName == "") { throw(InvalidArgumentException("The shop name …

Member Avatar for GDICommander
0
167
Member Avatar for CppBuilder2006

is there any GDI or GDI+ function or method that copies part of client area? something like this: [CODE] char p[100000]; copy(hdc, p, rectangle(10,10,100,100)); paste(hdc, p, x, y); [/CODE]

Member Avatar for kevintse
0
122
Member Avatar for NicAx64

we have already known that there should be some initialization to work with the stl. To use that library. There are objects that there should be initialized before entering main. I think that I receive this run time SIGSEG due to that. So any idea ? I have use a …

Member Avatar for NicAx64
0
200
Member Avatar for KaZu88

This is my program, it causes memoryleaks. I show only a small part where the problem exist. Starts with the header then the cpp. ParticipatorRegister.h [CODE] #ifndef PARTICIPATORREGISTER_H #define PARTICIPATORREGISTER_H #include "Participator.h" class ParticipatorRegister{ private: Participator **arr; int inc, init, elem; void initiate(); //void expand(); public: ParticipatorRegister(); ~ParticipatorRegister(); //void save(ofstream&); …

Member Avatar for Lerner
0
153
Member Avatar for Silvershaft

How do I see what key user presses I suppose I have to do it with winapi? I want my program to write to text file what key user presses, like when he presses M it writes M to text file. I looked and I found one function but it …

Member Avatar for Silvershaft
0
101
Member Avatar for لولا

Hi everyone ,:) [B]I need a function in c++ to calculat the age of a user, by asking the user to enter his birthday.[/B] :S

Member Avatar for siddhant3s
0
73
Member Avatar for rahul8590

i am currently working on creating mathematical models for my research and want a non linear equation solver library which i could integrate with my program . i searched the web and found op++ which wasnt a free program .

Member Avatar for sinnerFA
0
215
Member Avatar for SoulReaper1680

Salutations! Would anyone be kind enough to provide a general overiew as to what exactly is OpenGL. I searched the internet however, most of the material I came across didn't quite clearly state the different between OpenGL and GLUT. Also, what is SDL? I am quite familiar with C++ however …

Member Avatar for SoulReaper1680
0
114
Member Avatar for jhayar

hi im a newbie,can u give me an example of math problems using c language...preferably calculus using else-if statement,or a looping satement..thank u very much..godbless(",)

Member Avatar for mrnutty
0
60
Member Avatar for Kingfahad

Write a program that allows the user to enter a start time and a future time. Include a function named ComputeDifference that takes the six variables that represent the start time and future time.Your function should return, as an int, the time.

Member Avatar for Ancient Dragon
-1
161
Member Avatar for mobeen89

Hello! Ive searched the and even this site and I have not been able to find a way that would allow me, on the execution of a certain condition, to open a text or image file. By open here I do not mean using fstream etc. to open the file …

Member Avatar for Ancient Dragon
0
92
Member Avatar for Nikhar

Each year IARCS organizes a series of competitive exams based on computing languages. I have great passion for computers and hence it is natural that I was attracted towards it. Anyways, to cut the long story short, I was selected in ZCO 2010 and I have qualified for INOI 2010. …

Member Avatar for Nikhar
0
91
Member Avatar for ge6a93

Hi, i'm using VC++ 6.0. I'm having some activity in my program(e.g. moving object in a timer). If this object gets to the end of the screen and i press a key(doesn't matter which) a message shows up - MessageBox("You won"); or something like that. But if i do not …

Member Avatar for Rajesh R Subram
0
117
Member Avatar for gsingh2011

This is my code so far to connect to a webpage and retrieve the html: [CODE]#include <winsock2.h> #include <windows.h> #include <iostream> #pragma comment(lib,"ws2_32.lib") using namespace std; int main (){ WSADATA wsaData; if (WSAStartup(MAKEWORD(2,2), &wsaData) != 0) { cout << "WSAStartup failed.\n"; system("pause"); return 1; } SOCKET Socket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); struct hostent *host; …

Member Avatar for marco93
0
732

The End.