48,986 Topics
| |
I am having problem with converting and initializing errors. Any help is appreciated. I am a 2 yr Computer Science major, so be gentle. Here is Code: Sorry its long! [CODE]// Kyle Bennett // CS 318 // Paint Throwing Disturbance #include <iostream> #include <iomanip> // set width and decimal #include … | |
Windows API Can the KEYBDINPUT structure in the INPUT structure be used to send a mouse click? I know there is a different structure for the mouse but I would like to use the KEYBDINPUT structure if possible. | |
i was working on a project to send sms through my cellphone connected to my usb, but i did it on java with the comm library and on windows, now im working on ubuntu with c++, but i dont find any library that i could use to communicate with the … | |
I have a game client that has a button to allow input and when toggled on it will block input.. Thing is sometimes even when u toggle it off, it still blocks user input.. Other times there is an extremely HUGE delay before it accepts input.. I was thinking if … | |
My teacher showed me something like this with functions but I don't quiet get it. Since, I can't ask him right now...I came here for help. I'm suppose to write a function to display days in a month. This is my first time using functions so all the help I … | |
Hello guys. I just have a problem that I think you pros will help me solve real quick.. I was instructed to make a table that will show the inputed miles, yards, feet, and inches this way: Units Value Meters Miles XXX XXX.XX Yards XXX XXX.XX Feet XXX XXX.XX Inches … | |
Hello everybody! I build a string for a system call (Matlab) like: [CODE]std::string command = "matlab -nosplash -r MyMatlabScript(" + arg1 + " " + arg2 + ");";[/CODE] The system call is: [CODE]system(command.c_str());[/CODE] However, i get an error, pointing to the first parentheses in my command string. How can i … | |
How would I write a program that writes the text in a textbox to a List Box when a button is pressed, kind of like an address book? | |
Ey all. Im folowing a c++ course and im stuck writing string or char arrays to matrices. The problem is i have a matrix of size [i][j] with random values from 0 to 3. Each of these values have to correspond to either a string or char array. 0=EMPTY 1=RES … | |
Hi, I am a newbie to coding. I am trying to implement a graph in the following format. User input: v1 v2 edge_cost 1 3 10 1 2 20 2 3 40 3 1 30 I am storing the graph as an adjacency list, so that the output should be … | |
i have included just insert function in redblacktree class. there are[U] no compilation errors but it shows [COLOR="Red"]segmentation fault[/COLOR] [/U]on running. when i am calling insert function [B]it's not even entering into it as it's not printing the cout statement [/B]at first line of insert body. i am using g++ … | |
Hi, Can anyone show me or point toward a link with a decent example of a hash table using linked list. Thank you , | |
Hi guys, I have this input.txt file and I have to scan it to get information for my project. the input.txt file has format as: 33 56 34.8 N 118 24 30.1 W 37 40 23.5 S 144 50 54.1 E So I used fscanf_s to scan the file. Here … | |
[CODE]#include <iostream> #include <Windows.h> #include <time.h> #include <iomanip> #include <string> #include <cctype> #include <algorithm> using namespace std; /*********Wallet*****************/ void blingstack(double& wallet, double& winnings, double& payoff) { if(payoff > 0) cout<< "You won $ " << winnings * payoff <<endl; wallet = wallet + (winnings * payoff); cout<<"\nYour current balance is … | |
I want to create a key in the [B]Registry Editor[/B] of Windows XP using c++ program. After this i am to write the Name and the Data(e.g value) of that particular key using c++ program. And i am to read the Name and Data(Value) of that particular key using c++ … | |
[CODE]#include <stdio.h> #include <iostream> #include <string.h> using namespace std; int main() { string str1; char* str; cout<<" enter your command "<<endl; cin>>str1; str=(char*)str1.c_str(); char* str2="exit"; int status; while(strcmp(str,str2)!=0){ // createChildProcess(str); cout<<str<<endl; cout<<str1<<endl; cout<<strlen(str)<<endl; cout<<" enter your command "<<endl; cin>>str; } return 0; } [/CODE] try to run this program and … | |
Hey guys i am interested in knowing how to let my C++ open images. Like set the location on the image in C++ and when i click it, it opens image viewer. Also would like to know if i can do the same thing with music. Like put a list … | |
[CODE] #include <iostream> #include <vector> #include <string> using namespace std; class Member { public: string Name,Vorname; //prototypes vector<Member>*generateAVector(); void SaveElementsInTheVector(vector<Member>*pAVec,Member *obj); void DisplayTheVector(vector<Member>*pTheVec); void test(); }; int main() { Member Neu; //new object //creates a vector on the heap, here with no sense,only experimentally vector<Member>*pAVec=Neu.generateAVector(); //puts data in the elements … | |
Hi guys im trying to make a program that will work as " Slot Machine " and im stuck in one part that i can not resolve. Im trying to verify predetermined char in random array so i can know if some of the three char appear three times or … | |
The following code is for a programming class I'm taking. The program is supposed to prompt for a number, then prompt for a second number. Then it should use a while loop to multiply the first number by the second number. The second number does not change - the first … | |
Hi, I have problem with this code: [CODE]#include <iostream> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> using namespace std; void generateList(int * list, int size,int random); void printList(int * list, int size); void bubbleSort(int * list, int size); void insertionSort(int * list, int size); void selectionSort(int * list, int … | |
Hi guys im trying to make a program that will work as " Slot Machine " and im stuck in one part that i can not resolve. Im trying to verify predetermined char in random array so i can know if some of char appear three times or more. I … | |
I was going through all of the tags gettn' used to my fresh DM compiler (love it) and in optimization there was a rather long tag called 'expensive optimization' Th DM website didn't have anything and google just brought up car engines. What does it do? | |
Dear Friends I have a mfc application which I already converted to a dll. now I want to launch that application from another win32 client application. So how I can achieve this. Any h elp would be highly appreciated. check my code snippet. [CODE]//in App.h header extern "C" __declspec(dllexport) void … | |
Ok here it is: I want to read a file backwards, the catch is that I want to do this in binary mode to make a, really lame, data encryption program. Is there any easy way (<10 lines) To do this? | |
Help Me i have created a program to take password from user while accessing a small project, but while user is inputting password it is displayed, i don't want it, i have created all other functions for deleting, editing password. e.g enter password : india001 //i am getting that enter … | |
MY bad this should below to C#... ignore this one please, sorry about that... --------------------------------------------------------------------------------------------- Hi people I found I can only reset the values in the array but I can resize it in a new method and return it back to main method, [CODE] static void Main() { int[] … | |
I am trying to get the text to move on screen by repositioning the x value of the rendered text, but unfortunately I keep loading the program to find the text remains in the same position that it was originally rendered in. I was hoping someone my see something that … | |
Hi, I'm currently working on an Eight Queens problem solving with recursion and backtracking. I have an output for my code, but it is not the desired output and I am having trouble figuring out what part of the code is wrong. Any advice would be appreciated. My header file … | |
Hi, im new here and also new to C++ (pretty much new to programming anyways) I have been working in an assignment and got stuck trying to store information into a 3x3 array, and then retrieving the data. [CODE] #include <iostream> #include <iomanip> using namespace std; int main() { float … |
The End.