49,761 Topics
| |
Been working with operator overloading for the first time and am running into quite the standstill with this one. I finally got rid of the code I had written and decided to start from scratch. If anyone has any advice on how to code this for me it be a … | |
can i ask for a help? can you give me an idea to improve our program? another feature? our program is about computing a telephone bill.. -thanks!- | |
hello, i am trying to create a simple C++ application, (not a DOS application), i would like to to know .. how could i output inputs field and then process what the user typed on that field? -Angel G | |
our project is to make a lexical analyzer. I am using DevCpp and it is in C. I barely know the idea of the analyzer. Can someone please ive me a clue on where to start in this project. I think if I will know where to start, I can … | |
Why can't I declare this near the top of the Form1.h file... int trackArray[4][999]; It strikes error C4368; something about mixed type. What is mixed about the types? Walt | |
Hi, I'm quite new to C++ and I'm trying to write a function which would change uppercase letter in char[] to lowercase. Inside this function everything is fine but when I leave it, contents of char[] is not changed. Any ideas why? Also when I try to delete local pointers … | |
I have 2 binaries - a java binary that requests a microsoft word doc from a c++ binary. The C++ binary opens the word doc in binary mode, reads x no of chars and returns chars to java binary. Java binary eventually receives all data and writes data using filestream … | |
Hi, I am so frustrated by this error and I don't know how to solve it. Hope someone helps! I have a dynamic lib (Call it D) which is loaded at runtime with the dlopen() function inside a static lib (Call it S). There is a header file that contains … | |
I am learning Object oriented programming using C++ , i wonder if there is any site or book that have open source programs to teach OOP in C++ ....... I want to learn how to use OOP in programming how to implement it ..... If any one can help i … | |
Hello please help me I want to declare object of base class above function main or global variable( object) and use this object in derived class like this: class X { ... } class y : public X { void func(); } void y::func() { a[1][0] = &c; //compiler error: … | |
| Hi! I'm trying to search a binary file for some hex values and then replace them, using C++ CLR. Reading and writing the file works, but I just haven't found a way to search and replace successfully. Here is the relevant code I've created: [CODE] array<Byte>^ fileContents = File::ReadAllBytes(item); textBox2->Text … |
Hello DaniWeb! My first post to you. I have a question about an undefined reference error I am getting. Currently I am studying from Dietel and Dietel C++ How to Program 4th ed, and on page 421 of chapter 6 I am working on the program they have in the … | |
This belongs in both C and C++ forums, but it's more of C++ (I think) so I'll keep it in here for now. I'm working on a C++ program to extract files that I am constantly compressing and testing (releasing software for beta testers to take a look at). I … | |
Hi, My coding objective is quite simple: design a function to write the data in a matrix into files. And here is my code: [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int matwrite(float* mp,int row_sz,int col_sz,string mat_file); int main() { // create a simple binary file first … | |
can we compile b.cpp by running a.cpp? i have koolplot project to draw plot. this plot should appear in the middle of the program, and if the plot is closed, the whole program terminates immadiately. To avoid that, i tried to make 2 cpp files. One for the main, and … | |
Hi! I'm working on a project and need a way to add a newline to the input stream, by code and not by user's help. The user should not need to do anything, I need a simple line of code that places a newline in the input stream, but I … | |
1. Write an iterative and a recursive version of the Fibonacci series algorithm. You need to ensure the correctness of the both algorithms. Both algorithms should produce similar output if given a similar input. a. Measure the performance of the two algorithms by measuring the time for both algorithms to … | |
I am a newbie to this forum, and this is actually my first post. I am looking for a way to get the object of the currently running thread in boost. To make this short, consider a case in which one wants to implement a semaphor or a condition variable. … | |
Hello, i am trying to create gmail like alerts in visual c++ which will show information fetched from a php file on the internet, and will be able to send the current;y playing song to the php script... any help is really welcome! | |
Hello, i where making a game, and i needed a vector that holds class objects, i do the thing (below), and i thing i did it right, but it seems not and i dont know whats wrong :( [code]#include <iostream> #include <vector> #include <string> using namespace std; class Races { … | |
I made a program... now i have to put one validation. "while program is executed, if i press "Esc" button (hardly situated in top-left corner) i will be out of my program, means its exicutation directly takes end." i tried by taking its ASCII value but i requires also ENTER … | |
Hi, To get straight to the point: I'm new at C++. I have quite some programming experience, mainly in GML [Game Maker Language], PHP and Visual Basic. I use GML frequently, almost everyday. But it's problem is, it does not have a lot of functions. But you can use a … | |
Is there a way to use one type of iterator for another? like vector<int> iterator to vector<string> iterator,also any way iterator can be used like a interger?? coz i wanna do some mathematical manipulations on an iterator.coz i cant,i use a variable [CODE] int i;int ss=string.size() for(int i=0;i<ss;++i)[/CODE] but i … | |
Really i need help to complete my program but i don't know how to fix the errors .. the program is about 2 Dimensional Arrays matrix operations i wrote the whole program but there is some mistakes plz i need help to finish it im too confused !! [ICODE] #include … | |
As you can tell....I am a beginner.... Please help me get past this problem. I am not sure how to compare strings for equal signs. I am at a brick wall. I have some unsorted albums with the name of the album, release date, CD Number and unsorted songs. I … | |
Is there a way to get all the arguments and put them in one string? I'm very new to C++, so I need all the help I can get. Here's what I have here: [CODE]#include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "argc = " … | |
Hi all, I have a problem with my code. Please help me. I am trying to create multiple files based on the input file and read its respective data only. Thread_id: 1 Data_block_size: 64 Request_commmand_type: ReadReq Packet_block_Address: 8184256 PC_value: 4831838656 Tick_of_the_data: 14000 Packet_transfers_through_Bus_name: system.toL2Bus Is_Instruction: 0 Is_Data: 0 Data_Read: 0 … | |
Hi all. i am writing a simple log in program and i would like to have a class for users that stores the user name and the password as strings. after i have a user created i would like to output the class with the ios::binary flag set and store … | |
Can someone help me to solve out the array problem. i have problem in array and loops .can some one suggest me any good site for c tutorial.. | |
Working on another c++ assignment and I need to make an input of "X" function as an end to the program without using an exit() command. Just want to know the easiest way to make that happen. Thanks for the help. [code=CPP] #include <iostream> #include <string> using namespace std; int … |
The End.