49,757 Topics

Member Avatar for
Member Avatar for Jaivani

my program runs but it only displays the passing ones not the failers it a mulitinention array that user enters the amount a student and grades to be entered. an such make is the pass and if low ey fail. but my program just reads the first grade and if …

Member Avatar for Buffalo101
-2
58
Member Avatar for mickmos

hey guys. i am having a problem with combo boxes in c++. i am making a very simple game for a subject at uni, in this game you pick up guns and shoot monsters. each gun has attributes; damage range and name. when you pick up a gun it is …

Member Avatar for mickmos
0
257
Member Avatar for vbx_wx
Member Avatar for vbx_wx
0
109
Member Avatar for onurozcelik

Hi, In my application I have two object type. One is field item, other is composite item. Composite items may contain two or more field items. Here is my composite item implementation. [CODE] #include "compositeitem.h" CompositeItem::CompositeItem(QString id,QList<FieldItem *> _children) { children = _children; } CompositeItem::~CompositeItem() { } QRectF CompositeItem::boundingRect() const …

0
76
Member Avatar for rkp728

I want to know how a read/write calls is accomplished in linux? I mean how a function say read() will read the data from a file. What all will be the steps from user mode read() function call to kernel mode? Will anybody explain the steps or let me know …

Member Avatar for rkp728
0
161
Member Avatar for shrutinr

Hiii... I want to know how to open two windows forms at a time... when i give as Application::Run(gcnew Form1() ); Application::Run(gcnew Form2() ); Then, the Form2 will open when first one closes,... So any one please help any other way is their so that , i can open two …

Member Avatar for shrutinr
0
119
Member Avatar for ddanii

Hello, when I give fprintf the character 0x0A, then it prints out 0x0D and 0x0A (which is \n in Windows). How can I print only 0x0A? I need to print a picture into a file containing 16-bit pixels, (and some bytes contain the value of 0x0A,) so it is very …

Member Avatar for ddanii
0
108
Member Avatar for mmgoicochea

Hi everyone I m openning this theat because I want to see if any of you can help me... well lets see ... I got my full time back at work (after 2 years :o ) and Im worry about college because I do not have enough time to complete …

Member Avatar for mmgoicochea
0
445
Member Avatar for slowlearner2010

hi all, i want to insert some data into my database (ms access) using c++...for ur info, im trying to do a register user for my login page..i hope after insert some data to text box and click button "ok"....all the inserted data was stored to database (ms access)....how to …

0
68
Member Avatar for gregarion

Hey guys, i am working on a project which basically takes a string which is being inputted by people and then adding it together and displaying in a certain format. What i am having problem is when i try to read the string and store it into the functions. [CODE]class …

Member Avatar for jonsca
0
115
Member Avatar for sgriffin

Ok so I have an operator* for left scalar matrix multiplication that is correctly outputting for the first 4 outputs and not for the next 4. If I have a matrix M2 with inputs [1,2;3,4;5,6;7,8] (the semicolon means next column), and multiplying it by 4, then I am getting the …

Member Avatar for WaltP
0
79
Member Avatar for cablee

I need to somehow open and read a picture of a map (jpg/png/bmp) into a 2d array so I can use the array to determine what terrain type is at that element/position on the map. Looking for tut's on working with picture files (jpg/png/bmp) with c++ I have found none. …

Member Avatar for Coder++
0
147
Member Avatar for coding101

after i input the three letter, i cant get the number back.. [CODE]#include <iostream> using namespace std; class Month{ public: int month; Month(char& one, char& two, char& three); Month(int& numb); Month(); void input1(istream& input); void input2(istream& input); void output1(ostream& output); void output2(ostream& output); }; int main (){ char x,y,z; int …

Member Avatar for Coder++
0
147
Member Avatar for mindcheck101

What type of developer creates audio plugins for digital audio workstations like pro tools and cubase

Member Avatar for Salem
0
43
Member Avatar for Kevin38

[CODE]#pragma warning (disable: 4786) #include <algorithm> #include <iostream> #include <string> struct PhoneBook { PhoneBook(std::string s, long num) { name = s ; number = num ; } PhoneBook() {} friend std::ostream& operator<<(std::ostream&, const PhoneBook&) ; long number ; std::string name ; } ; std::ostream& operator<<(std::ostream& os, const PhoneBook& rpb) { …

-4
33
Member Avatar for react05

