49,761 Topics
| |
Hey guys! I'm new to programming and C++ is my first programming language. I have studied books on the language but I know the real job is the application of what I have been studying. I am planning to do a project this semester that will help me to actually … | |
Hey guys, I'm having this problem of trying to open shortcuts, i.e (.lnk) files and am also trying to open powerpoint slideshows (.pps) files through turbo c++. It didn't work so what i did was write a .bat file to open those programs and then converted that .bat file to … | |
Hi everybody, i am new to c++ and wanna know why pointers are useful ? Why would i use them ? For what ? THANKS | |
guys i was working on the link list program and its is encountring a problem its says some thing like un handled exaption handling acess writing location error i have no idea howto over come it so i thought may be u guys might help me with it here is … | |
Hi! I'm making a table. I originally have some names. [CODE] #include <iostream> #include <cstring> using namespace std; char passengerName[100][100]; void main() { strcpy(passengerName[1], "Peter Tam"); strcpy(passengerName[2], "David Morris"); strcpy(passengerName[3], "Susan Leung"); strcpy(passengerName[4], "Timothy Kin"); strcpy(passengerName[5], "Mary Poon"); strcpy(passengerName[6], "Pretty Godson"); strcpy(passengerName[7], "Tammy Leung"); strcpy(passengerName[8], "Hugh Boss"); strcpy(passengerName[9], "John Cheng"); … | |
| [CODE]// Sorting Techniques.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> using namespace std; void Bubble(int x[],int n ){ int temp , j , pass; int flag=1 ; for(pass=1;pass<n-1 && flag==1;pass){ flag=0; for(j=0;j<n-pass-1;j++){ if(x[j]>x[j+1]){ flag =1; temp=x[j]; x[j]=x[j+1]; x[j+1]=temp; } } } } // Env\d … |
| The aim is simple: Input a string from the user, input a word that is to be searched in the string, and return "Found" or "Not found" I have worked down the following code, and it works. [CODE]#include <iostream.h> #include <stdio.h> #include <string.h> void main () { char para[200], word[20]; … |
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 … | |
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 … | |
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. | |
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? | |
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 ,, | |
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 … | |
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 … | |
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) … | |
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', … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
plz... can anyone help me by giving code for calculating max error of u=(5xy^2)/z^3 | |
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. … | |
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? | |
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. :( | |
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 … | |
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 … | |
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. | |
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 … | |
[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; } }; … |
The End.