- Upvotes Received
- 10
- Posts with Upvotes
- 9
- Upvoting Members
- 6
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re:
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 … |
|
Re:
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 … |
|
Re:
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()) … |
|
Re:
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] … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
[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 … |
|
Re:
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 … |
|
Re:
[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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
[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 … |
|
Re:
Im looking for some real c++ programming challenge...please post the most difficult you have encountered yourself....thanks in advance.... |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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". … |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 |
|
Re:
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 … |
|
Re:
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; … |
|
Re:
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> . … |
|
Re:
#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 |
|
Re:
[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 … |