Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
81% Quality Score
Upvotes Received
10
Posts with Upvotes
9
Upvoting Members
6
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
0 Endorsements
Ranked #914
~17.3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for thecoolman5

hello, I am writing a variable equation solver. Now to get it to work, i just need your calculator to be able to detect random strings instead of numbers. and when it does, i need to assign a random number to that string and have the calculator solve the problem …

Member Avatar for thecoolman5
0
219
Member Avatar for JordanHam

I have a basic questions. I have written a program in C++ and I would like to create a GUI for it. I have a book Microsoft Visual Basic C++.net that has a great tutorial, but its in clr/c++. Is it possible to program a GUI in this language in …

Member Avatar for drkybelk
0
191
Member Avatar for watery87

Hello, would like to ask about this problem im facing. [code] #include <cstdlib> #include <iostream> #include <fstream> #include <ios> #include <string> #include <string.h> #include <vector> #include <sstream> #include <algorithm> #define MAX_MSG 30 using namespace std; vector<UserInit> ReadUsersInitial() { fstream file ("Users_initial.txt"); FILE *file1 = fopen("Users_initial.txt", "r"); string tempFile; if (file.good()) …

Member Avatar for drkybelk
0
124
Member Avatar for sadsdw

Hello everyone, I'm trying to declare a 2-dimension (A[][]) dynamic matrix but I'm having problems ... The A's elements need to be FLOAT. The size of lines and columns are both vectorX.size(). Could you help me please? One of error's message is: "cannot convert `double' to `float**' in initialization" [CODE] …

Member Avatar for sadsdw
0
106
Member Avatar for sofiastrange

Hello everyone, i have written a program in c++ using Microsoft visual studio which runs perfectly, at least to my satisfaction. However i thought it would be nice to create a graphical user interface to it, and i have used Ms Visual C++ to design one and Visual c++ can …

Member Avatar for drkybelk
0
271
Member Avatar for kutuup

I've trawled the internet searchiing for an explaination on how to do this. I'm working on an assignment and we are told to "transmit a whole object to the server". As far as I know, the send function of winsock2 only allows you to send data of type char, so …

Member Avatar for kutuup
0
485
Member Avatar for Jimmyteoh

