49,756 Topics

Member Avatar for
Member Avatar for Karlwakim

Hi everybody, i need your help choosing the best library for making GUI applications in c++ I dont want to use Visual c++. Please advise me. And where to download Qt ? Where to put the headers in order to use them ??? Note : I am using Netbeans with …

Member Avatar for Karlwakim
0
92
Member Avatar for Aravind Gumataj

Please Help: I need to connect access database through code in VC++ .6 and i've to read data from edit text and compare this value to the primary key of my database. if those are matched then i need to get all data from the database and i need to …

Member Avatar for Ancient Dragon
0
266
Member Avatar for DalekThay

Can anyone explain me how to find a point on circumference. The data i have is radius and the coordinates of circle center. I tried to get it by using (x-a)^2+(y-b)^2= r^2 formula but i get stuck. I'm not asking for solution but for explanation.

Member Avatar for WaltP
0
171
Member Avatar for Zssffssz

Is it possible to make an array of doubles like a c-style string to make a bigger number? Or is an array of chars a special thing to a compiler?

Member Avatar for adityatandon
0
264
Member Avatar for programing

plz i have question that is statistical which is course that i still missed .. how i can make code for median , mean,strdDevition , mode else presented as class and object i will realy thanks for whom will help me ,,

Member Avatar for adityatandon
0
115
Member Avatar for jmcparlin1

I'm new to C++, and I've been picking it up really well, but when it came to making my own function, I hit a problem. I've looked and I cant find the problem, its probably something really stupid but I cant find it. Heres the code, its really simple. I'll …

Member Avatar for adityatandon
0
160
Member Avatar for Aravind Gumataj

Please Help: I need to connect access database through code in VC++ .6 and i've to read data from edit text and compare this value to the primary key of my database. if those are matched then i need to get all data from the database and i need to …

Member Avatar for adityatandon
0
46
Member Avatar for aKiLa.. :)

is the following program correct for the title 1/1!+1/3!+1/5!+.....+1/n! [CODE]#include<iostream.h> #include<conio.h> class series { int i,n,sum,fact; public: void input() { cout<<"enter the number of terms"; cin>>n; } void processing() { if(n%2==0) { cout<<"the number is invalid"; } else { i=1,sum=0; while(i<=n) { sum+=(1/factorial(i);); i+2; } } } int factorial(int lim) …

Member Avatar for adityatandon
0
100
Member Avatar for arianc

Hi I have written a c++ code. It works well frequently but sometimes I see strange errors especially about out file streams. For example, this time I dealt with this messages: 'GABC.exe': Loaded 'G:\GABC\Debug\GABC.exe', Symbols loaded. 'GABC.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll' 'GABC.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll' 'GABC.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded. 'GABC.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', …

Member Avatar for adityatandon
0
259
Member Avatar for mrnobody

