49,761 Topics

Member Avatar for
Member Avatar for vbx_wx

[CODE] HKEY hkey; DWORD nSubKeys = 0; TCHAR name[MAX_PATH]; DWORD size = sizeof(name); FILETIME filetime; if(RegOpenKeyEx(HKEY_CURRENT_USER , "Software" , 0 , KEY_QUERY_VALUE , &hkey) == ERROR_SUCCESS) { if(RegQueryInfoKey(hkey , 0 , 0 , 0 , &nSubKeys , 0 , 0 , 0 , 0 , 0 , 0 , &filetime) …

Member Avatar for vbx_wx
0
120
Member Avatar for smitysmit

at the moment i have 2 answers to queations and the answers are 1,2,3 or 4 but i ow have to make it so the user has to put a work in like "Brazil" but i try to do the same as if the user puts "A" in and it …

Member Avatar for Robert1995
0
147
Member Avatar for Covert06

I know I'm going to be bashed at for this, just please read at least this much before you start yelling at me to read the faq or thousands of other posts online. Im having a problem clear screening for my school work since my teacher has a fetish for …

Member Avatar for Covert06
0
193
Member Avatar for mitch9654

Hello, I am trying to make a calculator that does multiplication, division, addition and subtraction. My problem is that when I have the two numbers that have decimals it goes wonky. Anyway, that program runs like this: 1. User enters equation 2. Unwanted characters get thrown out 3. If operation …

Member Avatar for chary8088
0
246
Member Avatar for artikapri

Any forward error correction (FEC) implementation in C++? i need it for my project. i converted character into ascii value then converting them into binary values.now i need to append error correcting bits. i m doing my project in vc++. following is part of my code: [CODE]array< array< int >^ …

Member Avatar for vijayan121
0
124
Member Avatar for method4ever

[code=c] #include<iostream> #include <string> #include <sstream> using namespace std; int main(){ int i=0, ii = 0, x; string input; //command to prompt user for amount of movies cout<< "How many movies do you want to add? "; getline(cin,input); //end command to prompt user for amount of movies //set up loop …

Member Avatar for method4ever
0
187
Member Avatar for Dio1080

Binary Search tree help Can somebody explain to me what this code is doing step by step?, thanks [CODE=Java] TREE-SUCCESSOR(x) 1 if right[x] ≠ NIL 2 then return TREE-MINIMUM (right[x]) 3 y ← p[x] 4 while y ≠ NIL and x = right[y] 5 do x ← y 6 y …

Member Avatar for mailmarwa
0
258
Member Avatar for angel19

hi, can anyone help me with my code, any help will be much appreciated. The design should follow object oriented principles and use the UML tools. It should be a board game based on a “Monopoly-style” board made of 36 squares. The game is for two players who first enter …

Member Avatar for mn.balakumar
0
3K
Member Avatar for jonyshub

Hi everybody! Sorry for my bad english! I have a matrix of integers with a maximum length 6 digits. I must to write program, that checks whether a number is found in the section above the main secondary diagonal of this matrix. I'm beginner in C + + and I …

Member Avatar for farag
0
143
Member Avatar for William Byrd II

Hello. I have been working on this program for some time, and it appears that I now have only one error (1 error 4 times). I will greatly appreciate it if someone could show me how to fix this error. Here are my errors: (phonebook.cpp is at the very bottom …

Member Avatar for chary8088
0
100
Member Avatar for vizionary2012

Hello i am a new member of this and i was trying to include a matrix effect similar to the one at the beginning of the movie and it involves using the iostream header file, is there any replacement for this file cuz i tried using ios, and iostream and …

Member Avatar for gerard4143
0
95
Member Avatar for EgyCoder

Why does seekg() work only in the first iteration, while in the second iteration it doesn't.?However I used it in previous cases and it worked perfectly. And yes, I'm using clear(), but still nothing shows up after the first iteration (the iteration of the big while loop that encloses this …

Member Avatar for EgyCoder
0
204
Member Avatar for bbrradd

I have to read lines from a text file and reformat them so that the first letter is uppercase and the rest are lowercase. I did that with no problem. also i needed to count the total words in the file, and did that easily.,but i also need to count …

Member Avatar for WaltP
0
1K
Member Avatar for LevyDee

[code] //declared my vector as vector<candidate> vecList; //pretty standard stuff //do some looping, gather info vecList.push_back(candidate(name,voteCount)); [/code] candidate is my class name. So instead of passing an object to push_back, I pass my class name using an overloaded construtor and it works just fine. Upon further investigation, I used an …

Member Avatar for LevyDee
0
77
Member Avatar for 3cats

Can anyone help me - The screen never pauses or stays put (after the end while) for the last 3 lines of code to display and the line right above the end while -totalinterestpd is not being written to the outfile I'm stumped. [CODE]while (MonthlyPayment <= LoanAmt) { MonthlyInterest = …

Member Avatar for WaltP
0
173
Member Avatar for Bart_sg

[code]#include <iostream> #include <iomanip> #include <string> #include <ios> using std::string; using std::streamsize; using std::setprecision; using namespace std; int main() { double Ib,I,V,P,F,pf,In; unsigned short int type; cout<<"Please select the type of power supply\n";//Allows the user to choose between single or three phase cin>>type; switch(type) { case 1:cout<<"You have chosen a …

Member Avatar for Mikstaslaya
0
167
Member Avatar for Lukezzz

source: [url]http://www.tamirgal.com/blog/page/SharpSSH.aspx[/url] Hi, This must be some basic C++ I am missing out of how to declare an instance ? I am trying to create an instance of a SFTP. I have added the .DLL file into my project and added the namespace. Sftp is found as a class in …

Member Avatar for Banfa
0
167
Member Avatar for aay

I know this has been asked before, but none of the threads I found helped me much. I am a beginner at C++ programming and need help figuring out why this doesn't work. [B]Question[/B]: e^x can be approximated by sum 1 + x + x^2/2! + x^3/3 + ... + …

Member Avatar for WaltP
0
3K
Member Avatar for sciwizeh

trying to use the code from an online book to learn OpenGL. i'm using Dev-C++, because i can't find a good way to get GLUT into VS 2008 PRO without muckin about in C:\windows\system32 which i try to stay away from. (any suggestions appreciated) so this is the code: [CODE=C++] …

Member Avatar for jephthah
0
666
Member Avatar for andrew80

Hi to all, THis is my first post here. I have a project to create a scientific calculator. i wrote a code and i need some help on how to proceed. The code i wrote is for +, - , * , / now i want to continue with x^y, …

Member Avatar for CppBuilder2006
0
882
Member Avatar for xofth

i want to delete a element from the array i use this logic but it is not working [CODE]#include<iostream.h> #include<conio.h> main() { int arr[5]; //10 element int array int key; // key to edit int length=5; //length of array clrscr(); for(int i=0; i<length ; i++) { cin>>arr[i]; } cout<<"Enter item …

Member Avatar for Narue
0
140
Member Avatar for William Hemsworth
Member Avatar for William Hemsworth
1
2K
Member Avatar for jeffrey o

i'm trying to read a file into an array struct using a function, i get the errors: 1.error LNK2019: unresolved external symbol "void __cdecl loadarray(struct ElementType * const,int)" (?loadarray@@YAXQAUElementType@@H@Z) referenced in function _main 2.fatal error LNK1120: 1 unresolved externals [code] #include <iostream> #include <string> #include <fstream> using namespace std; ifstream …

Member Avatar for WaltP
0
110
Member Avatar for CurtisBridges

[COLOR=#008000]//I need to change this program from using inheritance to using composition.[/COLOR] [COLOR=#008000]//Could someone please show me how? I have two other programs that I can surely do myself. [/COLOR] [COLOR=#008000]//I'm really in search of a sample.[/COLOR] [COLOR=#008000]// Fig. 9.17: point3.h[/COLOR] [COLOR=#008000]// Point3 class definition represents an x-y coordinate pair.[/COLOR] …

Member Avatar for wayne_b
0
152
Member Avatar for boiishuvo

Hi, my goal is to implement a program (in OO style) for cruise booking system that can accept and maintain customers’ reservation. Whenever a customer visits, that program should show him/her the current availablility of cabins. A customer can choose any available cabin with specified level (0 – 2, down …

Member Avatar for boiishuvo
0
134
Member Avatar for mn.balakumar

I hope, this is not a compiler issue. See the below code [CODE]#include <iostream> #include <string> using namespace std; string data,name; void getTst() { cout<<"Enter Name :"; getline(cin,name); cout<<"\nENter data :"; getline(cin,data); } void dispTst() { cout<<"\nName :"<<name; cout<<"\n Data :"<<data; } int main() { int tmp; cin>>tmp; getTst(); dispTst(); …

Member Avatar for NathanOliver
0
83
Member Avatar for mn.balakumar

Hi, plz find my small solution. [CODE][COLOR="Green"] #include <iostream> #include <ctime> #include <string> using namespace std; class cPlayer { public: [COLOR="red"] string Pl_name;[/COLOR] int pos; int pts; }; cPlayer p1, p2; int random(int nMin, int nMax) { return rand() % (nMax - nMin + 1) + nMin; } int main() …

Member Avatar for mn.balakumar
-2
95
Member Avatar for bill_

Hi, in this code i am trying to call the function "issueTicket" from class "ticket", in the the function "reserveCabin" in another class called "cruise". Also, i think it is the same problem, i am trying to call function "calTicket" from class "booking", in the function "issueTicket" from class "ticket". …

Member Avatar for tieuyeunu
0
13K
Member Avatar for karthz85

i need a sample program how to enter values in a array,display the results, and edit the values that entered. actually i need to make a program to create a database to store students marks and edit the values....... so any one can help with a sample program?

Member Avatar for karthz85
0
85
Member Avatar for PDB1982

How would I, if it's even possible, create an array to read/store the input values from a input text file? Here is what I was thinking, but I want to pretend as if I don't know the amount of values in the file. Input File Has: 21.22, 13.23, 43.12, 123.54, …

Member Avatar for mrnutty
0
86

The End.