[CODE=java]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Plane extends JApplet implements ActionListener { JTextField input; JLabel prompt1, prompt2; JButton yesButton, noButton; int section, seats[], smoking; int nonsmoking, people; public void init() { input = new JTextField( 4 ); input.addActionListener( this ); prompt1 = new JLabel( "Please type 1 for …

Member Avatar for Nick Evan
0
209
Member Avatar for sachintha81

I have done pretty much all my programming using C# and very much a newbie to C++. However now I have to convert to C++ and is finding it a bit difficult. For example, I wrote a pretty simple program using C# to acquire a RegistryKey, then using a recursive …

Member Avatar for drkybelk
0
368
Member Avatar for Billy D

[CODE]string currentUser() { string user; ofstream outf("CurrentUser.dat", ios::trunc); system("whoami >> CurrentUser.dat"); outf.close(); ifstream inf("CurrentUser.dat"); inf >> user; return user; }[/CODE] This is a function that gets the name of the current active user. It creates a data file, with the contents being the username. The problem is, to create a …

Member Avatar for TrustyTony
0
179
Member Avatar for miguelsan

Hello I have a question regarding the function length(). I want to find out the length of the string that is inputted by the user. When I use the length() function it only counts the characters from the first word. Can somebody please take a look at my code and …

Member Avatar for Narue
0
164
Member Avatar for programing

plz i cant't correct the errors .. can any one correct this [CODE] #include<iostream.h> #define size 100 struct stack { int item [size]; int top=0 ; }; class m{ bool isempty(stack s) { if (s.top==-1) return true ; else return false ;} bool isfull(stack s); } return (s.top==size-1);} int count …

Member Avatar for programing
0
135
Member Avatar for iamthesgt

In my current project (homework), I am storing a pair of values in a map. The ID is an integer, and the value is a string (name of a movie) and an integer (rating of the movie on a 1-5 scale). I need to get the elements into the map …

Member Avatar for drkybelk
0
217
Member Avatar for jowana

Hello, I have a line on my image and i want to find the maximim grey-level value on that line . so i need to scan the line and pick the pixel with the highest value how can I do this? should I calculat the gradient magnitude ? Thanks in …

Member Avatar for jowana
0
119
Member Avatar for gomezfx

Hi, I have a question about generating a 1kHz sine wave. First of all, we can't use the sin function so I just made a function that evaluates sin at some point... [CODE]int generate_sin(int t); { int sin; sin = t - ((t^3)/(3*2*1)) + ((t^5)/(5*4*3*2*1)); return sin; }[/CODE] Now, this …

Member Avatar for drkybelk
0
2K
Member Avatar for chess2009

[CODE] Str Str:: operator+(const Str & append) const { unsigned i,j; for(i=0,j=0 ; i<append.used; i++ ,j++) temp[i]=append.data[j]; for(j=0 ; i<used; i++, j++) temp[i]=data[j]; temp[i]='\0'; } [/CODE] used and append.used are the length of strigs. and data is pointer to array. Hi I am trying to concatenate two strings in the …

Member Avatar for jonsca
0
112
Member Avatar for IndianaRonaldo

Im looking for some real c++ programming challenge...please post the most difficult you have encountered yourself....thanks in advance....

Member Avatar for mrnutty
0
102
Member Avatar for Howdydoody

I have this program and im trying to get the addVertex method to access the list within the class and return the object "Vertex" whenever i use the brackets. Everything works fine but i cant modify the structure now when i use the brackets. I get an error dealing with …

Member Avatar for Howdydoody
0
107
Member Avatar for NinjaLink

Is there a way to create a C++ program to rewrite a query in an optimal form without the use of a database such as storing information in arrays. If so, how? What can I do to implement this. Rewrite SELECT EMPOYEE.EMPNO, POSITION FROM EMPLOYEE E, JOBHISTORY J WHERE E.EMPNO …

Member Avatar for drkybelk
0
117
Member Avatar for NvIs

I'm trying to learn how to sort arrays. I tried to learn select sort, but I couldn't code it right... so I tried the easiest, bubble sorting and kind of got the hang of it! But with a few problems and questions. I'm trying to print an array with random …

Member Avatar for NvIs
0
119
Member Avatar for livinFuture

I've been scouring the internet and my textbooks and haven't found any good explanations about how to incorporate hexadecimal numbers into my C++ code. I am currently working on a program that acts as a simulated computer environment to run a simulated machine language in the console a maximum of …

Member Avatar for WaltP
0
345
Member Avatar for jowana

Hello, I have a segmented region in an image, it is not rectilinear. Just a random shape without right angles , much like a circule. I want to calculate the mean on that shape. so I can plot the mean as a starting poiny for drawing a vector. I have …

Member Avatar for drkybelk
0
109
Member Avatar for kumarmpk4u

hello all, i am working on a project where a 16 bit code has to be changed to a 32 bit code. it is a mfc multiple document interface. when i try to compile a dll file i get a error "fatel error c1083: Connot open pre compiled header file". …

Member Avatar for drkybelk
0
485
Member Avatar for bleedsgreen33

This is my first time with link lists. I have gotten it to pull the first bit of information into the first node, and it prints out fine after that into the console window. When I try to add additional lists and link them, and then try to print them …

Member Avatar for drkybelk
0
84
Member Avatar for mclemon

Hi there! I'm writing a program which has lots of vectors in it...I've named these vectors sequentially - ie vector1, vector2, vector3 etc. What I was wondering is, is there a way of displaying the contents of these vectors without manually writing cout << vector1[0] etc? I know this doesn't …

Member Avatar for vijayan121
0
98
Member Avatar for duliduli556

hi, could anyone please point me towards a good link or post a code that helps explain how these could be implemented? thanks a lot

Member Avatar for jonsca
0
78
Member Avatar for jackmaverick1

I've got a simple question but I can't seem to find the answer in any of my searchs. I know this is very basic and probably will require 1-3 sentences but, when I use a pointer to pass it by reference to a function, will it use the actual location …

Member Avatar for gerard4143
0
135
Member Avatar for dospy

i know you cannot understand anything from the title and i am sorry but i don't know how to say it because it's a little complicated, so i won't give details of my problem, i hope you can understand from the code classB.h: [CODE] #ifndef CLASSB_H #define CLASSB_H class MainClass; …

Member Avatar for dospy
0
175
Member Avatar for Sc@recrow

As part of an assignment, we have to write a Quicksort algorithm, and then verify it's time complexity. I am trying to time how long it takes to run the quickSort function, but it keeps returning 0. Here is a snippet of the code [CODE] . . #include <time.h> . …

Member Avatar for rubberman
0
128
Member Avatar for opawix

#include<iostream> using namespace std; int main() { int i=119; while(i>=3){ cout<<" "<<i; i--; } system("pause"); return 0; } cout of this is counting 119 decrement til 3 but output should this: 119 94 72 53 37 24 14 7 3 could any1 help? thanks a lot guys!:D

Member Avatar for opawix
0
85
Member Avatar for loveranjan

[CODE=C] #include <cstdlib> #include <iostream> #include <conio.h> #include <new> using namespace std; class Array { struct node { char *str; int item; struct node *next; }*p; public : Array() { p = NULL; } ~Array() { node *s; if(p == NULL) return; while(p != NULL) { s = p->next; delete …

Member Avatar for drkybelk
0
195