51,593 Topics

Member Avatar for
Member Avatar for lsy

is it possible to have a validation password while open a MS Access password?? Where should i set it and how can i set it? the open connection or? pls advice.... thanks...

Member Avatar for lsy
0
151
Member Avatar for brian63304

I have this pathfinder and I got it to work using c++... now i am trying to convert it to OpenGL and it is not working. I wrote code to use a mouse to plot the start and destination points. but it won't work properly. I have attatched the file …

Member Avatar for brian63304
0
150
Member Avatar for gmv

Hello! I need help on how to upload sound in C++ language. I was wondering if you can provide me with source code or an example where the sound has been uploaded. It would be a great help if you can provide me an example which includes a graphic. Thank …

Member Avatar for prog-bman
0
168
Member Avatar for Talyen42

[CODE]while( i < lineCount) { current = 1; while (nList[i-1] = nList[i]&& i < lineCount) { current++; i++; if (current > highest); highest = current; arrayposition = i; multiMode = false; } else if(current == highest) { multiMode = true; } i = i + 1; } if (multiMode == …

Member Avatar for Dave Sinkula
0
255
Member Avatar for gropedersen

Hi everybody, I have just started working with C++ and I find it intersting and facinating!! However, I am struggling a bit with a problem. I want to find out if the elements in an integer array are increasing or not. I have used a nested loop, but I think …

Member Avatar for Rashakil Fol
0
5K
Member Avatar for stupidenator

Hi everyone, I am having a little trouble finishing my programming assignment. I am trying to write a program that inputs two dates and validates them to make sure the input is ok and that the dates are between 1/1/1850 and 12/31/2100. I have gotten all of the validation down …

Member Avatar for stupidenator
0
159
Member Avatar for mhk_mohsin

Hi every body I m new to symbian programming in c++ but not finding much help related to symbian in c++ So any one who can help me in this regard. and suggest a book for beginners Another problem is that i wana use bluetooth socket api but not finding …

Member Avatar for Ene Uran
0
136
Member Avatar for bobobobo51

excuse me as i am new to programming and trying to learn i have searched through previous forum groups on this topic and i wish to seek the help of all tthe experts out there... i wish to input a file into a class i found this example [code]#include <iostream> …

Member Avatar for svirk
0
254
Member Avatar for ProCynic

I'm a beginer and I need some help with an assignment. I've looked around, but i have not been able to find an explination that I can understand. I am sure that I have done plenty of things wrong, and I could use some help. Here is the code. // …

0
53
Member Avatar for Dee_Dee

My program is suppose to read positive and odd numbers and add their sums but any negative numbers they are not suppose to count or be added to the sum. My error message is coming up when I type a negative number in but I think it's still being counted …

Member Avatar for Dee_Dee
0
209
Member Avatar for Gamermonk10

Playing a game, I got stuck on a mini gamne puzzle in which You were required to find numbers, then put them into a five digit code to open a door. I had found the numbers but had no idea what order they should go in. So i made a …

Member Avatar for Gamermonk10
0
239
Member Avatar for imanust

Hello, i am new to c++. i wanted to convert minutes e.g. 75, to hours and minutes in hh:mm format. any help will be greately appreciated. thanks :D

Member Avatar for winbatch
0
195
Member Avatar for SpS

[code] #include <iostream> using namespace std; class emp { private : int i ; int j; public : emp( ) { i = 10 ; j = 50 ; } void display() { cout<<endl<<i<<" "<<j<<endl; } } ; int main( ) { emp *p = new emp ; p->display(); int …

Member Avatar for SpS
0
131
Member Avatar for some one

hi plzzz i need ahelp to know what rong with this program the problem is in the display function the code [code]#include <iostream.h> #include<string.h> class Employee { private: char number[55], name [55], salary[55]; public: Employee(); ~Employee(); void set(); void display (); }; Employee::Employee() { cout<<"The constructor called"<<endl; } Employee::~Employee() { …

Member Avatar for some one
0
317
Member Avatar for simon126

[code]#include <iostream.h> void askforprices(); double rate (double old_price, double new_price); int main() { askforprices(); return 0; } void askforprices() { double old_price, new_price, rate; cout << "Please enter old price\n"; cin >> old_price; cout<<"Please enter new price\n"; cin >> new_price; rate = rate(old_price, new_price); //points to this location for an …

Member Avatar for simon126
0
650
Member Avatar for aminura

In the following code I am giving an int value to class using type casting-- [CODE]#include<iostream> using namespace std; class A { int a; float b; public: A() { a=0; b=0; } A(int m) { a=m; cout<<"\n values are"<<a<<endl<<b; } }; void main() { A a1; a1=1; }[/CODE] The members …

Member Avatar for SpS
0
217
Member Avatar for Savage221

Hello, I'm working on a program and I'm close to finishing it, but theres one (or two) parts that I'm unsure of depending on how I set it up. The program has to have a user defined function flip(). Flip is only supposted to randomly generate a 0 or 1, …

Member Avatar for firepiro05e91
0
1K
Member Avatar for daybreak7

I am trying to edit a field as it is being input, not waiting for the <CR> using Microsoft VC Borland will allow a "myChar = cin.get();" and will return the char immediately to program control. Microsoft insists that it must be followed by a <CR> before the program can …

Member Avatar for daybreak7
0
136
Member Avatar for jpheezy

I am having trouble getting my program to store values and to be changed throughout the functions. Any help would be much appreciated. Here is the code. [code]#include <iostream> using namespace std; void DisplayMenu(void); void Enter_Inventory(); int Display_Inventory(int inventory_number_coke, int inventory_number_pepsi, int inventory_number_cd, int inventory_number_hires); void Purchase_Soda(); int main() { …

Member Avatar for Ancient Dragon
0
72
Member Avatar for Acidburn

We've been told to design our own class for strings. I've sat down and managed everything so far but I've stumbled accorss something. We've been asked to implement a concat algo. [code] strings* strings::concat(strings *s) { char str[10]; for(int i=0; i<5;i++) { str[i]=m_psz[i]; } for (int j = 0 ; …

Member Avatar for Dave Sinkula
0
178
Member Avatar for lalfonsob

Hi everyone, I spent 2 hours trying to make this code work but I couldn't do it. Can someone point out what I'm missing or what I'm doing wrong? Thanks in advance. [CODE] #include<iostream> using namespace std; bool isFactor(int a,int b); int main() { int num1, num2; cout<<"Enter a number: …

Member Avatar for Dave Sinkula
0
107
Member Avatar for becca

I am using the Dev-C++ compiler. Right now I am having a problem using GLUI. I have installed GLUT and tested some examples, which worked. I have installed the devpack (I believe that is what it was called) for GLUI and am unable to do any examples. The includes are …

Member Avatar for urubu715
0
443
Member Avatar for Gamermonk10

As a first year c++ coder, i was intreaged by the language as soon as i sat down in the classroom. However, on a school assighnment,I have come upon an error that is unfamiliar to me. The assighnment was to simplifly a program that was far too complex. The end …

Member Avatar for Gamermonk10
0
228
Member Avatar for SpS

Hi guys....i want to access MSAccess using C++....don't know how to.......suggest me some ways to do that

Member Avatar for Ancient Dragon
0
123
Member Avatar for blackdove

I have been given a lab assignment that should take a prefix expression such as *+-23/427 and use recursion to solve its infix equivilant ((2-3)+(4/2))*7. So far, the code I have will work for an equation with 2 or 3 numbers. Any more and it starts returning weird results. Its …

0
76
Member Avatar for kyakobi84

What is the code for ( e^x = 1 + x/1! + x^2/2! + x^3/3! + ..... ) anyway can help me, plzzz :cry: :rolleyes:

Member Avatar for alloy_zeus
0
268
Member Avatar for winbatch

[code] #include <vector> #include <iostream> using namespace std; class Test { public: Test() { cout<<"In TEST constructor"<<endl; } ~Test() { cout<<"In TEST destructor"<<endl; } }; int main() { Test t1; vector<Test> vec; vec.push_back( t1 ); cout<<"About to clear vector"<<endl; vec.clear(); } [/code] I suspect I'm missing something fundamental. When I …

Member Avatar for Dave Sinkula
0
2K
Member Avatar for Puckdropper

I've got a program to do for a class I'm taking. I've got most the code written but I can't get the two classes to play together like I want them to. Here is the relavent part of the assignment: [quote] A concordance is an alphabetical listing of all words …

Member Avatar for Puckdropper
0
701
Member Avatar for manishgurnaney

How Can i Create a final class in C++? i have tried by making constructors private . but i want to know an efficient way of doing this?

Member Avatar for Narue
0
92
Member Avatar for shantise2003

I am very new to this and i really need some help :cry: Objective: Understanding of static data types (arrays), traversals, searching and insertion into arrays. Description: In this assignment, you will create a game similar to that of 'Wheel of Fortune'. While the show itself lacks any real worth …

Member Avatar for Dave Sinkula
0
108
Member Avatar for msme

hi everybody I beg to say that I have three numbers. but i want to know that which number is random these are number 1 73163474394643734240 number 2 42651524357702920737 number 3 24965462478679919220

Member Avatar for Narue
0
235
Member Avatar for Toshkin78

Im having trouble sending a bool type to a function which returns a char string to a string. I have provided the code below [CODE] /* Name: bool2.cpp Copyright: Author: Toshkin Date: 06/09/05 21:56 Description: passing string to boolean function returning boolean to */ #include <iostream> #include <cstring> using namespace …

Member Avatar for Toshkin78
0
1K
Member Avatar for Dulaithol

Well, I'm writing a physics calc and I'm having problems. When my friend tries to run it, he gets this [url=http://www.kc8onw.net/~kelvad/images/untitled.bmp]error[/url]. I was wondering what piece of the code wants that .dll file. I think it has to do with the .rc file, but I could be wrong. I'm only …

Member Avatar for Dulaithol
0
259
Member Avatar for Quan Chi2

How would I make my command line program respond to what a user types in? Im reading C++ for Dummies at the moment, and I was wondering what I would do to make it respond to what a user types in. Example: I declare a variable. I start a new …

Member Avatar for Rashakil Fol
0
182
Member Avatar for karen_CSE

hi, I've been staring at my program code forever now and I'm going in circle. I don't know what I've done wrong. Can anyone please help? I'm supposed to design a month class that the following private members: 1) name: a MyString object that hold name of a month such …

Member Avatar for Ancient Dragon
0
919
Member Avatar for kahaj

[code] //Clifton Copeland //Excercise 6.27 //This program outputs Fahrenheit and Celcius range charts. //C = (F-32)*5/9 //F = C*9/5+32 #include <iostream> using namespace std; int cTable; int fTable; int main() { cout << "Choose which table you would like to display." << endl; cout << "Press C for conversions to …

Member Avatar for Dave Sinkula
0
133
Member Avatar for server_crash

For some reason this code is not correctly displaying the output....Is it a compiler issue? I'm not getting any affect from the width method, nor from the fill method. However, when I include <iomanip> and make a call to setw(int) then it works, but this code doesn't: Code: #include <cstdlib> …

Member Avatar for server_crash
0
125
Member Avatar for ramcfloyn

Hello, anyone familiar with ansiString? Have a problem involving a string "1 1", should read "11". I want to get rid of the space in the middle. Can't change it to a character string or std::string so that isn't an option. Will i have to compare each character inturn with …

Member Avatar for Ancient Dragon
0
378
Member Avatar for Micko

Hello, I've been reading Narue's Timesaving Tips and found this code from Dave Sinkula [code] #include <iostream> #include <vector> #include <iterator> using namespace std; int main() { int a[] = {1,2,3,4,5}; vector<int> v(a, a + 5); vector<int>::const_iterator it, end = v.end(); for (it = v.begin(); it < end; ++it) { …

Member Avatar for Dave Sinkula
0
109
Member Avatar for Acidburn

How good do you have to be in C++ / C in order to enter the world of Open GL?

Member Avatar for wally_lawless
0
176
Member Avatar for j1979c

Hi :o , I would like to know if it is possible to write a console program in [B]MS Visual C++ 6.0 [/B](ATM transaction program), that stores data to a database such as [B]MS Access 2002[/B] or [B]Oracle 9i[/B], through [B]ODBC[/B] :?: I've searched all over the net and I …

Member Avatar for Ancient Dragon
0
173
Member Avatar for kdw3

I'm writing a basic piece of code to perform a successive approximation algorithm, however, when it runs the approximation loop, it seems unable to distinguish between a positive and a negative number in that it runs both if statements. The code is shown below, and if someone could point out …

Member Avatar for Dave Sinkula
0
155
Member Avatar for NagendraR

Hello All, I am trying to convert structures to Byte stream(Serialization). I have one concept, Now I am converting each structure object to char pointer, but for structures with pointers this logic wont applicable. can any one help me with any logic for serialization in C/C++

Member Avatar for Narue
0
248
Member Avatar for md_salman

I wanted to use the a far pointer in my program the declaration was like this char far* ptr; but when I compile the program the compiler gives error message that far undeclared, can any one help me in this regard how to use near, far, and huge pointers in …

Member Avatar for Ancient Dragon
0
149
Member Avatar for Acidburn

[php] #include <iostream> using namespace std; typedef struct Template { int a; Template * link; // goes forward (one way reference) } list; typedef list * listptr; int main() { listptr head; // head is a type listptr listptr p ; listptr next ; head = NULL; //therfore make it …

Member Avatar for akshatvig19
0
131
Member Avatar for tachoink

hello everyone, i think im going to ask a very silly and noobie question but here it goes. im using VB 6.0 and im trying to create a program that would detect keypresses over another program. then automatically press something else for me say if i press f12 it should …

Member Avatar for tachoink
0
108
Member Avatar for tommouse

Code compiles w/o error but print function does not pull data from base class. I have looked over the chapter numerous times. This is a long one, sorry [code] class extClockType: public clockType { public: void getTimeZone(int& timeZone); void setTimeZone(int timeZone); void printTime() const; extClockType(); extClockType(int hours, int minutes, int …

Member Avatar for tommouse
0
140
Member Avatar for kdw3

I've just started using C++ for my engineering course. I downloaded the Dev-C++ compiler and I am having trouble with the cout command. Everytime the compiler outputs a value/ sentence etc, the command prompt shuts down before anything is displayed. I am running the program on XP Pro Does anyone …

Member Avatar for Narue
0
602
Member Avatar for SpS

Is it right to say that....since arrays are passed by address automatically...so there's no need and reason to return arrays from functions(Is that the reason why it is not allowed in c/c++)

Member Avatar for Stoned_coder
0
181
Member Avatar for smallville

I'm trying to put together this program that creates a for loop but my end result is not positioned the way I need it like this but flipped around so it looks like a christmas tree effect. * ** *** **** ***** Please help I'm still learning and I can't …

Member Avatar for smallville
0
315

The End.