199,114 Archived Topics
Remove Filter ![]() | |
I have to write a program that would test the member function in a loop to show that the tick member function works correctly. it needs to test 1. incrementing into the next minute. 2. incrementing into the next hour 3. incrementing into the next day. heres what i have … | |
Hi, i want to copy a string from a register (SI), into another register (DI). But, before copying i need to scan the string for blanc space. If there is more than 1 blanc spaces (SI), i need to replace all blanc spaces with one space and put in DI. … | |
Hi, I am trying to make a script that automatically votes in this poll that is a competition. It is located [URL="here"]http://kube93.com/pages/promo_page.html?feed=227429&article=4470761[/URL] to start off there was no email field required so through some experimentation and dissection of there code I found everytime I loaded [url]http://kube93.com/cc-common/polling_tool/a.php?poll_id=99878&redirect=/pages/promo_page.html?feed=227429&article=4470761&optionID=486193[/url] my school would get … | |
Hi everyone. I decided to try and learn C++ on my own and i have ran into a problem and i just need slight kick in the butt. :) I am just learning structures and i am practicing using some of the examples at the end of the chapter in … | |
I understand how to get text out of a textbox in visual C++ but what I'm after is how to break the text up at each space and put those parts into an array. For example I have a group of numbers: 2 5 9 10 44 ect and I … | |
i'm trying to implement my own edit menu using Tkinter, my cut and copy methods,... seems to work fine but I'm having allot of trouble getting my paste method to work. will someone please help? (((its kinda ugly i know, but i'm still new to programming and i'm more focused … | |
Hi I have a program that finds duplicate files and lists them in a Jtable. I have modified the default Table Renderer to change the colour of the cells but I want them to have more than two colours. Say Blue for the first set of say 5 files all … | |
Hello, In real life, my name is Bill G.; "inumbris" is a descriptive handle that describes my status relative to most programming and IT matters (The latin scholars among you will maybe have a chuckle). I live in Idaho, USA and am a retired programmer mostly unaquainted with the modern … | |
My input text file contains this: -4.1 -2.2 -0.5 1.2 4.6 5.1 2.1 0.2 -3.6 -4.1 0.2 0.5 2.2 4.1 -0.2 -1.2 -3.3 -4.6 -5.0 -2.2 -1.1 0.8 3.2 -0.1 -4.8 And I need to average and do some other functions with these numbers. However I can't get started, or … | |
i wondered if this is possible : you will create a windows service application and it will collect information from a certain type of application. let's say if the user is using ms word, i want to keep trace of the user on that like the typed words, clicked buttons … | |
Basically this code serves to take in an input file and convert all the "<" and ">" into "<" and ">" respectively. This works however, I cannot get it to convert the rest of the .txt file into the output file. Right now, it just works with the very first … | |
I am searching for the topic, and I don't know whrere to start. Pease advise. Your assistance is greatly apprecieated. Thanks. Kevin | |
Hi all i m facing a problem in my project. I want to add all the rows of a particular column(based on name of the column) in the combo box without using data bindings wizard. i need it through coding Any help plz | |
I use Turbo C++ explorer i need to get file name from a TFileListBox which is an AnsiString, and use it in CreateProcess but CreateProcess Requires an "LPCTSTR" or "LPTSTR" I would like to convert the ansistring to LPTSTR Please help thankx in advance | |
I'm just asking for anyone who knows anywhere to get list of inbuilt wx.ID like wx.ID_CLOSE etc (HTML/PDF), because I dont want to use Id while there is built one. Also can I use menu simiral to something like GetId() Method?? Thanks | |
Why wont this delete the files in the arraylist. i checked the arraylist and the files are there. i even added a "\\" to the files and still nothing. i dont get any errors. [code] private void fileDelte () { for (int i =0; i<Files2Delete.size(); i++) { File f = … | |
i'm beginner in c++ and i get a problem the problem is error C2065: 'radius' : undeclared identifier and the program [code=cplusplus] # include <iostream> using namespace std; class circle { public: void setRadius (double r) { [COLOR="Red"][B]-[/B][/COLOR] radius = r; [COLOR="Green"] //here the problem and i don't know why … | |
Hi, It has been days that I have been working a simple wizard where users can add nodes as typed in BOLD in a treeview control : When the user has finished entering data my treview looks like this : [B]Is this the first time you are visiting DANIWEB ? … | |
Hi, i'm having a little trouble with my Zeller's Algorithm problem. Everything seems to work fine unless the year is 1600, 1700, 1800, ect. I've been trying to figure out where i went wrong but to no avail. I'd appreciate any advice. Thanks. [code] #include <iostream> #include <iomanip> using namespace … | |
I have a base class called "ModelFile" which I derive several types of 3D model file classes from. Many of these types of files are just a set of points, so in the base class I have a vector<Point> member. Some of the derived file classes also have vector<Triangle> members. … | |
Hello, I am new to C++ and am not currently in a class teaching it. I am wondering well, basically, WHAT OpenGL is, how to operate it, a direct link of how to get it, and maybe some example code of where to get it? If someone could tell me … | |
Hi there I currently have project in school. In the beginning it was supposed to just get data from database and have some settings available. But recently I got 2 more co-workers and they should participate by adding some more functionality. That is when I started to make the page … | |
Sorry , Newbie here i have no clue on how to do "Write a complete C program to read twenty (20) integer numbers. Then count and display the number of even and odd numbers among the twenty (20) integers read. Use a while loop to perform the repetition task." is … | |
Say you have a list of .wav files in a particular directory tree, and say you have another pile of .phr files that may or may not be in the same directory tree. The .phr files contain in text the names one or more .wav files. And you need to … | |
i want to convert a string to an integer value... for example :: if there is a string called "Guy" G=7; // in the alpherbert G is = 7 u=21; y=24; i want the out put to be as >> 7 21 24 can some one plzz help me to … | |
I've been reading an article but the code is written in C language which I don't get at all... The code is: [CODE]void traverse(Tptr p) { if (!p) return; traverse(p->lokid); if (p->splitchar) traverse(p->eqkid); else printf("%s/n", (char *) p->eqkid); traverse(p->hikid); [/CODE] Someone please translate it to python... | |
I have a sort of complex query to write and I don't know where to start. Basically, there are list and detail pages of candidate answers on a site. There are readers assigned to certain candidates. Is there a way to display a list page showing [U]only[/U] the candidates assigned … | |
Hello all, I am trying to templatize a class with a Typelist. Until here everything good. But I cannoyt create a Typelist to define the templated class. The following model reproduces the problem: [code] template< class TL > class A { A(){} }; int main(void){ typedef Loki::DefaultSPStorage< std::vector<int> > AStorage; … | |
hey i was wondering if someone could help me with this problem. It deals with the hanoi puzzle and i did the code but the output isnt correct and ii cant figure out why can someone help? heres my code [code] #include<iostream> using namespace std; void towers_of_hanoi(int height, int from, … | |
I'm trying to use the createprocess function to start an xsession, but so far I've been unsuccessful. Here is the code I'm trying to use: [CODE] _tcscpy(tszCommandLine, _T("C:\\Program Files\\Hummingbird\\Connectivity\\12.00\\Exceed\\Xstart.exe C:\\Documents and Settings\\username\\Application Data\\Hummingbird\\Connectivity\\12.00\\Profile\\XSW3.xs")); CreateProcess(NULL, tszCommandLine, NULL, NULL, FALSE, NULL, NULL, NULL, &si, &pi); [/CODE] If I try to make the … | |
Hi everybody, there's a question I would ask about php functions. I would like to know if it is possible to have optional variable in functions. Let's say, for instance, that I have: [CODE]function my_fun($a,$b,$c){ various stuff }[/CODE] In some cases I would recall the function, inputting values for "a","b" … | |
Hi all. I am playing around with [URL="http://www.gnu.org/software/libc/manual/html_node/Reading_002fClosing-Directory.html#Reading_002fClosing-Directory"]this[/URL] and [URL="http://www.daniweb.com/code/snippet579.html"]this[/URL] code snippet by Ancient Dragon. I didn't want to copy-paste so I came out with various simple attempts, the last of which looks like this: [CODE=C++]#include <iostream> #include <unistd.h> #include <dirent.h> #include <vector> #include <algorithm> using namespace std; int main(int … | |
usually we create a url with parameters and values and send it via ajax to not loading page. Is there a way to not send variables in the url [B]BUT [/B]using hidden variables?? I have a problem in my website that doesn't permit me to send variable in url, so … | |
I am kind of new to JAVA and I am trying to hide a user's input (such as when the user types a password). I am not using any type of GUI just running my small programs directly in the UNIX Terminal. Is this possible to do simply, unfortunately I … | |
i'm using vb.net 2005 express + mysql connector to connect to mysql database. i want to save image into mysql database. so i've created a table with img field as longblob. to save the image, first i convert it into byte() and then insert into the table. the problem is … | |
[code=cplusplus] // SPECIFICATION FILE (sList.h) // This file gives the specification of a sorted ADT // The list components are maintained in ascending order of value //****************************************************************** #ifndef SLIST_H #define SLIST_H const int MAX_LENGTH = 50;// Maximum possible number of components needed typedef int ItemType; // Type of each component … | |
Hello to all i have two directories at my webserver 1st = old-pictures 2nd = new-pictures i want to move every file individually to the 2nd directory with the help of php, can anyone help me in this problem thanks shanee | |
Hi, I have a Windows form bound to a DataTable through a BindingSource. When I call EndEdit on this BindingSource, it does not always change DataTable to show the modifications, and calling GetChanges on the DataSet returns null. Here's the situation in more detail - I have a DataSet, and … | |
Hi guys, I need a command on solaris 10 to show how much cpu is bein used in % terms but more specific than sar i need it down to 0.0% if that makes sense. Basically im tryin to find out how much cpu is being used say 25.5% and … | |
HI Guys Below coding give me an exception [COLOR="Red"]cannot bind to data table with no name[/COLOR] Belwo I mention coding part I wrote [CODE] private void textBox1_TextChanged(object sender, EventArgs e) { DataView Dv = new DataView(); DataTable D1 = new DataTable("Test"); D1 = (DataTable)dataGridView1.DataSource; Dv.Table = D1; Dv.RowFilter = "SHOP_CODE … | |
hello there im new in this forum any way im a junior programmer at our company i have a little prolem in accessing indexes of the fox tables any other way in accessing it in OBDC or in code. I use linking in access 2003 | |
Hey, I need help getting this program to run. This is what I'm trying to do. a) set and store the first name only b) set and store the last name only c) store and set the middle name d) check to see if a given first name is the … | |
I am new to C++ although I have done intermediate java programming. A couple of months ago I bought a book called [I]The C++ Programming Language; Third Edition[/I] by Bjarne Stroustrup. I am beginning to think that was a mistake because it is a little over my head. I was … | |
ive been slaving over this code and i would appreciate if you could help me see the errors that are in this program. this is a program that i have made with functions and switch statements the goal is to make a program that will be a 'geometry calculator' and … | |
Hi, I am trying to create xl file using pyExcelerator in django. response = HttpResponse( mimetype='application/vnd.ms-excel') response['Content-Disposition'] = 'attachment; filename=output.xls' workbook = Workbook() worksheet = workbook.add_sheet('My Test Sheet') worksheet.write(0,0, 'Company', font_style('left', 1, 'red')) worksheet.write(1,1, 'Hello World!', font_style('left', 1, 'black')) workbook.save() return response The problem here is I am not able … | |
Hello I [B]have[/B] to learn C++ and how to code GUIs (for a new programming language). I need to be able to learn all this within a month. I have a little bit of experience (tiny bit of PERL, and tiny bit of Python... also a tiny bit of CSS … | |
Hi @ all: I've been looking for an ODBC-Driver for Filemaker. I've searched the web for hours, but i always found Trials of ODBC-Drivers, and that Trials were only for MAC OS. In an other forum, people where talking about a DLL, called "fmfmp50.dll", which should be an ODBC-Driver, but … | |
Hey guys, well my question is i've seen examples of classes being to create like a function. But for example i saw someone made for a socket it was something along the lines of this: pySocket <host> <port> but i'm confused on how to create something like that. To get … | |
Hi to all game programmers :icon_cool: I want to implement the following: Short description: [B]A* Star for partitioned space combined with an adaptive partitioning in 3D.[/B] Detailed description: A. Assume that in the 3D space I have an Object (myMovingObject) that I want to it to move from one initial … | |
I was looking at some statistical evaluations of a dice roll and stumbled onto this strange result: [code=python]import random # faces of a dice dice = [1, 2, 3, 4, 5, 6] rolls = [] for k in range(3): random.shuffle(dice) #test print dice rolls.append(dice) # test print rolls """ my … |
The End.