48,986 Topics

Member Avatar for
Member Avatar for bennetk2

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 …

Member Avatar for raptr_dflo
0
359
Member Avatar for pseudorandom21

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.

Member Avatar for ret801
0
162
Member Avatar for -Theo-

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 …

Member Avatar for ret801
0
50
Member Avatar for triumphost

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 …

Member Avatar for ret801
0
220
Member Avatar for myrongainz

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 …

Member Avatar for myrongainz
0
161
Member Avatar for Aghtar

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 …

Member Avatar for Aghtar
0
169
Member Avatar for earth_observer

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 …

Member Avatar for Ancient Dragon
0
147
Member Avatar for Boeing

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?

Member Avatar for Boeing
0
161
Member Avatar for Knar

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 …

Member Avatar for Greywolf333
0
415
Member Avatar for k_arjun

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 …

Member Avatar for k_arjun
0
872
Member Avatar for nchy13

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++ …

Member Avatar for Moschops
0
169
Member Avatar for Warhead88

Hi, Can anyone show me or point toward a link with a decent example of a hash table using linked list. Thank you ,

Member Avatar for Warhead88
0
328
Member Avatar for yurigagarin

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 …

Member Avatar for yurigagarin
0
1K
Member Avatar for babyhuyx

[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 …

Member Avatar for WaltP
0
156
Member Avatar for Awais Ali

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++ …

Member Avatar for Awais Ali
0
161
Member Avatar for eman 22

[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 …

Member Avatar for Tumlee
0
149
Member Avatar for slygoth

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 …

Member Avatar for slygoth
0
2K
Member Avatar for Sunshine2011

[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 …

Member Avatar for Sunshine2011
0
118
Member Avatar for Oscariuz

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 …

Member Avatar for mrnutty
0
208
Member Avatar for master dogs

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 …

Member Avatar for Clinton Portis
0
158
Member Avatar for Ondrej.Behulek

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 …

0
72
Member Avatar for Oscariuz

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 …

Member Avatar for mzimmers
0
177
Member Avatar for Zssffssz

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?

Member Avatar for mzimmers
0
120
Member Avatar for sujan.dasmahapa

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 …

Member Avatar for sujan.dasmahapa
0
344
Member Avatar for Zssffssz

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?

Member Avatar for vijayan121
0
658
Member Avatar for deepak1331

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 …

Member Avatar for Narue
0
10K
Member Avatar for x69chen

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[] …

Member Avatar for stereomatching
0
160
Member Avatar for FangedHavoc

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 …

0
63
Member Avatar for eternalblizzard

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 …

Member Avatar for eternalblizzard
1
163
Member Avatar for random12

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 …

Member Avatar for random12
0
130

The End.