49,767 Topics

Member Avatar for
Member Avatar for mussa187

I am trying to check the input for 8 bit an unsigned integer is this the right why to go about it? struct int8bit { unsigned int number : 8; } .

Member Avatar for chiwawa10
0
82
Member Avatar for Zay

hello; while downloading the Microsoft visual C++ from a CD , a massage appers to me saying that it can not read a specific file and then another massege after the installing complate saying that the installation was not sucsseful the problem start then in the program it self , …

Member Avatar for Zay
0
108
Member Avatar for Luckychap

Hi guys, I need to understand the concept of inheritance in Oops. Can any one explain with real life example the use of inheritence to enhance a super class. It will be very helfull to me if you can explain me the use of inheritence to build a simple car. …

Member Avatar for chiwawa10
0
122
Member Avatar for infernojmd

i wanna know how to set an certain number with commas, for instance if i had this [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { int numItems; double total; const double costOfItems = 1050; cout << "enter number of items "; cin >> numItems; total = costOfItems …

Member Avatar for Lerner
0
107
Member Avatar for harkw002_UniSA

I have created an iterator for a vector and i need to create a return type for an object found in the vector. vector<Student>::iterator StudentRecord::find(const string& studentName){ vector<Student>::iterator find; for(find = students.begin(); find != students.end(); find++) { if(find->getName() == studentName){ return find; // Not sure if i am allowed to …

Member Avatar for harkw002_UniSA
0
7K
Member Avatar for noraantonia

hello i am building an application in Visual c++ 6 and i want to save some variable values. i tried in all ways, until i try just to save a value that i declared right in the "Serialize" function of my CDocument class : [code=cplusplus] void CDiplomaDoc::Serialize(CArchive& ar) { r=3; …

Member Avatar for Ancient Dragon
0
135
Member Avatar for daviddoria

is there a package for c++ that will allow me to make a matlab/gnuplot style plot from within c++? I would like to skip the step of writing data to a file and then using something else to read in the data and then plot it. Let me know what …

Member Avatar for daviddoria
0
265
Member Avatar for theausum
Member Avatar for Laiq Ahmed
0
138
Member Avatar for Black Magic

Hello, This thread is not about you solving my homework, infact i only go to secondry school so don't get it, this sounds weird but can you give me some homework examples brcause i want to learn C++ and i think it may help, please reply a.s.a.p :). ~ Black …

Member Avatar for Salem
0
108
Member Avatar for harkw002_UniSA

1. How do i convert an object (students) which is of type string into a string. 2. How do i remove all characters from a string after a space character. ie. i want to read an Object eg. "WILSON","MBCP" convert it to a string and then remove "MBCP". Then i …

Member Avatar for harkw002_UniSA
0
156
Member Avatar for pash11

Write a program to add or subtract two big integer numbers. “Big” refers to a number which is more than 30 digits. You can assume that the number may have MAXIMUM 100 digits. Your program should have the data structures to hold such a big number. Also it should have …

Member Avatar for TSharma
0
217
Member Avatar for harkw002_UniSA

I have a header file called StudentRecord.cpp which declares the function: vector<Student>::iterator find (const string& studentName); In my Student Record.cpp file i have written the folloing code: vector<Student>::iterator StudentRecord::find(const string& studentName){ vector<Student>::iterator find; for(find = students.begin(); find != students.end(); find++) { if (students[find].getName() == studentName) { return students[find]; } else …

Member Avatar for harkw002_UniSA
0
103
Member Avatar for bhoot_jb

right now i am working with Turbo Borland C++ compiler...however now i want to have a try on GCC compiler too... so where would i get it?? can anybody provide a reliable link to a GCC compiler??? :)

Member Avatar for bhoot_jb
0
122
Member Avatar for vileoxidation

Hello, and thanks in advance for your time! I am very new to C++, and am attempting the classic squares program. I have the meat of it all done, but am having issues with a few certain parts. First, I can't figure out how to do the sentinel value. I …

Member Avatar for vileoxidation
0
132
Member Avatar for Suraine

Dear c++ gurus, I'm new in creating a header file. never try before. ERm... i have write a header file with a program: [code] Header file: MySensor.H extern short int DetectSensor(int sensorvalue[10]) { ....; } [/code] [code] Program file: MyFile.C #include <MySensor.H> short int i; int p, sensorvalue[10]; int getsensorvalue() …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for kemo0o

hey : i am working on simple engineering application but i have some problem i want to draw X-Y axis Then put any point on it . Then i want to translate this point ∆x=5 , ∆y=12 After that i want to rotate it by angle (∂) degree then i …

Member Avatar for Ancient Dragon
0
101
Member Avatar for lolodede

until now u didnt solve my problem use c++ to input three words and then put them from largest to smallest using if statement

Member Avatar for Ancient Dragon
0
106
Member Avatar for hjong.mahjong

just practicing for fun on some problem i saw posted on yahoo answers,mathematics section problem: xyz times pqr = some number x,y,z,p,q,r should be 2, 3, 5, or 7. and some number's digits should also be made up entirely of 2, 3, 5, or 7. solution: 335 x 753 = …

Member Avatar for hjong.mahjong
0
105
Member Avatar for Jennifer84

I wonder something about what is happening when I sort this vector. I put some number into the vector like below. After the sort the output look like this. 3 2 1 -3 -2 -1 What I want is that the output instead will look like the below example. Like …

Member Avatar for ivailosp
0
275
Member Avatar for lynx_aba

hi fellows... I have a little problem, in Unix there's a library called unistd.h that have the function "link" and as its name says, creates a link of a file.... I want to use that function in windows, but i only found the "_unlink" function in the io.h library, this …

Member Avatar for dougy83
0
115
Member Avatar for IU34

I'm making a text adventure game, and it's actually coming along quite nicely...the only thing is, I want to be able to return to the previous screen whenever I want. Say that in my game, I go north. I want to be able to go south, back to my main …

Member Avatar for IU34
0
98
Member Avatar for 11moshiko11

hello! i have problem with program i made: the program should define a pointer to pointer which points to dynamic array of Grade (class i made). i increase the size of the array in function. so i made a new pointer to pointer which point to array of Grade (the …

Member Avatar for dougy83
0
83
Member Avatar for tootypegs

hi i have the following hex string 40 E3 4E DA 04 2B FE 7C and i need to convert this to 39541.813009259260. I believe this is a hex to ieee float conversion. I thought that it was a case of viewing the hex in binary format the inverting the …

Member Avatar for Salem
0
97
Member Avatar for theausum
Member Avatar for marti3a3

So I'm a new programmer and I'm SO close to finishing this code. I want to return an array from a function, and every thread that I've looked up has said I need to return the data as a pointer TO an array. How is that done? Also, I'm working …

Member Avatar for Ancient Dragon
0
86
Member Avatar for hjjayakrishnan

is it possible to use fstream without using classes and structures since everi time i encountered a fstream code i saw this classes and structures used...im not into the portion of classes ...could anyone help me out in this case!!????

Member Avatar for Ancient Dragon
0
49
Member Avatar for man4ish

#include <boost/config.hpp> #include <iostream> #include <vector> #include <utility> #include <string> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/graph_utility.hpp> #include <boost/property_map.hpp> #include "ed.h" #include "ve.h" using namespace boost; using namespace std; class Molecule { map<int,string> m; public: void set_molecule_property(vector<string>& s4) { for (unsigned int i = 1; i <= s4.size(); i++) { m=s4[i-1]; } } …

Member Avatar for Salem
0
154
Member Avatar for aminit

Hello All: Can anyone give me a simple idea how to remove the duplicated letters in a text if I have this word HELLO it must be HELO..... Thanks in advance.....

Member Avatar for aminit
0
118
Member Avatar for rockmania

I am using TURBO C++ IDE 3.0..i am able to execute the program that are related to graphics. but the problem i face is when i get the output i am not able to capture the output using print screen key.the output is a black DOS screen and is not …

Member Avatar for Salem
0
98
Member Avatar for Suraine

Dear c++ guru, I am using cygwin to create a c++ environment for my Lego RCX. I have create a program file in c++ format. when compile with cygwin, it shows: [code] file.ds1: line to short on line 324[/code] can anyone help explain to me what is it? I am …

Member Avatar for Suraine
0
104

The End.