49,757 Topics

Member Avatar for
Member Avatar for veronicak5678

I am trying to write two programs to work in conjunction. The first is a bibliography program that writes book info to a file; That's ok. Here's what I did: [CODE]#include <string> #include <fstream> #include <vector> #include <iomanip> #include <sstream> #include <iostream> #include <iterator> #include <vector> // vector class-template definition#include …

Member Avatar for veronicak5678
0
146
Member Avatar for mnv29brt

//To check if there is a win #include <iostream> #include "tictactoe.h" using namespace std; int win(char board[3][3]) { for(int i=0;i<3;i=i+1) { if ((board[0] == 'x' && board[1] == 'x' && board[2] == 'x')|| (board[0] == 'o' && board[1] == 'o'&& board [2]== 'o')) return 1; else if((board[0] == 'x' && …

Member Avatar for mnv29brt
0
119
Member Avatar for cobberas

Hi all I'm trying to create a dynamic array of structures and have come across the following code but I can't figure out how some of it works: (incidentally this is from Prata's book C++ Primer Plus, Ch4, Ex.9) [code=syntax] #include <iostream> using namespace std; int main() { //structure declaration …

Member Avatar for vmanes
0
235
Member Avatar for Suraine

:confused: Arrgh!!! Cant understand these sentence from this website of brickos programming: [URL="http://legos.sourceforge.net/HOWTO/x600.html"]http://legos.sourceforge.net/HOWTO/x600.html[/URL] [code]random() and srandom(int x) are now available in legOS. To use them, just call srandom(int x) at some point during your program startup. x is a "seed", which allows you to get the same sequence of numbers …

Member Avatar for Suraine
0
249
Member Avatar for Suraine

:idea: :-/ Dear c++ gurus, I have an intention to run two loop together at a time. I dun know whether it is possible or not. My architecture is: [code]run: 1. loop1 2. loop2[/code] [code]loop1 running together with loop2.[/code] [code]loop2 will stop running once loop1 give a signal, say if …

Member Avatar for Suraine
0
101
Member Avatar for WilliamBaxter

can any1 here please write a code for me please???? these are the questions Write a C++ program with a case structure. The program reads in a character from the user, then display its translation according to the following rules: i. characters A, E, I, O, U will be translated …

Member Avatar for Ancient Dragon
0
69
Member Avatar for Hax01

If anybody would like to help i need someone who is good with assembly and has knowledge of con files for help with running a homebrew.It would also help if you understand how an xbox 360 works.Also help with programming.If someone can help it would be greatly appriciated.

Member Avatar for Hax01
0
37
Member Avatar for coolbreeze
Member Avatar for sisi

Hi ,i am so happy that you guys help me out for my previous problem concerning about coding programming.Right now i am stuck with my Candidate programme where i need to Cout the total result for the winning candidate. The question is : There is 5 candiate runing for little …

Member Avatar for vmanes
0
124
Member Avatar for Nemoticchigga
Member Avatar for Nemoticchigga
0
80
Member Avatar for CE Student

University of Bahrain College of Information Technology Department of Computer Science ITCS102: C++ Programming Assignment #5 Create a class called BloodDonor that maintains information about blood donors in a blood bank having the following data members: 1. IdNumber, // long int 2. name, //Name of donor 3. bloodGroup//String 4. home_Phone//String …

Member Avatar for hacker9801
0
147
Member Avatar for Black Magic

Hello, I was wondering if you could change the program icon (it's usually a picture of c:\), and without making a gui progra, just a normal one if you get me? Like you can change the title by; system("title This Is Your Title"); Help a.s.a.p please :). ~ Black Magic

Member Avatar for Black Magic
0
99
Member Avatar for Lensva

I'm trying to make so it would check if letter i and i+1 are alike. If so it'd drop "denied" else "accepted". i dont understand what I did wrong though: [code=c++] #include <iostream> using namespace std; int main() { char pass[5]; bool correct=false; cout<< "pass: "; cin>> pass; for (int …

Member Avatar for Lensva
0
88
Member Avatar for CodeBoy101

Hey wassup? I need to know how to detect arrow keysand the escape key, and any help would be greatly appreciated, thanks!

Member Avatar for CodeBoy101
0
338
Member Avatar for n3XusSLO

hello! i'm doing some memory altering but i've come to an standstill. here is my problem: (ill try to write it as an example somwhow..) i have an int (lets say int x). this int has an value of an memory address but in decimal not in hex value. now …

Member Avatar for n3XusSLO
0
244
Member Avatar for noraantonia

hello I implemented a rotating cube in opengl which rotates when the user moves the mouse. I am a beginner with opengl, so i wanted to ask you a question on rotating. here is my code for the rotation : [code] void CDiplomaView::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add …

0
67
Member Avatar for spuddy1515

These is my code and i need to change it so that the second out put replaces the first and so on. [code]#include <iostream> #include <stdlib.h> using namespace std; int main() { int a = 0; int h; int m; int s; mistake: cout << "What is the current hour?\n"; …

Member Avatar for spuddy1515
0
116
Member Avatar for bis student

how can I check the donor if valid by using switch function Is_BloodBroup_Valid // takes a string as parameter and return true if it is a valid group and false if not. The only possible blood groups are A+, A-, B+, B-, 0+, 0-, AB+, AB-. also if I have …

Member Avatar for Luckychap
0
136
Member Avatar for sjcomp

Hello, I'm using Microsoft Visual Studio 8.1 (2005) to compile and link a library and my application that uses this library. Linking complains that a symbol can not be found. I looked at the lib file and this is what happens: [code] dumpReadable@OGRGeometry@@UBEXPAU_iobuf@@PBD@Z - Lib has this dumpReadable@OGRGeometry@@UAEXPAU_iobuf@@PBD@Z - My …

Member Avatar for sjcomp
0
107
Member Avatar for Adrian99420

Hi, I am using VS C++ 2005 express edition. I developed a simple GUI with a single tabControl (contain tabpages with some combobox). I wish to add a button which able to add another tabpage which contain the same item as previous tabpages. For example. my previous tabpage contain 2 …

Member Avatar for Narue
0
103
Member Avatar for Vic842

Well guys and gals, I am the beginner at this that is talked about when signing up in these forums. Looking for a good direction to get a grasp on C++. Always been very interested in programming and learning the different languages and would mind being fluent in the other …

Member Avatar for Vic842
0
166
Member Avatar for Lance_Wassing

Well I have a question which could stem some confusion. I'm using C++ to develop some software which i will release as freeware on my website. I'm not new to database programming, however i have only ever worked with xbase and dbase... I would like to start making software with …

Member Avatar for Lance_Wassing
0
118
Member Avatar for c_plus_plus_for
Member Avatar for Ancient Dragon
0
305
Member Avatar for lostandconfuzed

Hi folks! Was wondering if you could help with a problem. I'm supposed to write a function that writes n, n-1, n-2, …, 3, 2, 1. I'm pretty sure I've got it but for some reason I keep getting 0 whenever I run it. It doesn't have to be a …

Member Avatar for Agni
0
99
Member Avatar for rikkie

Hi guys, Could someone point me in the right direction, please? I'm trying to expand my system to accommodate the reservation of consecutive seat numbers. The user is prompted for a row number, seat number and then the amount of consecutive seats he would like to book. For example: The …

Member Avatar for rikkie
0
171
Member Avatar for tlly

Hi everyone.I've got a question on dynamic cast.Dynamic_cast allows us to downcast a data type from one to a more specific one in the same hierarchy. But why not declare the variable we need to the appropriate type during programming time rather than downcasting it at run time? I don't …

Member Avatar for Ancient Dragon
0
351
Member Avatar for zest

I want programming network use language C++, I don't want use langage VC++ but I want use tool VC++. Can I do it? If language C++ do it, can you show me to do this ? I tryed search ebook for it in few weeks, but I can't search it. …

Member Avatar for Ancient Dragon
0
95
Member Avatar for kursist

Hi, I have problem putting a value to 16 bits variable. Here is, how I am doing it. [CODE]typedef unsigned int UINT; typedef UINT* ID_PTR; unsigned short int myclass[5]; const ID_PTR arr16_bit[5] = { (UINT*) &myclass[0], (UINT*) &myclass[1], (UINT*) &myclass[2], (UINT*) &myclass[3], }; [/CODE] Now accessing the myclass like this. …

Member Avatar for kursist
0
88
Member Avatar for Adrian99420

Hi, I created a few window forms and I faced problem when try to link them up. I am able to link up two window form but the problem comes when I tried to link up more than 1 window forms. For example when I want to link up the …

Member Avatar for Nick Evan
0
84
Member Avatar for knewc

*EDIT* INTERPRET! lol....sorry! Write a recursive function array_sum(int *array, int size, int index) that computes the sum of all the elements of the array starting with position "index". Okay thats not too bad..but then he said this for example, if an array A holds the values 5,4,3,2,1 then the call …

Member Avatar for VernonDozier
0
93

The End.