Hi guys.. I need advice on writing function in a multi-threaded envionment Lets say I have a function which squares an integer. [CODE] int Square(int num) { // May do other things which might take long time to complete. return num*num; } [/CODE] This function is called in threads eg …

Member Avatar for rubberman
0
140
Member Avatar for PeTo.

hey , I'm a beginner & need some help in C++ , I want to generate 4 unique numbers " any number isnt repeated within itself " I figured a way to generate 4 random numbers but they arent unique [CODE]srand((unsigned)time(0)); int number= (rand()%9999+1000);[/CODE] , I also need to put …

Member Avatar for adityatandon
0
2K
Member Avatar for fmasroor

For some reason, when I do an output.put, it is not doing anything. [CODE]#include "stdafx.h" #include <fstream> #include <Windows.h> using namespace std; void main() { fstream input, output; int in1=0, in2=0, x=0, k=0, l=0, max=0; input.open("input.txt", ios::in); output.open("output.txt", ios::out); while(input.good()) { input>>in1; input>>in2; for(x=in1; x<in2; x++) { k=x; l=0; while(k!=1) …

Member Avatar for adityatandon
0
78
Member Avatar for kankaortiz

how would i stop a user from entering a letter when they should be entering a number? [CODE]#include <iostream> #include <cstdlib> #include <cstdio> #include <cstring> usin namespace std; int main(int nNumberofArgs, char* pszArgs[]) { char nAns; do{ int nPly1; int nPly2; int nPly3; int nPly4; int nPly5; int nPly6; int …

Member Avatar for adityatandon
0
5K
Member Avatar for missil9

Hey I have been kicking myself with this problem for a week now and i was wondering if anyone can help. I am implementing cURL to fetch source code from a website. I am using fairly common code to do so. If I implement the functionality in my main.cpp, it …

Member Avatar for missil9
0
177
Member Avatar for Amina Mishu
Member Avatar for adityatandon
0
113
Member Avatar for emaellie

I have been a histogram assignments to do in C++ although i kno how to do in Visual Basic. I have tried to do it in C++ but it seems ive missed out a few steps. below is what i have done so far, please correct me where am wrong. …

Member Avatar for adityatandon
0
1K
Member Avatar for Zssffssz

Im Talken About The Basic (As in Simple not BASIC) DLL not Win32/OS/2 Kind. I Want The Dlls for the program to be in the 'bin' Directory thats is in the same folder as the .exe. Is there a simple (Not Moving Kansas) way to do this?

Member Avatar for Zssffssz
0
150
Member Avatar for Srinivas0

can some please explain what are command line parameters ? i read many books, read online didn't understand anything on what they are and when or how to use them. :(

Member Avatar for Srinivas0
0
186
Member Avatar for ila_asia

hye..can somebody help me with these problems as soon as possible?? really need your guys help Create a phone book program that allows users to enter names and phone numbers of friends and acquaintances. Create a structure to hold contact information .The user should be able to add phone book …

Member Avatar for adityatandon
0
204
Member Avatar for kkevinnnn

Well anybody pls try this: i will give an address that is 0xB8000 Now u write a function in which we can write a string and define its colour so you write the string in that memory area and increment it, and again write the colour info in that area …

Member Avatar for gusano79
0
162
Member Avatar for fmasroor

This is a strange question, but it's very frustrating to me. In microsoft visual c++, when I open a cpp file, I can not compile it. Is there a specific way to open the file so that I can run it after opening? Thanks.

Member Avatar for NP-complete
0
96
Member Avatar for gopal1993

Hello all, Actually i had a program which i was unable to solve i hope youll help me out and post your solutions. The program is: A Bowler is called the Best, if the average wickets taken by him during the year is 5 and above. The number of matches …

Member Avatar for tkud
0
85
Member Avatar for namelyia

[CODE]/********************************************** Complete the class "Musician" to produce the following output: Name = PK. Genre = Jazz Name = LG. Genre = Pop *********************************************************/ #include <iostream> #include <string> using namespace std; class Human { string name; public: Human (string name) : name(name) { } string getName() { return name; } }; …

Member Avatar for VernonDozier
0
97
Member Avatar for simptive

I am figuring out game development and deciding whether i should develop a game as a final project of grduation. Although i learnt c++, C#, Java etc. but I didn't covered any specific course/subject in my academics for game development. I love Games but I am completely a newbie in …

Member Avatar for sross
0
184
Member Avatar for khelly

[CODE]#include<iostream> #include<fstream> #include<string> #include<vector> #include<algorithm> using std::cin; using std::cout; using std::string; // clothing codes struct codes { char code; const char* explanation_1; float total_sales; }; codes CODES[]={'A',"BABY WEAR",0.0F, 'B',"CHILDREN WEAR",0.0F, 'C',"LADIES WEAR",0.0F, 'D',"MENSWEAR",0.0F, 0,NULL,0.0F }; struct RECORD { char category; int item_number; float price; }; const string filename="jualan.dat"; int menu(); …

Member Avatar for khelly
0
117
Member Avatar for ben1996123

I want to start learning OpenGL. Codeblocks decided to break, so I downloaded Dev-C++ instead. I've tried loads of different websites to try and figure out how to install it, and I get some type of error every time. How should I install it with dev-c++?

Member Avatar for ben1996123
0
101
Member Avatar for Nicker

Hello, See the picture: [url]http://img513.imageshack.us/img513/7496/errorps.png[/url] See the code: [CODE] #include <windows.h> #include <stdio.h> bool stamina=false; void LosHacks() { while(1){ if(GetAsyncKeyState(VK_F6) &1){ //F6 stamina = !stamina; } if(stamina==true){ DWORD dwPlayerPointer = *(DWORD*)0x00F37074; if(dwPlayerPointer != 0) *(float*)(dwPlayerPointer + 0x10 + 0x2C) = 100; } Sleep(50); } } BOOL WINAPI DllMain(HINSTANCE module, DWORD …

0
43
Member Avatar for mrnobody

Hi guys, I've been struggling for days to do this. I've got 2 form. The first form (Form1) is to assign a variable (Result) a value. Another form (DisplayResult) is to display out the value. Actually, my purpose is to learn how i can use global variables to share information …

Member Avatar for mrnobody
0
245
Member Avatar for dakerao

How do I stop this from happening in SDL [URL="http://i.imgur.com/D6M2X.png"]http://i.imgur.com/D6M2X.png[/URL] where the background just stops. I want it to carry on too the left for ever or atleast the width of the image on the SDL_Surface here is a video to showcase the problem [URL="http://www.youtube.com/watch?v=KROV7eq8RLo"]http://www.youtube.com/watch?v=KROV7eq8RLo[/URL] and here is the code …

Member Avatar for sfuo
0
147
Member Avatar for sheennave

Hye all; I want dataReader to read int values into integer variables. Which conversion do i need. Please help?? [CODE] while(reader->Read()) { temp_string = reader["ID_varchar"]->ToString(); // OK } [/CODE] What about code below ? [CODE] while(reader->Read()) { temp_int = reader["ID_int"]->GetInt32(); // ERROR } [/CODE]

Member Avatar for thines01
0
45

The End.