132,726 Archived Topics
Remove Filter ![]() | |
Hello There, I am currently making a small game in c++ and Qt. In the game, an npc call's the Wander() function which makes it randomly wander around. However, only one of these npc's can call the Wander() function at any one time - Is there a way around this? … | |
Hi, Im new in VB.Net. im having trouble with filling the datagridview with data. the program seems to skip the part where i declare the **datagridview datasouce** and only executes until **da.fill(dt)**. here is my code, hope you could help me. thanks in advance. Imports System.Data.SqlClient Public Class Form1 Dim … Software Development dataset open-source vb.net | |
hi dears.. i have really big problem with save values of checkedlistbox in one field but i can't do it..what can i do?? is it a database or code problem?? i want the data save like this: 1;2;3 for example..is that possible?? plzzz help.. Software Development vb.net | |
Hello I have this problem where my text file is not read in properly to the linked list. It spits out only zeroes. Here is the code I have written. Thanks. include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; struct widget { double R; double S; int … Software Development c++ linked-list | |
I have made a code and when I compile it I recieve the error saying "/tmp/cc9UNQMJ.o:in function bulbasaur: pokemon.c(.text+0x1074):undefined refrence to print collect2:ld returned 1 exit status" anyone have any idea what this could mean? (i will place full code after work) Software Development c | |
#include <iostream> #include <iomanip> #include <fstream> #include "groupProj.h" using namespace std; const char Avail = '#'; const char Taken = '*'; const int r = 15; const int c = 30; char SEATS[r][c]; int main() { // Declarations for main ifstream inputPrices; double seatPrices[15]; int row; int column; double cost; … Software Development c++ | |
//Bubble.h #include <iostream> #include <fstream> #include <cstdlib> using namespace std; struct nodeType { int info; nodeType *link; }; class Bubble { public: Bubble(); //constructor //deconstructor //copy constructor //operator= (overloading the = operator) friend istream & operator>> (istream &infile, Bubble & mylist); friend ostream & operator<< (ostream &outfile, const Bubble & … Software Development c++ linked-list programming-construct | |
I'm having a weird problem where programs I write in Netbeans compile and run fine in the IDE, but when I try to run it from the command line, it finds errors and won't compile. A class file in the same directory that my main class needs to instantuate and … | |
As you can see, I'm struggling with classes. How do I call my fraction plus(fraction second), fraction minus(fraction second), etc. functions? #include<iostream> using namespace std; class fraction { private: void reduce() //I will do this later. {} int num, denom; public: fraction() { num = 0; denom = 1; } … Software Development c++ | |
We are using digital persona for our biometrics. We can already save employee ID, employee name and assigned finger .Our problem is that we dont know how to save a fingerprint template to a database and retrieve it so that it can still be read and verified by the biometric … Software Development php vb.net visual-basic | |
LINQ is a great extension to the C# language! But it can be terrifying at first. So here is a little snippet just to get your feet wet. You would normally use some sort of looping here. See how easy it is to get some values from an array. Enjoy Software Development | |
Hi, Everyone, I've coded a program that uses a web browser control and loads a java applet, the process created when the java applet was loaded is java.exe, then on another tab, I've executed again a java applet and created again a java.exe process, now I need to kill the … Software Development vb.net web-browser | |
I need a way to do a cast without being returned a pointer to a new address but, the same address as the original. Something like this: derivedClass something_derived; baseClass* basePointer = &something_dervived; derivedClass* derivedPointer = static_cast <derivedClass*> (basePointer); /* my problem is "derivedPointer" isnt assigned the same address as … Software Development c++ | |
I have a person class public class Person implements Comparable<Person> { //Instance Variables private String firstName; private String lastName; private int age; private char gender; private String ssn; // This is the constructor of the class Person public Person(String firstName, String lastName, int age, char gender, String ssn) { this.firstName … | |
I am trying to make a basic page in ASP.Net by inserting into a MSSQL database. When I run the page it does not insert anything and no error is produced :( The connection string name is right as well as the table name and fields. This is my code: … | |
Hey everyone, I am taking an online C++ class and part of our assignment is to complete a whole bunch of small program snipits on a site called myprogramminglab.com. This one program seems to have me stumped as I am not very familiar with Data structures. Could someone help me … Software Development c++ data-structure | |
I have been asked to write a coding for calculate GPA by using struct and array. I want to display the ouput for every subjects's name, subjects' code, grade for every subject and GPA for every sem but i coulds't get the ouput i want. I think i had done … Software Development c++ | |
#include <iostream> #include <iomanip> #include <fstream using namespace std; const char Avail = '#'; const char Taken = '*'; const int r = 15; const int c = 30; char SEATS[r][c]; int main() { // Declarations for main ifstream inputPrices; double seatPrices[15]; int row; int column; double cost; int answer; … Software Development c++ | |
i have started using C++ these days. Initially , I have done coding alot in C language. I have seen that on my onliune judges , there are 2 different versions. Why they have given 2 versions to compile the code ? Can you tell ? thanks if you can … Software Development c++ | |
I have a project at school in which I have decieded to make an encryption system which I am struggling with quite a bit at the moment - just finding resources to use and even a guide to follow. The only half decent thing i can find on the web … Software Development bsd encryption pascal | |
Hi, i'd like to ask for some help about a problem i got... So i got this code right now: Code: const int rows = 5; const int cols = 3; int tocke = 0; int tekmovalci[rows][cols]={{7, 6, 9}, {8, 7, 8}, {6, 9, 10}, {7, 7, 9}, {8, 8, … Software Development c++ | |
in this program i'm writing the functions that have qt classes as parameters Qlabel, QSpinbox, etc. are causing compile errors, my other functions work fine i get the same 2 errors for each QT object i use as an argument this is the function definition that uses QT classes as … | |
i want to click on a row in grid view and the details of each attribute can show separately in textbox field. i had type this in my coding part, but it doesnt work. may i know how to do it? thanks you. Dim text As New TextBox Dim sql_productname … Software Development vb.net | |
Hello, guys i have an irritiating problem in the following function: void Sort(Point P, Point &AT50, Point &AO50){ Point AT50_new, AT50_last, AO50_new; while (P != NULL){ if (P->Age <= 50){ AT50_new = new Member; AT50_new = P; AT50_new->next = NULL; // <--from here comes the problem if (AT50 != NULL) … Software Development c++ linked-list | |
Hi all, could anyone please provide me a simple example of python threads? I tried looking at the python cookbook, but I find it quite confusing with its mentioning of thread, threading etc (I am familiar with threads in C only) All I want is: From my machine I need … Software Development multithreading python | |
i would like to read some data and display it in textbox. my example of data in my txt file are: "moviename1", "movieshowtime1" "moviename2", "movieshowtime2" when i display it in text box, it shows exactly like above. i want it to display without the quotes. how i can achive tat? … Software Development display visual-basic | |
import java.util.Scanner; public class array_Project { int index; Scanner scan=new Scanner(System.in); System.out.println("Enter index number"); int[]Project={10,15,20,25,30,35,40,45,50,55}; } public class array2 { switch (int index) { case 1: if(index=0) { System.out.print(Project[0]); } break; case 2: if(index=1) { System.out.print(Project[1]); } break; case 3: if(index=2) { System.out.print(Project[2]); } break; case 4: if(index=3) { System.out.print(Project[3]); … Software Development java | |
Help is needed. I've encountered errors as follows *Syntax error in file /home/common/bin/NEL_MailHouseKeeper.pl at line 3, next 2 tokens "my $PATH " Syntax error in file /home/common/bin/NEL_MailHouseKeeper.pl at line 122, next 2 tokens "my $FLAG_PRINT " Excution of /home/common/bin/NEL_MailHouseKeeper.pl aborted due to compilation errors.* #!/usr/contrib/bin/perl my $PATH = "/var/mail"; my … Software Development perl | |
how do you manually convert a multi digit ascii string into the hex equilavent of a decimal integer with out using a C library function. For instance If I have a small program asking a user to type into the keyboard a decimal number and lets say they type in … Software Development c operating-system | |
I have the following code that I need to figure out what the output will be. Whenever I try to run it I get an debug error - and it crashes... Somebody else said that it ran fine on their Apple machine. I just need to see what the output … | |
ok, im working on an assignment implementing a circular queue (fixed size 15), shared memory, normal producer consumer problem, using three semaphores (one for the queue and one for each process). The objective is to have the producer put the characters from mytest.dat (max 150 chars) into a circular queue, … Software Development c objective-c queue | |
Hi Guys Can anyone give me an example on how to retrieve the value 16 in bold under the tagname <td>In process</td> with a webbrowser and insert this value to a texbox. Thanks <tbody> <tr class="odd"> <td>In Process</td> <td class="number">***16***</td> <td class="number">1</td> <td class="number">01:16:48</td> <td class="number">02:54:00</td> <td class="radio"><input type="radio" name="queue" … Software Development queue vb.net web-browser | |
public string getContent(string webAddress) { HtmlAgilityPack.HtmlWeb web = new HtmlAgilityPack.HtmlWeb(); HtmlDocument doc = web.Load(webAddress); return string.Join(" ", doc.DocumentNode.Descendants().Select(x => x.InnerText)); } Am using this function trying to check what does the function do! But am getting the exception which tells me the function Decendants does not exist in the current … Software Development | |
Can anyone give a simple code to explain the statement"a funtion ca have multiple declaration but only one definition"? Software Development c | |
Why is it compulsory and necessary to initialize static variables during compile time only? | |
So I downloaded the [Adventureworks 2012 SQL database](http://msftdbprodsamples.codeplex.com/releases/view/55330) to browse hoping to find something interesting and just nearly fell asleep looking at example data when I came across something new or that I at least never noticed before...a field with a data type of "xml(CONTENT Person.AdditionalContactInfoSchemaCollection)" and when viewing the … | |
WHEN I RUN AND CLICK ON IN ONE ROW THEN THERE IS AND ERROR ON IT HO TO SOLVE THIS AND ERROR IN EMAIL private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { guest_id.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); first_name.Text = dataGridView1.SelectedRows[0].Cells[1].Value.ToString(); last_name.Text = dataGridView1.SelectedRows[0].Cells[2].Value.ToString(); txt_gender_status.Text = dataGridView1.SelectedRows[0].Cells[3].Value.ToString(); txt_martial_status.Text = dataGridView1.SelectedRows[0].Cells[4].Value.ToString(); phone_numb.Text = dataGridView1.SelectedRows[0].Cells[5].Value.ToString(); email_id.Text … Software Development | |
Hello programmers! I made new software, LD File Browser. This software contains ListView but this ListView has error. Software works fine when I run it on F5 (debug), but when I run .exe icon I got error when I select different item in ListView. Here is the code: TextBox1.Text = … | |
I need help converting this python code to c# could someone help me please? #!/usr/bin/env python # encoding: utf-8 import sys, getopt import os, urllib, urllib2, re, string, math help_message = ''' ''' no_param = ''' ''' verbose = False fakeMode = False curPath = os.getcwd() + "/" # Should … | |
Guys, I really need your help. I have a Project about any systems activities related to java Program and I choose Mini Search Engine. Can you please Help me of how to use Class and Objects cause I'm about to use them in my source code. thanks. | |
I'm newbie in C++ programming and I want to declare a constructor from following code in my main however I'm completely confused about it. Here is the code: #include <vector> using namespace std; template <typename HashedObj> class HashTable { public: explicit HashTable( const HashedObj & notFound, int size = 101 … Software Development c++ oop visual-studio | |
I need to write a program (using Dev-C++) which can count the number of hyperlinks of a given web page. The main objective is to practice socket programming and try to use HTTP protocol. I am not sure exactly how to go about doing this. Can anyone help me figure … Software Development c++ http-protocol objective-c socket-programming | |
please help! I keep getting this error : (-3, -3, IndexError('list index out of range',)) class SokobanProblem(search.Problem): def __init__(self, initial): ##-------- creates an object of the class ## tmp_list = list(initial) row_len = len(tmp_list) column_len = len(tmp_list[0])-1 goal_list = [] for i in xrange(0, row_len): tmp = list(tmp_list[i]) goal_list.append(tmp) goal_tuple … Software Development python | |
void main() { char line[300]; cout<<"enter ascii code"; cin>>line; int d = strlen(line); for(int i=0; i<d-1; i+4) { if(line[i]!='.') { (int)line[i]; (int)line[i+1]; (int)line[i+2]; int num=(line[i]-48)*100+(line[i+1]-48)*10+line[i+2]-48; cout>>(char)num; } } getch(); } ok, you enter ascii codes like 104.101.121. and the program converts this into a line like 'hey'. But there's something … Software Development c++ | |
i uesed vb6 with crystal report 10 , when i try to open report.rpt file in crystal report this message appear to me : Invalid report schema , cant open the document,, anyhelp plz?? Software Development visual-basic | |
public static int f (int []a, int []b,int []c) { final int N=a.length; int j, k=0, g=0, t=0 ; for(int i=0;i<N;i++) { for (j=0;j<N;j++) if (b[j]==a[i]) break; if (j==N) { c[t]=a[i]; if (g==0 || c[t]>k) { k=c[t]; g=1; } t++; } } return k; Software Development java | |
hello I have the following program in which there is a switch menu and when a person enters 2 the switch menu should take to the second function which is funcTwo but it is not doind so and just gets back to the menu it self i tried switching the … Software Development c++ | |
Hey... I have created a prgoram in turbo c++, and i wanted it to export it as a separate file ... that is out of the bin file.. and out of all the other include file, so that it actually runs on every computer who even does not have a … Software Development c++ | |
Hi, I have a json_encoded array that comes out like this `{"y":33,"customTooltip":"BOK"},{"y":61,"customTooltip":"DRFlytt"},`... I need it to come out without the quotes surrounding the y and the customTooltip and singlequotes around the last value like this `{y:33,customTooltip:'BOK'},{y:61,customTooltip:'DR'},` Is this possible or should I find another approach? I derive the array like … Software Development java javascript json php |
The End.