49,761 Topics
| |
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 … | |
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 … | |
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++) … | |
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 | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
Well Can any one help me and say how to read/write a mdb file in c++:'( | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Can any give me an example of c++ that ejects out the cd drive(where the cd/dvds are intserted). | |
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? | |
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 … | |
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]; … | |
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 … | |
please help me to write a program in c++ to find sum of first and last digits of any number | |
| 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 … |
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) … | |
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 … | |
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 … | |
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 … |
The End.