132,726 Archived Topics
Remove Filter ![]() | |
Guys any clue what heuristics are and what they could be used for in web parsing ( data mining). Appreciate Software Development | |
I am really new to c++ just started today. This is my first real program (however useless it is) and i am stuck with one error. I am writing my code on code::blocks using mingGW on windows XP. My error is as following-invalid converion from 'const char*'to 'char'. my code … Software Development c++ | |
I am trying to run the following simple program which uses multithreading using pthreads. I compile it like: gcc -lpthread programName.c and it compiles fine. However, when I run it gives errors which I have pasted at the bottom of program. [code]#include<pthread.h> #include<stdio.h> void *thread_routine(void* arg) { printf("Inside newly created … Software Development c++ multithreading | |
So I always seem to encounter this error. I usually find some odd hackish fix for it but this time I'm having too much trouble. I'm basically trying to make a program which corrects words the user types in (similar to that of any modern phone). The function I'm posting … | |
Hello I want to implement a pr. queue with structs. My struct is: [CODE] struct Call { int CallNum; long CallTime; int CallLength; };[/CODE] This is a call center simulation application (of course if i can). According to algorithm, the agents should choose the call whose CallLength is shorter. I … | |
| |
Ok so ive written a console program which is great, and now i want to create a thread that makes a window (winAPI) and can commuunicate with the console window. Well to describe it properly, i would like the window thread to send predetermined text (by clicking buttons) to the … Software Development c++ | |
I am using Python and wxPython to attempt to make a 2d game. When w is pressed, the tiles (except the character) should move so it looks like you are moving. The problem is, when the key is pressed, nothing moves. I added a line of code(no longer there) to … | |
Hello All, Ii want to know how can i check whether the response from the server is inJSON format or XML format . Please let me know how to do this, | |
![]() | For example I have 4 sets of Coordinates [CODE] (1,1) (1,3) (3,3) (3,1)[/CODE] It's the out line of a Square Shape Is there a way I can find the list of sets of Coordinates on it's parameter? The expected out put should be: [CODE] (1,2) (2,1) (2,3) (3,2)[/CODE] and is … Software Development c++ |
I am going through the Tk/Tkinter tutorial and when I try to run the menubar program I get two windows instead of a menubar on one window. Here is the code: [CODE=Python] from tkinter import * from tkinter import ttk root = Tk() root.option_add('*tearOff', FALSE) win = Toplevel(root) menubar = … | |
Need some help here it seems to compile fine but crashes at runtime. Am I missing something here? [CODE] #include <iostream> #include <string> using namespace std; // player class class Player{ int *position; public: Player(); Player(int); ~Player(); void print_pos(){ cout << "player 1 is in position: " << *position << … Software Development c++ | |
Hello, Im trying to write a program which is computing surface area of a 3D geometry by using Newell Methods. Geometry data should be reading from a text file. The lines which has 3 columns point out coordinates of geometry's vertices. The lines which has 2 columns point out connectivities … Software Development file-system java java-swing | |
The following is an exercise for my class: [INDENT][COLOR="Green"]Redirect mouse device into a file. sudo cat /dev/input/mice > rawmouse.data Move the mouse a bit and then type CONTROL-C. Note that on some distro's you'll need to sudo to bypass device files' restricted permissions. Now, cat that file to the sound … Software Development shell-scripting ubuntu | |
hi! i want to make a program, that moves an object in vertical line 'till the program ends,but when it reaches the upper border, automatically appear in the lower border. i have this [CODE]from utalcanvas import * import time show() window_size(500,500) window_style( "Mi Ventana", "black") window_coordinates(0,0,1000,1000) circulo = create_filled_circle(500,20,50,"green") for … | |
Is there a better way to access the base class operator overload? I'm using casting, and it works just fine, just wondering if there is a better way. Is this bad/ugly code? [CODE]class StrategyKey { public: StrategyKey(){} ~StrategyKey(){} StrategyKey(const char* strA): str_strategy(strA) {} friend bool operator< (const StrategyKey& stratKeyA, const … Software Development c++ | |
I have table abc In taht I want to add colunm at run time. I have done some code but there is an error [CODE]SqlConnection cn = new SqlConnection() ; cn.ConnectionString = ""; cn.Open(); SqlCommand cmd = new SqlCommand("alter table abc add" + textBox1.Text.ToString() + "varchar(500)",cn); cmd.ExecuteNonQuery(); SqlCommand cm = … Software Development | |
i want to call there A's class constructor using "super" keyword how it is possible help me plz.....[code]class A {} class B extends A {} class C extends B { i want to call here A's class constructor using "super" keyword how it is possible help me plz..... } class … Software Development java | |
[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 … | |
![]() | `private static final Font FNT_GIVEN = new Font("SanSerif", Font.BOLD, 20);` I want to put the color for this font for example red, can someone help me??? I am working in awt. Software Development java ![]() |
Hey guys, Here's my problem: I developed some code that converts binary to characters and characters to binary. At first all went well (by first I mean on the good ol' console), but when i tried implementing a GUI, some weird stuff came up. When I try converting characters (strings … Software Development gui java java-swing | |
I need help with this program, I am new and i am loosing the battle. Write a program that contains a class that implements the days of the week. The program should be able to perform the following on an object of the class: 1. Set the day. 2. Print … Software Development c++ | |
i have problem about if else code in my program. i also have made many changing in this code but still i didn't get the result that i want. my program is about vending machine. here is the code: [CODE] Private Sub btnpepsi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) … Software Development vb.net | |
I've written a sales and inventory program in C# that makes use of SQL Server, because I've heard it functions well over LAN connections (haven't tried it yet). I've... let's say... hardwired the my connection string into the program. I have a notepad connection.ini file that has the connection string, … Software Development c# sql visual-studio wordpress | |
linked lists? I recently started learning about it and it is really confusing. What tutorial would you recommend? Software Development c++ | |
Hello, I am having a problem putting this Array's output in a single GUI window. When I receive the output it just shows the grades in individual GUI windows (IE Erik 98 [OK], Fred 76 [OK], etc). If I put the output outside the loop then it doesn't recognize grade[i]. … Software Development gui java java-swing | |
I need to make a project about the game of goose.. Can someone explain me how i get started, Dont know how i should move the goose in the game? Software Development vb.net | |
Hi guys, I am in desperate need of help. I'm not exactly sure how to fix this or how to pass contentpanes correctly. Here is my code for gameboard.java: [CODE]import javax.swing.*; public class GameBoard implements ActionListener { private int[][] winSlots = new int[][] { {0, 1, 2}, {3, 4, 5}, … Software Development gui java java-swing | |
Can anyone help me in parsing multipart foorm data.. Is there any third party lib or anyone has written some code??? waiting eagerly... Software Development c++ | |
I have some problems about promotion traits [code] template<typename T1, typename T2> class Promotion; template<bool C, typename Ta, typename Tb> class IfThenElse; template<typename Ta, typename Tb> class IfThenElse<true, Ta, Tb> { public : typedef Ta ResultT; }; template<typename Ta, typename Tb> class IfThenElse<false, Ta, Tb> { public : typedef Tb … | |
Hey guys, I'm looking for a way to obtain an SSD serial number and I'm not interested in the volume serial number. Thanks in advance, Jeff Software Development c++ | |
I have a grid of RadioButtons, and need some help in Check / Uncheck acording to data collected from a .txt file. The .txt file contains a list like this: A01,a B01,b C01,c A02,a B02,b C02,c I have set up in a grid formation RadioButtons, and named them A01,B01,C01,A02,B02,C02. I … Software Development vb.net | |
Dear All, Could someone can help me with this.... I need to extract file name example ABC-01.xls in to ABC-01 only what method i could use on this? Could anyone help me please!!! Thanks & Best Regards Software Development visual-basic | |
When I run it starts with a junk value in the first node. I can't get the getValue function to work properly either I get error that says to few arguments when I try to call it in main. Also the minValue and maxValue doesn't output anything and I tried … Software Development c++ linked-list | |
This is a mastermind game. I was trying to make sure that my twoD array was beinga ssigned right by printing it out real quick before i use it to draw a board in the console. For some reason im gettin these errors and i dont even have a clue … Software Development c++ visual-studio | |
Hello, I need to avoid loading images into a webBrowser control that I'm using in a C# project, but I'm not sure even if it's possible. I have read that it could be done implementing the IDispatch interface and overriding the Invoke method: [url]http://msdn.microsoft.com/en-us/library/aa770041%28VS.85%29.aspx#Controlling_Download_and_Execution[/url] But I'm not sure about how … Software Development c# | |
the program should check if all [U]even [/U]integers from [I]low [/I]to [I]high [/I]can be written as the sum of two prime numbers the lower limit [I]low [/I]will be greater than 2 the upper limit [I]high [/I]will not exceed 10000 assume both inputs for [I]low [/I]and [I]high [/I]are even if all … Software Development c++ | |
I saw a code that had <conio.h> and the whole code is working nice but this line seems to be the error. I know that this is old one and the .h format is replaced with using namespace but still I get an error. What is the problem? Maybe the … Software Development c++ visual-studio | |
Hi all. I have detected something that I can't explain, and hope someone can help me. I have 2 functions for allocating and de-allocating arrays: [CODE]char **c; void allocate() { char **c = new char*[1000]; for(int i = 0; i < 1000; i++) { char *g = new char[10000]; for(int … Software Development c++ | |
Hello I try to make one linked list to double linked list but i have some probems with this .Can somebody help me? This is yhe the linked list: [CODE]typedef struct ns { int data; struct ns *next; } node; node *list_add(node **p, int i) { node *n = (node … Software Development c++ data-structure linked-list | |
I am having a compiler error that causes a screen to pop up that says break or continue. I know it is something wrong with my program but I am at a lost as to what it is. I was just trying to test the first function as you can … Software Development c++ linked-list | |
[CODE]public partial class goruntule : Form { SqlDataAdapter da = null; DataSet ds = null; SqlCommandBuilder cmdBuilder; DataSet changes; public goruntule() { InitializeComponent(); } private void goruntule_Load(object sender, EventArgs e) { label1.Text = PERSONEL_TAKIP.main_form.goruntulenecek_tablo; DataTable dtusers = new DataTable(); da = new SqlDataAdapter("SELECT * FROM " + PERSONEL_TAKIP.main_form.goruntulenecek_tablo, PERSONEL_TAKIP.main_form.myConnection); da.Fill(ds); … Software Development dataset visual-studio | |
I haven't programmed in sometime and am rusty. I was never an expert either. I know my code has a simple error but I can't figure out what it is. I was practicing coding when I couldn't determine why the class constructor wasn't working as intended. #include <iostream> using std::cout; … Software Development c++ | |
hi everyone where did i go wrong with the {} please help. import javax.swing.JFrame; // import JFrame class import javax.swing.JLabel; // import JLabel class import javax.swing.JPanel; // import JPanel class import java.awt.Font; // import awt Font class import javax.swing.border.Border; // import Border interface import javax.swing.BorderFactory; // import BorderFactory class import … Software Development java java-swing user-interface | |
i see this code in this thread, i want to know how to get input by user or from file in this code. for example this list how to use it as input in this code. i don't know how to modify and how to use it. Daniweb thread reference … Software Development c++ | |
[code=c++] int main() { Ferma *f[20]; int i=0; int e=0; do { cout<<"Alegeti optiunea:\n"; cout<<"1.rata\n" <<"2.gaina\n" <<"3.porc\n" <<"4.vaca\n" <<"0.iesire\n"; cin>>e; switch(e) { case 1: f[i]=new Pasari("rata"); //error at this kind of assignement i++; break; case 2: f[i]=new Pasari("gaina"); i++; break; case 3: f[i]=new Mamifere("porc"); i++; break; case 4: f[i]=new Mamifere("vaca"); … Software Development c++ | |
Hello forum. I cant figure out how to overload the '+' operator or maybe theres another error? Im posting from phone so excuse the slopyness. Thanks! [CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; class Ferma { public: static int nr_rate; static int nr_gaini; static int nr_porci; static int … | |
Been a while since I had a problem; so I guess it's about time. I've written a .dll that has a few methods, and a few variables. It has a method called Create(int x, int y) that will place a new 4 square formation onto the form in the project … Software Development |
The End.