49,756 Topics

Member Avatar for
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
143
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
89
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
168
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
243
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
107
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
292
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
156
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
81
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
102
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
88
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
53
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
409
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
95
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
401
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
85
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
160
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
162
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
126
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
259
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
94
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
100
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
88
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
135
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
296
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
84
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
143

The End.