51,593 Topics

Member Avatar for
Member Avatar for number87

hi again! this time im tasked to create 2 data structure types: RationalNo and RationalInfo. The structure for RationalInfo consists of RationalNo as a nested structure and a few other functions. RationalNo is an array with fixed size. but i got no idea how to even begin and populate the …

Member Avatar for DangerDev
0
103
Member Avatar for nurulshidanoni

How to correct it , at line 84. Error executing cl.exe. error C2447: missing function header (old-style formal list?) [code=C++] /*--------------------------- Filename : ConflictMatrix.cpp ---------------------------*/ #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <vector> using namespace std; struct student { string studentid; vector <int> examcode; }; int main() { …

Member Avatar for nurulshidanoni
0
123
Member Avatar for Jennifer84

I have 2 Forms in my Windows Form application. Form1 creates .txtfiles. I open Form2 from Form1 and can see the .textfiles that is created in a comboBox3. If I open the application from the beginning and go to Form2 I will see all .txt files that exists in a …

Member Avatar for Jennifer84
0
106
Member Avatar for dallaseve

[QUOTE]Hi, I am back again and need some more help please. I have to write a template that performs a bubble sort, and then I need to write an overload function template prinArray. I have the first part (well with a double, couldn't make the float work) but I'm lost …

0
72
Member Avatar for aircraft

How to avoid the output for 10 appears 3 times. 20 appears 3 times. repeat at each line. Im just want one only. 10 appears 3 times. 20 appears 3 times. s610 6 29 69 74 95 103 110 132 10 appears 3 times. 20 appears 3 times. s611 2 …

Member Avatar for aircraft
0
99
Member Avatar for knight fyre

My assignment requires me to demonstrate composition in my source code. I completed my code and worked out all the bugs but at the end where I display the date, I doubt that constitutes composition. Here the question: [QUOTE]Create a system that maintains information on drivers' licenses. The system must …

Member Avatar for knight fyre
0
144
Member Avatar for cosmos22

Hello, I am pretty new to C++, and I have a question: I am, and have been using Dev-C++ I used this code, to delete a text file on my desktop. The first time around, it worked perfectly. Given the file example name of "dafile". #include <stdlib.h> // needed to …

Member Avatar for Ancient Dragon
0
110
Member Avatar for deadrabit

hello, my head has been spinning around a way to do this. the best way to describe it would be with psudo code so... ReplaceLine (string file, string keyword, string str) { open file "file" search for first line containing keyword "keyword" replace that entire line with string "str" save …

Member Avatar for Ancient Dragon
0
265
Member Avatar for Dr_Pepper

my question is how can i make my program not to display any unique combination more that ones? //*****f04.cpp***** //Name: //Date: 02 - 17 - 08 #include <iostream> using namespace std; int main () { // #1 int a, b, c; for (c = 1; c *c <= 100; c++) …

Member Avatar for Dr_Pepper
0
123
Member Avatar for k2k

Does anybody know what class function is for checking if a string has any letter in upper case? string FirstName_LastName any function return the idex of char[] that is upper case ? thank you

Member Avatar for deadrabit
0
341
Member Avatar for dkwantee

Hello! I am having problems to copy the output of a text file to another one. The aim of this small program is to convert a sentence in lowercase stored in a file to uppercase and store the output to another txt file. finally display the output..Plz help me [CODE=c++]#include …

Member Avatar for Ancient Dragon
1
89
Member Avatar for ivay14

Hi! I need help on writing a program that puts 10 "char" values into an array, the program have to sort the values of the array into ascending order. Sample output: Array before sorting: Array[10] = [ E, F, Y, R, Q, A, T, O, W, X ] Array after …

Member Avatar for John A
0
146
Member Avatar for lordsvae

Allright, this is the deal, im trying to use Install Sheild to install a program I wrote in java. But I cannot make shortcuts on the desktop and/or START menu linking to the .jar file, it has to be a .exe file, so I need to make a simple .exe …

Member Avatar for vijayan121
0
96
Member Avatar for number87

I've been trying to convert my code from using iostream to fstream but seems the output file is always empty.. this is my original code [CODE]#include <iostream> #include <cstdlib> #include <ctime> #include <iomanip> using namespace std; struct RationalNo { int RatNo [20]; }; struct RationalInfo { RationalNo rational; int quotient; …

Member Avatar for mitrmkar
0
169
Member Avatar for curt1203

I am having all kinds of problems with my assignment. I have worked on it for hours and cannot get it to work properly. I am new to programming and it gets frustrating very fast for me. Here is the code I am currently working and i have attached my …

Member Avatar for curt1203
0
250
Member Avatar for kunalcrazycoder

Well Can any one help me and say how to read/write a mdb file in c++:'(

Member Avatar for kunalcrazycoder
0
112
Member Avatar for sonygamer

I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include …

Member Avatar for Arpy Giri
0
295
Member Avatar for Crazycfk

I am to make a program that finds the value of a resistor after inputting 3 letters those letters of are of the color on the resistor. i have written a program to do so but the value does not follow the equation. I am not sure if the program …

Member Avatar for Crazycfk
0
159
Member Avatar for abidbhat

can we make any control(like edit box) as the standard output device so that the result of the process can b directly shown in that particular edit box without any interaction ..............i think it is possible when we run the procees using createProces() and pass appropriate arguements.......but i am not …

Member Avatar for vijayan121
0
83
Member Avatar for baddal

hey, i was wondering if anyone knew some good sites for learning c++, al the ones i have seen arent that thorough. I would like to find one that covers beginner-intermidiate. any help is appreciated -thanx

Member Avatar for SpS
0
105
Member Avatar for j_rodwilliams04

Hello I'm in a begginer C++ programming class. I don't understand stand my teacher. I'm looking for some help with this program. Its suppose to check if the date is valid, if the date is valid it should output the, if not then it shoud automatically loop back to the …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for baddal

I'm pretty new to writting c++ and i made this file to create a random x and y coordinate and place a bitmap image upon it, i made the program save the coordinates to .dat files *or txt i dont really care at this point* now i want a way …

Member Avatar for vmanes
1
91
Member Avatar for SteveDee

I have searched the web, as well as this site, and I have found lots of good recommendations for books on learning C++. Currently, as my coding skills are getting better, I am trying to use more of the features of C++ Visual Studio 2008, and I am not finding …

0
56
Member Avatar for OnIIcE

hello! im trying to rotate a tbitmap image using scanlines, and cant figure out how to do it! ive go it working moving pixel by pixel but i want to be able to speed it up using scanlines. im using borland 6 C++, and doin some reasearch they (borland) gave …

Member Avatar for OnIIcE
0
413
Member Avatar for hyperzero4

Hello, I'm very, very new to C++ and I'm taking computer science course right now for fun. I really want to learn C++ but I'm having a lot of trouble with this new homework assignment and I'm hoping I just take it one step at a time so I completely …

Member Avatar for John A
0
4K
Member Avatar for kunalcrazycoder

Can any give me an example of c++ that ejects out the cd drive(where the cd/dvds are intserted).

Member Avatar for Duoas
0
98
Member Avatar for mario123

is there any advantage in using int main() over void main()?. and when you return a value in int main(), where does the returned value go?

Member Avatar for Narue
0
404
Member Avatar for dexter1984

Hi guys, I need a little help in my assignment. Got it down to the last part but I don't really get recursive functions. [code=language] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void swapArray (int [], int); int printArray (int [], int); const int MAX …

Member Avatar for dexter1984
0
90
Member Avatar for dexter1984

Hi guys, I need some help with arrays. [ICODE] #include <iostream> #include <ctime> using namespace std; void constructArray (int [], int); void printArray (int [], int); const int MAX = 30; int sizeArray = rand() % MAX; int main() { srand(time(NULL)); int makeArray [sizeArray]; constructArray [makeArray, sizeArray]; printArray [makeArray, sizeArray]; …

Member Avatar for SpS
0
165
Member Avatar for vishalkhialani

Hi, I am working on a project where I need to save data which the user inputs for future reference and manipulation. I know one can use a database or a binary file. I would like to use a database but I don't know where to begin. I know one …

Member Avatar for vishalkhialani
0
164
Member Avatar for rathmal

please help me to write a program in c++ to find sum of first and last digits of any number

Member Avatar for SpS
0
130
Member Avatar for icewizard

I have a very simple question. I am trying to link the following 2 files, but I get an error saying "multiple definition of function()" In a.cpp int function(){ return 1; } In main.cpp #include "a.cpp" int main(){ return 0; } I know I can fix the error by making …

Member Avatar for John A
0
262
Member Avatar for mrjoli021

I am getting the following error: I am using vs2008 and e-mail.h is included in the project Error 1 error LNK2028: unresolved token (0A00004A) "public: void __thiscall MyEmail::Createfile(void)" (?Createfile@MyEmail@@$$FQAEXXZ) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ) test.obj e-mail Error 2 error LNK2019: unresolved external symbol "public: void __thiscall MyEmail::Createfile(void)" (?Createfile@MyEmail@@$$FQAEXXZ) …

Member Avatar for John A
0
98
Member Avatar for prs55

I have a problem on getting the nth list item( function: DataType get(int n) const ),though it may seem easy. here is my code.. [code=cplusplus] #ifndef ORDERED_LIST #define ORDERED_LIST #include <fstream> using namespace std; template <class DataType> class OrderedList { public: OrderedList(); ~OrderedList(); void clear(); DataType get(int n) const; void …

Member Avatar for prs55
0
105
Member Avatar for CloudKill9

I'm back again for some more homework help. I just want to start off by saying thanks for assisting me in my last assignment. This one, I have to allow it to Enter a name, and enter grades for that name, and then it will display the average for that …

Member Avatar for Ancient Dragon
0
90
Member Avatar for saketbash

Our teacher wants us to take an array and output it via these instructions. The array conists of grades (ie 92 72 83...etc): "Write the output to a text file. In it, display the original grade array, 10 per line, in fields of 5." My question is, what does that …

Member Avatar for saketbash
0
171
Member Avatar for ObscureOne

[code=c] #include <stdio.h> __declspec(dllexport) void DisplayHelloFromDLL() { printf ("Hello from DLL !\n"); } [/code] This above code has been written using VS 2005. I opened this project as a win32 application and chose the option to build a dll and not a exe. The name of the project is DLLProctTest …

Member Avatar for Ancient Dragon
0
5K
Member Avatar for sonygamer

I'm trying to use the switch function to compute the resistance of resistors. Basically, a person types in 3 letters, each representing a color; each color has a different value. Then v throws back the resistance by going through the equation. This is what I have so far. [code=c++] #include …

Member Avatar for Narue
0
1K
Member Avatar for kabbo

Hi, i am trying to use a library. included the header in my code set the path (-L) and the library (-l), but i get the following error and a bunch of undefined symbols. Does anyone have an idea? What am i doing wrong? Thans in advance. PB:~/Downloads/lp_solve_5.5.0.11_c max$ gcc …

Member Avatar for kabbo
0
303
Member Avatar for saketbash

Hi guys. This is my first post and I hope I can get some help. Thanks so much in advance for this. I have what I'm sure is simple but I'm missing something here. I have a file being read from (input.txt) which has no more than 50 grades w/ …

Member Avatar for saketbash
0
88
Member Avatar for Jennifer84

This code(Files) does return the whole directorypath like this: C:\Documents and Settings\User\Desktop\Text.txt What should be changed if you only want to return the fileName wich is: "Text" Code: System::string ^ Files10 = "c:\\"; array<System::string ^> ^ Files = System::IO:: Directory::GetFiles(Files10,"*.txt");

Member Avatar for Jennifer84
0
145
Member Avatar for wingwarp

ok ihave looked through google and cprograming.com and cant find much to do with opning documents like... i am trying to do... run the c++ program select a number and open an html document ... ... yes i know basic html... thanks... --wingwarp--

Member Avatar for VernonDozier
0
311
Member Avatar for timchippingtond

In C++ on MS Windows XP. Actually using MS Visual C++ in VS 2003 .net (v7.1) and VS 2005, on XP Pro with SP2. How can I find the full pathname which is attached to a file stream? I have code like: [CODE]bool DataModel::readGrades(char* filename) { std::ifstream tablestream(filename); if (!tablestream) …

Member Avatar for Narue
0
147
Member Avatar for mistercow.pnoy

first off, this is my very first post, so sorry if i sound a little noobish. also, i've only been learning C++ since september, and we're going pretty slow. so yesterday I got an assignment, using [b]only[/b] [i]for loops[/i], and [i]if statements[/i], enter a number, find it's factors, and tell …

Member Avatar for Nemoticchigga
0
121
Member Avatar for jervis0

Hey guys, I'm new here and I'd really appreciate it if someone could help me out. My problem is that whenever i click on my local disk C:\ on My Computer, i get a "C:\ Access is denied" message. I can open my drive C:\ by typing it on the …

Member Avatar for jervis0
0
122
Member Avatar for gsivaram

I need to extrace particular text from PDF file matching particular expression...But PDF file is stored in different format I need help how to parse PDF file using using filestreams...

Member Avatar for Ancient Dragon
0
98
Member Avatar for gmerch80

[code=c++] #include<iostream> #include <string> using std::cout; using std::cin; using std::endl; using std::string; using namespace std; class Invoice { public: void setPrice(int price); int getPrice(); void setQuantity(int quantity); int getQuantity(); void setPartnumber(string); string getPartnumber(); void setDescription(string); string getDescription(); int getInvoiceAmount(int Quantity, int Price); private: int Quantity; int Price; string Partnumber; string …

Member Avatar for Ancient Dragon
0
101
Member Avatar for gsivaram
Member Avatar for vectra17

Hello, I made a COM server in C++ using IDL. The server consist of a DLL file and a TLB file and it works fine. Now I want to merge the TLB file in(to) the DLL file in order to have one DLL file. How can I do that? Thanks.

0
53
Member Avatar for fl00d

I'm trying to import a function exported by a dll. So far: [CODE] #pragma comment(lib, "hookHop.lib") extern "C" void hhPostMessageA(HWND Hwn, UINT Msg, WPARAM WParam, LPARAM LParam); extern "C" LPARAM CursorPosTolParam(VOID);[/CODE] The lib and dll are in my project directory and my dll is in my debug directory. I get …

Member Avatar for 4ng3licDew
0
153

The End.