199,114 Archived Topics
Remove Filter ![]() | |
This is my code fo [code] void CallhistoryWindow::on_button_buffer1() { m_TextView.set_buffer(m_refTextBuffer1); } void CallhistoryWindow::on_button_buffer2() { m_TextView.set_buffer(m_refTextBuffer2); } [/code] if I already call the on_button_buffer1() function the m_TextView is already set the buffer m_refTextBuffer1. But if I already change the m_refTextBuffer1(the textfile) value the m_TextView wont change anymore you may need to … | |
Hello guys.. I'd like someone to explain to me how to implement some functions in a program the simplest way.. I've an assignment.. and we only practiced the functions twice.. so am not good at it at all... can someone provide simple examples so that i can understand the full … | |
Hey: After messing around with Python for some time for large numerical calculations, I realized that Python is just too slow. It's great for smaller numbers, not to mention easy. However, once I start getting into numbers above around five hundred digits in size, it slows down drastically. So, I've … | |
Hi, I am now writing a simple program for testing file I/O and an advanced vector class. Unfortunately I have encountered some confusing problems. My code is as following: [CODE] #include <cmath> #include <string> #include <iostream> #include <sstream> #include <fstream> using namespace std; class mVect { private: // NO PRIVATE … | |
Design a class called BubbleSort that is similar to the class SelectionSort. The class BubbleSort will be used in the same way as the class SelectionSort, but it will use the bubble sort algorithm, which is [CODE=syntax] for(int i = 0; i < a.length-1; i++) if(a[i]>a[i+1]) interchange the values of … | |
I have a problem about memory allocated, I read through my code and think threre is no problem, but it did happens, it very confusing me ...., here is my code: the problem lies in a[] when the Class Grid wants to use it. [code=cplusplus]#include <iostream> using namespace std; typedef … | |
Hello to all, i have code karatsuba but it is not compute correctly after 6 decimal digits. [CODE] #include <iostream> #include <vector> #include <algorithm> #include <limits> #include <cmath> #include <cctype> // ================================================ using namespace std; typedef unsigned long ulong; void userInput(ulong&, ulong&); int numberLength(ulong); ulong leftSplit(ulong, int); ulong rightSplit(ulong, int); … | |
I'm creating my class for mysql in which i have difficulty dealing with the parameters of which to use with prefix '@param' or '?param' or whatever it is. I need your help guys. I have here my stored procedure [code] DELIMITER $$ DROP PROCEDURE IF EXISTS `davidssalon`.`Customer_SearchName`$$ CREATE DEFINER=`root`@`%` PROCEDURE … | |
im working on something and i need the user to be able to enter times that things start and end. i need to know how i can store that and then compare them later. they need to be able to enter like 12:45. i was thinking i could somehow ignore … | |
Hi, I'm new to C# and I have successfully created an application that stores personal data in access database, however I want to include a picture which is in a picturebox, to save it in the table, along with other information I have already saved in essence, I want to … | |
I am trying to take a a file of fixed size and use seekp to jump to a particular spot in the file, write around 100 bytes or so but only to that part of the file while still keeping the size of the total file the same and not … | |
I need a complete source code of ONLINE EXAMINATION SYSTEM in JSP+ORACLE. Can sombody help me? my e-mail id : <EMAIL SNIPPED> | |
Hello I am sure this is well within most peoples capability on this site and am a little embarassed posting this but alas here goes. I am using Crystal reports and I have only just remembered I can use VB code in Crystal. I have a report based on 3 … | |
Just wanted to get a definition for round robin algorithm. Thank you. | |
Hello, I need to autocomplete for a textbox. If i type 'a" in textbox means, it must show the dropdown list showing all words starting with a. Like that for all the alphabets. It must show the words based on the user typed words before. Suppose when the user first … | |
well i am working on program which inputs : 1. student record (name , semester , class , branch , roll no ) 2. the various subjects on which the exam to be held 3. the date on which the subject s exam to be held the data which is … | |
[code=ruby] i am new person to ruby.can any one tell me what is ruby? what is ruby purpose?.why it is used?. plz tell me reference sites [/code] | |
say you have [ICODE]struct Node{ int item; Node *next; } int main() { Node *p; p= new Node; p-> item = 100; p-> next = NULL; }[/ICODE] is there a way to make it that, the p-> item becomes whatever the user inputs? | |
I have a few minor problems with this program: 1. My selectionSort method - it sorted Z - A, not A - Z. 2. Since I used a string array, I'm running into problems with "operator > cannot be applied" and "incompatible types". 3. Return "search term not found" in … | |
[CODE] #include <iomanip> #include <iostream> #include <fstream> #include <string> using namespace std; int main () { int i,count(0),n; char strg1[50],strg2[2]; char *ptr1(strg1), *ptr2(strg2); cout << "Please input the string" << endl; cin >> strg1; cout << "Please input the character" << endl; cin>> strg2; while ((ptr1=strstr(ptr1,ptr2)) != NULL) { count++; … | |
this is coming off a program that collects information and saves it after every command. I have opened my file successfully cause thats how it reads the client. the problem is saving the data. Does this code look right to everybody??? I am running in C and very very basic. … | |
hai, i am a beginner,,,,i want to know,how to install my project into client system.i want to know it in detai | |
I am developing i a c-editor which can run graphics on VISTA and can use minimum system RAM and processes. I need C help file database wich can be linked to my software | |
Hi, Don't hate me cuz I am a NUB. This may be very basic but I am more basic when it comes to python I simply need to add some variables together some come from a database and some are calculated. but I am getting a very frustrating error [code]TypeError: … | |
I have classes A1, A2, B, and C. A2 inherits from A1. C inherits from A2 and B, and its constructor initializes all B, A2, and A1 variables. As a tree, it looks like this: [CODE] C / \ B A2 | A1[/CODE] I have a function [I]Foo [/I]that takes … | |
hi, im currently revising linked lists for my exams - but i cant quite understand the reasoning behind using current or current.next in the following examples in the example below we are adding to the back of a linked list [CODE]void addToBack(int value) { // make a new element Element … | |
first off let me explain what is going on. i am creating a site that uses a shared DB and every customer that we have will have there own table. they can have other login's which will within there company table (employee logins). How would you go about and check … | |
I have started with ASP.Net just 1 month. Right now, my project may implement the control that users can recovery their password by answering question. We all know that Visual Studio or Visual Web Developer has a control name Password Recovery Control, just drag and drop. So far I have … | |
Hi, are there some libraries i can use (in MS windows) for stuff like, obtaining info from a website? i read something about sockets once, but im not sure what it is (yes, i googled it :) ) Or would be easier/better, as some suggest, to learn java or python? … | |
I thought I was finished with this program but now I can’t find a way to make it quit. The loop continues even when I enter the terminating character. I’ll post he whole thing. The answer may be simple but I'm just not seeing it. [code] do{ do{ system("cls"); printf("Enter … | |
Hey all! I use the folowing class in my program to draw lines. However I also need to be able to delete them. So I need to add a mouselistener to the lines but I don't know how and whereto do this.. Can anybody help me with this? Thanks!! [code] … | |
I am reading a .Csv file and am having problems trying to get the information I want, set up the way I want. Here is where my problem comes in: [code] String[] info = beanInfo.split("," , 3); for (String str : info) { ip = info[0]; hostname = info[1]; ping … | |
Hello! I have a DB setup which simplified looks like this: PRODUCT(id, owner_id) OWNER(id) What I want to do is to produce a list of how many products each owner has, and then sort it in some way, all in a single query. How do I go about this? Thanks! | |
Hi I have a page which has a list displaying 5 images horizontally. Associated with each of these images there is some hidden text which is loaded into a display area by javascript when the image is clicked, at the same time an image that looks like a pointer is … | |
I am new to c++ but have been using java for a while now. I am using Microsoft Visual c++ and when I try to build it I get the following error: Linking... Airline Project.obj : error LNK2019: unresolved external symbol "public: __thiscall FlightManager::FlightManager(void)" (??0FlightManager@@QAE@XZ) referenced in function _wmain F:\Documents\Assignments\CA212\Airline … | |
Hello, I'm reading a chapter about virtual function. So what I know is that virtual function is equal to abstract functions. It is enough to declare one function virtual to make the class into an abstract class. E.g. [CODE=cpp] class Base { public: Base(); virtual set(); } [/CODE] Now I'm … | |
hey all,,, i've been trying to make my own setw function that will do the same jop of setw,, this is my first year in college i study CIS in Jordan,,, so, i made this code but6 i still have problims with float numbers, it seems like this code work … | |
Hi All, can any of u explain the order of constructors ,how it will behaves when order of derived classes as like present in attachment | |
Anyone know how to read the second line from a csv file using PHP? I need the read the second line from the csv file and import into mysql | |
Hi Folks, I have a textbox which looks out for keypresses when it is in focus. For example, when the ";" key is pressed, a few functions are called. THe problem is, is that in the KeyPress function for the textbox, i have textbox1.Text = ""; to clear it however … | |
Hey I am working on a database final project and I am almost done but it would be awesome if some database guru could look over my erd and my sql code and tell me if anything seems amiss. for the project we just had to design a database with … | |
I try to program DirectX in Visual C++ 2008. I need at least a win32 working window. I have a BIG problem compiling win32. First, I created a win32 project (a simple Win32 Project - not empty). I don’t modify any code compile when compiler says: Cannot find windows.h. So … | |
Hi All, I want to pass an id via querystring from a hyperlink in a datagrid. How can I do it? I wrote the following, but got an error "The server tag is not well formed" [code] <asp:HyperLink [B]NavigateUrl="~/users/matrix.aspx?Exercise=<%# DataBinder.Eval(Container.DataItem,"hid")%>"[/B] Text="Link" id = "lnkLink" runat="server"></asp:HyperLink> [/code] Please help! Thanks in … | |
I have a combobox that has state abbreviations. It is filled from a dataset table, which is read in from an xml file. The combo box populates just fine. I want the selected value and text to change when I load a record from an accounts table in the dataset. … | |
![]() | Hi, I'm working on a C++ project and in a menu I want the user to choose 1, 2, 3 etc... integer number. If they input a float i.e. 1.2 I want the code to tell them they've entered something invalid, rather than just rounding it down to 1. how … |
HI, Today is my first day at this wonderful forum.I wanted to ask How to : Make a class globally accessible to all the classes ?I come from the C back ground so I am thinking like this -- I want to use the class (say classGlobal) from the other … | |
Hi I created a simple code here just to play C# around. It has 3 buttons and 1 panel. If you click on the 2nd & 3rd button the panel height changes. Is that also possible to change the color? For example : If I click on the 2nd button, … | |
I've got this strange problem, I created an instance called structure, I made a function which return an object of this type. Just before returning, I print it, it gives me the right object. Now when I collect it in 'main' and print it, it becomes 'None'. If someone can … | |
How does Java Language control the copy item of acrobat program ? |
The End.