48,986 Topics

Member Avatar for
Member Avatar for Electrohead

If you are an absolute beginner to C++, it is a good idea to grab some books from Amazon (that's what I did!) The first 2 books i bought were: C++ - A Beginner's Guide C++ For Dummies It is generally better to read the beginner's guide first, as it …

0
66
Member Avatar for aaron_tan

Anyone has any idea how to open a windows registry key using C++? from my understanding, there is a function in winreg.h that does this, RegOpenKeyEx and RegSetValueEx. But i cant seem to open the key with RegOpenKeyEx. When debugging, the debugger showed this error message "First-chance exception in Proj.exe …

Member Avatar for Dogtree
0
122
Member Avatar for f3tpy

Hi, I am just wondering how to remove particular *obj file from a given *lib file. Details: I am using C code in VC++6.0 compiler. I created project with few files (such as 1.c, 2.c, 3.c…etc.,). My project output is *.lib. I want to remove 1.c or 1.obj from *.lib. …

0
58
Member Avatar for CryingRaven

I have been a Delphi user for 8 years and now migrated to C++ and have found the changeover quite taxing indeed. I am using Visual Studio .NET and have before that used MSVC 3 and MSVC 6 and always had the same problem: I code my classes and methods …

Member Avatar for Dave Sinkula
0
325
Member Avatar for jagosa

Hi evrybody and thanks in Advance. I am programming with Borland C++ 5.02. I am trying to do a dialog where the user can choose a directory. I would need something like TOpenSaveDialog, but only with folders, not to have to choose a file. Thanks

Member Avatar for jagosa
0
66
Member Avatar for sandesh_daddi

hi, i want information about where i will get e-book for Registry API to chang or modify Registry from platform SDK in VC++. Is any one have book related with registry changer or registry handler through WINDOWS REGISTRY API please give me .

Member Avatar for Dogtree
0
72
Member Avatar for f3tpy
Member Avatar for amt_muk

Hi all, Can any one tell me how to delete any file from a C++ code. I can do it with the help of the function 'system()', but is there any other way? :?: :?: :?:

Member Avatar for amt_muk
0
85
Member Avatar for winbatch

Hi, In my never ending quest to improve my C++, I'm trying to write a class that sets and reads shared memory. For the time being I am avoiding dealing with issues of concurrency/locking, etc. and starting small. I was successfully able to put into shared memory things like integers, …

Member Avatar for Dogtree
0
500
Member Avatar for winbatch

Hi, After completing my Date class, I realize that I am suffering from the 2038 problem. (As described here-> [url="http://pw1.netcom.com/~rogermw/Y2038.html"]http://pw1.netcom.com/~rogermw/Y2038.html[/url]). Does anyone know which libraries (or which code) I need to switch to on *nix systems to overcome this? (I know windows has someting like mktime64 (instead of mktime). Google …

Member Avatar for Dogtree
0
252
Member Avatar for Electrohead

HI! I am new to programming (*although i know some html*) and I was wondering if someone could tell me what is wrong with my C++ area calculator? Thanks! [CODE]#include <iostream> using namespace std; int main (int argc, char **argv) { int height; int width; int area = height*width; cout …

Member Avatar for Electrohead
0
271
Member Avatar for madt

the values are not being passed correctly, in my constructor i copy the value of d to decimalNum and the value of b to base. when i run the program the values are 0. what am i doing wrong?: baseType::baseType(int b, int d) { base = b; decimalNum = d; …

Member Avatar for madt
0
90
Member Avatar for jure

Ive made a program in .sh that flushes urls with topic into standrard out, now i want to make that program do the same as a c++, please help any 1 basicly i need the program to "download" urls with matching topic from the site... :idea:

Member Avatar for c_raj
0
141
Member Avatar for numerouno543

Hello.. I wish to write a client program in C++ which will keep on sending a packet of info to a server on internet at regular intervals. As I am a newbie, i am not getting any idea how to do it.....Further, I would like to mention that the program …

Member Avatar for numerouno543
0
97
Member Avatar for feda

hi , i need function to calculate primitive root for prime q that if i choose prime number q then a which is primitive must satisfy that a%q ,(a pow 2 )%q , ...... (a pow i )%q = distinct integers betwwen 1 & q-1 that 1<i < q-1 and …

Member Avatar for murschech
0
195
Member Avatar for madt

write a recursive function to convert a number in decimal to a given base b, where b is between 2 and 36. so far converts between 2 and 16 what must be added to convert between 2 and 36? [code]#include <iostream> using namespace std; void toBase(int n, int base) { …

Member Avatar for Dogtree
-1
103
Member Avatar for skprasat

Any1 plz help me.im new to this site and a begineer of C.... this may be stupid ques to ask.. char msg1[20]="hello"; char msg2[20]="welcome"; char msg3[20]="goodnite"; can i store these three arrays in one sigle array....not in pointers. ie in..... char result[50]; i need the result like this.. output: hello …

Member Avatar for Dogtree
0
258
Member Avatar for TimC

Dear All. Basically I am having trouble passing my class object to myQueue. I know my Queue works as I had it working for Integers and Charachters but after approx 25hrs over 4 days I still can not get my Object to store in my Queue. Any and All help …

Member Avatar for winbatch
0
200
Member Avatar for ultimate_fusion

I am at uni doing computer science and interested in game programming. i just have a few questions . . . are most games programmed in C++? how long will it take to learn i mean to get good enough to do a game like dig dug (a classic man)? …

Member Avatar for amura97
0
184
Member Avatar for Rotak

[b]PLEASE FORGET THIS POST... The problem was located in the debugger, which is not able to handle several running threads of ThRead().[/b] [quote] I wrote a file-buffer using Borland C++ 4.x. The buffer is implemented as a thread, which fills itself automatically. I implemented a function, called GetChar() which returns …

0
70
Member Avatar for Acidburn

I'm wondering if i can create a program that reads texts file. In the text file is c++ code ... could that be compiled in the running exe? So basically you'll have somehting like this in this first file: [php] #include <iostream> #include <fstream> using namespace std; int main() { …

Member Avatar for xiaoyueer
0
97
Member Avatar for madt

i have the following for my operator overload [code]fraction fraction::operator+(const fraction& object)const { fraction temp; temp.a = a*object.b + b*object.a; temp.b = b * object.b; return temp; } fraction fraction::operator-(const fraction& object) const { fraction temp; temp.a = a*object.b - b*object.a; temp.b = b * object.b; return temp; } fraction …

Member Avatar for Dave Sinkula
0
248
Member Avatar for Electrohead

Hi again, I have started to make an angle calculator using C++ but i am struggling. How would i recieve a command from the user to open a help screen?? Help would be appreciated, thanks!

0
95
Member Avatar for hazzo

My Program : [code]#include <iostream> #include <string> using namespace std; void Reverse(string &InputString); void CharSwap(char& First, char& Second); void main(void) { string InputString; cout << "Please enter the string to reverse ==> "; getline(cin, InputString); cout << endl << "You entered the (" << InputString.length() << ") char long string: …

Member Avatar for vegaseat
0
124
Member Avatar for indianscorpion2

hi i am a student of computer science.i am learning the c programming language.we spend all our time writing programs which tells itself a secret like adding numbers,kid stuff etc. i want to know the real thing.can anyone tell me what are the real time applications of C.?

Member Avatar for letmec
0
180
Member Avatar for JoBe

Hello ladies and gents, Ive got a question concerning how to actually send a program to someone (only the exe.file) so that he/she sees what the program can do without having the possibility to alter anything towards the code itself? I'm using Microsoft Visual C++ 6.0 incase you need to …

Member Avatar for winbatch
0
114
Member Avatar for Prahaai

Anyone knows what are percents... Some event has some chances to happen. From 0 to 100... if the percent is 0 it means zero chances to happen. 100 means it will happen every time. 50 statistically means it will happen half of times... But HOW can someone give x/100 chances …

Member Avatar for Dave Sinkula
0
261
Member Avatar for edelstahl

So here's a pretty basic question. How do I access a file using C++? I want to be able to have the text file typed into the window of the program. I want to be able to write a string variable to a file, too. And another question, maybe not …

Member Avatar for Dogtree
0
1K
Member Avatar for madt

I have the following assignment due: Design a class -say, fraction - that performs the arithmetic and relational operations on fractions. Overload the arithmetic and relational operators so that the appropriate symbols can be used to perform the operation. Also, overload the stream insertion and stream extraction operators for easy …

Member Avatar for Dave Sinkula
0
264
Member Avatar for winbatch

The following works on solaris, but doesn't compile on windows visual studio 6. is there a way to do this differently so it compiles in both places? In ComandLineArg.h ------------------------- class CommandLineArg { private: ..etc.. static int longestDescr; ..etc.. }; In CommandLineArg.cpp ------------------------------- CommandLineArg::longestDescr=0; Error on visual studio: error C2501: …

Member Avatar for winbatch
0
681

The End.