49,761 Topics

Member Avatar for
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
106
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
251
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
118
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
338
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
85
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
90
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
246
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
108
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
293
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
103
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
54
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
410
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
86
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
161
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
127
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
260
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
102
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
147

The End.