Hey guys, how would i create a random number to decide whether it should enqueue the customer or not. thank you.

Member Avatar for alex034
0
97
Member Avatar for metroidfreak

Hi, I'm trying to figure out how classes work. I currently am working on getting a class to read a string and then place it into an array, as well as have the class then output the entire array. I wrote the following code to make sure i could get …

Member Avatar for metroidfreak
0
157
Member Avatar for aaronmk2

I am trying to learn about recursives and found this code on the internet. It works, but am not sure why. Could some one explain to me why this works. I have posted comments by the function to explain what I do not understand. [CODE] #include <iostream> using namespace std; …

Member Avatar for aaronmk2
0
104
Member Avatar for Xorlium

Hello! Suppose I'm using an external API, and in that API, they define: const Bar& Foo() const; So this function returns a Bar by reference. Now, I have a function void f() { Bar P = Foo(); } Is it safe to const_cast whatever is returned by Foo? I want …

Member Avatar for Xorlium
0
169
Member Avatar for yongj

I'm doing a homework assignment about constructors and this is really bothering me. I keep getting the error "constructors are not allowed a return type". I HAVE put a semicolon after the class declaration. I'll post my code here. [CODE]// Joseph Yong // CSC2430 // Homework_6 //Header File /*--------------------------------------------------------------------------*/ #include …

Member Avatar for NathanOliver
0
357
Member Avatar for Sylviodrood

SO basically what im trying to do is take an input number of any base and convert that number to any base(allowable bases 2,4,8,10,16). I am trying to think how i am supposed to go about coding it, wondering if anyone can point me into the right direction. Thanks

Member Avatar for mrnutty
0
74
Member Avatar for prodstar

hi i'm currently making a program relating to money and i need my c++ to read one of my excel files which has all the prices etc in it how do i make it work? =/

Member Avatar for gabryprof
0
180
Member Avatar for Atlanticspace

[code] 842 M C 20.00 15 2 250 10.00 UC RosebudTheatre 90 One Mike Stand 990 E C 20.00 19 2 1250 10.00 TX TexasHall 75 Maverick Speaker Series554 C N 16.45 30 1 35 0.00 UC PaloDuraLounge 60 Global Grounds Coffee Hour 318 E C 18.00 3 4 350 …

Member Avatar for VernonDozier
0
107
Member Avatar for thatom

Hi I am using borland C++ Builder 6.0 and I would like to include finger print technology in my program. I want to store finger print images in the paradox 7 database. I would like to log on into the program using the fingerprint. I have a UrU 4000B finger …

Member Avatar for mitrmkar
0
192
Member Avatar for Atlanticspace

ok so im trying to get my line of text file working with my file input. the Last part of my text file has a name of an event with spaces which I want to include those spaces so I needed a getline. apparently for some reason my getline function …

Member Avatar for Atlanticspace
0
162
Member Avatar for bletchley

Hi. I'm a Java programmer making the switch to C++. Could someone enlighten me as to what's going wrong here: [B]g++ -o fermat.cc main.cc[/B] main.cc: In function `int main()': main.cc:8: error: `Fermat' was not declared in this scope main.cc:8: error: `f' was not declared in this scope main.cc:8: error: `Fermat' …

Member Avatar for nezachem
0
124
Member Avatar for cecp

Can anyone help how to develop simple GUI in Win API. The window should looks like "Options windows" in Firefox (Tools->Options). I would like to create something when I click on the button above(like in FF) the content in below will change. I know how to implement it, but I …

0
30
Member Avatar for sgriffin

How would you fill a 2d vector with NULL. I've tried doing [CODE]vector<vector<int> > data; data (10, vector<int> (10,NULL))[/CODE] But I get an error, and I've also tried setting it to NULL through two for loops and that produces an error as well. Can someone point out what I'm doing …

Member Avatar for sgriffin
0
89
Member Avatar for aleX_X

Suppose I have a vector that is of class X data type. I was wondering if I could access the classes functions through the iterator of the vector, and if I could then what would the code look like? Would I just call the function the way I would normally …

Member Avatar for mrnutty
0
84
Member Avatar for viziroth

ok so I have what seems like a simple problem... simple code [CODE] int date; cout << "Enter the date in MMDDYYYY format: "; cin >> date; [/CODE] problem happens when someone starts the int with a 0 for example cin >> 03081991 date = 24 if I add another …

Member Avatar for iamthwee
0
102

The End.