49,761 Topics
| |
Alright guys, I've been trying to think how to do this and I keep confusing myself. It's part of a project using piping in UNIX but first I need to get this small program running properly. I want to pass the final result (Hex value) to another program that will … | |
Im writting a very simple command-line. I want the > Charecter to come up every time a command ha finished what it's doing (easy) AND when the user presses enter with nothing on it. For example ($ is currssor) I want this: [CODE]> >$[/CODE] Not this: [CODE]> $[/CODE] How would … | |
I have a program which sorts numbers written for a text file. For example input.txt contains 4 2 0 3 4 1 2 0 7. The fist number is the number of the data points, and the following are the (x,y) coordinates. Here's my code: [code] #include <iostream> #include <fstream> … | |
I am trying to create an if statement that when the user releases the left mouse button it will write that out to a text file. I have tried multiple different scenario's and have had no luck, here is some of what I have tried. Thanks for your help! [CODE]if(mouse_event … | |
Hi all, How i do the factorial very large number in c++ ..Please give me sugestion and code thanks in advance | |
Hi! I am trying to write calculator in c++ that takes an infix expression, converts it to postfix, and calculates. I have the code that will do this written, but when I try to turn it into a class it gives my a Segmentation Fault. Here is my code... [CODE=c++]//calc.h … | |
Need some help. My game locks up when you go to load file and it just locks up. Please help. [CODE] /* WumpusGame header file Contains the WumpusGame Class. This is the main workhorse of the program, and contains all of the global data, including the master world map. WumpusGame … | |
Hi sir, could you give me some clue of this problem.. I'm a beginner sir.. display a pattern of half diamond using for loop in turbo c in vertical.. sample: if i input a value of 5, the result will b e like this * ** *** ** * the … | |
My professor told me to put an audio in my program but he did not taught me how to. please help me because i do not have any idea on how to do this thing. i know that you guys are experties so please help me.. tnx alot.. :) | |
I have implemented Bubble Sort. How to add counters in the program so that I can calculate and display the Best Case, Worst Case & Average Case Time Complexity of this program? [code] #include <iostream> using namespace std; void bubbleSort(int arr[], int n); int compb = 0, compw = 0; … | |
so to create a thread all i need is to call this function? and the codes in the "void *(*start_routine)" function is a thread? [CODE]int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg);[/CODE] | |
Hey i guuys, i researched for this topic and there were some close titles to this but none exactly helped me. I need a write a boolean function named IsPrime that takes and integer as argument and returns true if it is. I have to demonstrate it in a full … | |
Hello :) i'm looking for a proper way of drawing points in MFC. or Drawing those point on a Drawn Eclipse. then i actually have to join them. i had been working on .NET, so i'm less fimiliar to visual C++ 6.0, but i have to use it for this. … | |
Hi gurus, kindly help me in tracking these errors. The purpose of the program is to calculate the area and circumference of a circle using struct. the details stored are its name, radius, area and circumference. thank you [CODE]#include <iostream> #include <iomanip> #include<cmath> using namespace std; struct circle { int … | |
I was playing with some code again [CODE]#include <iostream> #include <cstdlib> using namespace std; int main () { int seed; cout << "Enter a seed: "; //enter 8 cin >> seed; srand (seed); cout <<"A is " << rand () << endl; //64 cout <<"B is "<<rand () << endl; … | |
I have seen this code that draws an outline circle and its center point to the ball detected. [CODE]// draws all detected circle and their center points. for (int i = 0; i < circles->total; i++) { // round the floats to an int float* p = (float*)cvGetSeqElem(circles, i); cv::Point … | |
plz tell me how we connect database with visual c++ (odbc connectivity).Plz tell me with image. | |
hello. I'm doing a program in c++ and I need to use a system call to "clear" my screen. for linux I use system("clear") but in windows the same is system("clr"). is there some way to find which OS is being used at the moment of execution so the program … | |
Hi All, I have a doubt regarding SDL programming. Can some one please help me how can i subdivide a Image lets say into 4 parts and then store them in SDL_Surface array. I intend to animate later using these subdivided images by using SDL_BlitSurface function. I am new to … | |
Hello Guys, I'm new here and I would like to ask help from you in making circular queue. I'm solving these for days but I can't have any idea anymore to solve for it's algorithm... I made this code so far... [CODE]#include <iostream> #define SIZE 5 using namespace std; int … | |
I have some native C++ code that I want to use in C# and after doing some research I decided to create a C++/CLI wrapper for the native code. So far, so good. When running the program that contains the C++/CLI class, it works perfectly, but when I try to … | |
What is the difference between standard, int main(int nargs,....); and [CODE]int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd ); [/CODE] I am making a cross-platform program, for windows and linux, and until this point, I used main, without WinMain, for windows and linux. My app calls windows … | |
Hello guys, I'm currently trying to rework an older project. It uses the Dao interface to connect to a MS-Access database. It now needs to connect to a SQL CE Database using the ADO driver. However, I keep getting the IDispatch error, see below. CJapRecordsets is a class with membervariables … | |
Is it possible to develop Win32 C++ applications under a Linux distribution? If it is then how do I do this? I know about Virtual machines, but I'm looking for something that wouldn't require to emulate a whole OS. | |
hi all, How i do very large numbers division and also modulo division in c++ thanks in advance | |
| Hi, I am relatively new to C++ and I am having problems sorting a set of items here is my code: [CODE] #include<iostream> #include<sstream> #include<string> #include<iomanip> #include<fstream> #include<vector> #include<string> #include<cstring> #include<set> #include<algorithm> using namespace std; struct SimpsonChars { string firstname,lastname; double firstnum,secondnum,thirdnum,fourthnum,fifthnum; SimpsonChars(const string& lname = "", const string& fname … |
if (A == nullptr || B ==nullptr) { cout<< "empty"; } When a put this code in Visual C++ 2010 Express, told me this error no operator "==" matches these operands Could someone help me how to solve, it is really important | |
I already wrote the code to read in these two files: processing_rules.txt - which will contain rules like these: 0R1, 0R2 1S3, 0S3 end input_data.txt - will contain data: 5 00110101 The positive number (5, in the example above) represents the position in the second-line sequence, from which processing will … | |
Hello I'm making an application that reads a series of values from a text file and then converts it to a bitmap image. Currently, I'm using arrays, but, deciding on a particular length is annoying. I have been reading a few tutorials and i've read a lot about using vectors, … | |
Hello, so my assignment was to take a text file that contains a properly written C++ program code and to go through that code character by character and output all the comments in that code to another text file. This is what I got so far, basically I`m wondering how … |
The End.