132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for steadi

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? …

Software Development c++ qt
Member Avatar for Lucaci Andrew
0
357
Member Avatar for romz

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
Member Avatar for romz
0
121
Member Avatar for amy 86

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
Member Avatar for amy 86
0
393
Member Avatar for seeds

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
Member Avatar for NP-complete
0
135
Member Avatar for totalwar235

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
Member Avatar for totalwar235
0
93
Member Avatar for Rachel Ard

#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++
Member Avatar for vmanes
0
192
Member Avatar for nekoleon64

//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
Member Avatar for VernonDozier
0
1K
Member Avatar for devindra.storm

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 …

Software Development ide java
Member Avatar for devindra.storm
0
165
Member Avatar for munchlaxxx

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++
Member Avatar for mike_2000_17
0
217
Member Avatar for shhh

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
Member Avatar for TnTinMN
0
3K
Member Avatar for ddanbe

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
Member Avatar for claventure
0
182
Member Avatar for renzlo

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
Member Avatar for renzlo
0
303
Member Avatar for James19142

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++
Member Avatar for James19142
0
191
Member Avatar for kanbear11

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 …

Software Development apache java
Member Avatar for kanbear11
0
1K
Member Avatar for n3xtgen

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: …

Software Development asp asp.net mssql
Member Avatar for Momerath
0
226
Member Avatar for restrictment

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
Member Avatar for restrictment
0
260
Member Avatar for singlin

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++
Member Avatar for ravenous
0
7K
Member Avatar for Rachel Roxx

#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++
Member Avatar for mike_2000_17
0
138
Member Avatar for nitin1

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++
Member Avatar for mike_2000_17
0
453
Member Avatar for Ben Ashton

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
Member Avatar for Ben Ashton
0
904
Member Avatar for matt.sunder.7

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++
Member Avatar for Ancient Dragon
0
705
Member Avatar for James19142

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 …

Software Development c++ qt
Member Avatar for James19142
0
374
Member Avatar for laogao99

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
Member Avatar for khair.ullah
0
189
Member Avatar for JaxConer

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
Member Avatar for JaxConer
0
134
Member Avatar for prashanth s j

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
Member Avatar for Gribouillis
0
346
Member Avatar for chern4ever

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
Member Avatar for Jx_Man
0
3K
Member Avatar for WaltonPan

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
Member Avatar for aravind326
0
248
Member Avatar for James79

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
Member Avatar for James79
0
258
Member Avatar for jetro57070

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
Member Avatar for jetro57070
0
7K
Member Avatar for kaywt

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 …

Software Development apple c++
Member Avatar for kaywt
0
227
Member Avatar for marc.punzirudu

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
Member Avatar for marc.punzirudu
0
2K
Member Avatar for yous

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
Member Avatar for TnTinMN
0
283
Member Avatar for mIND.dEcEpToR

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
Member Avatar for Momerath
0
181
Member Avatar for saurabh.mehta.33234

Can anyone give a simple code to explain the statement"a funtion ca have multiple declaration but only one definition"?

Software Development c
Member Avatar for marc.punzirudu
0
163
Member Avatar for saurabh.mehta.33234

Why is it compulsory and necessary to initialize static variables during compile time only?

Software Development c c# c++
Member Avatar for marc.punzirudu
0
202
Member Avatar for zachattack05

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 …

Software Development mssql xml
Member Avatar for zachattack05
0
214
Member Avatar for NoUserNameHere

Is it possible to point to a certain index of a value? For example, int x = 2576, is it possible to do something like x[2]? I know you can do it with strings, but can you do it with numbers?

Software Development c++
Member Avatar for NoUserNameHere
0
94
Member Avatar for diya45

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
Member Avatar for diya45
0
180
Member Avatar for LD Company

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 = …

Software Development listview vb.net
Member Avatar for john.knapp
0
231
Member Avatar for That.T3rr11

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 …

Software Development c# python
Member Avatar for deceptikon
0
516
Member Avatar for Maritha33

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.

Software Development java seo
Member Avatar for JamesCherrill
0
329
Member Avatar for strava

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
Member Avatar for deceptikon
0
643
Member Avatar for IcyFire

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 …

Member Avatar for IcyFire
0
271
Member Avatar for hpre

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
Member Avatar for Schol-R-LEA
0
270
Member Avatar for guy21

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++
Member Avatar for guy21
0
116
Member Avatar for HibaPro

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
Member Avatar for HibaPro
0
71
Member Avatar for kbondarchuk

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
Member Avatar for JamesCherrill
0
213
Member Avatar for shark101

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++
Member Avatar for ravenous
0
128
Member Avatar for karan.rks

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++
Member Avatar for karan.rks
0
181
Member Avatar for adishardis

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
Member Avatar for adishardis
0
136

The End.