132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Baalla

hello there i'm having a list iterator not incrementable problem i have a adjacency matrix "adj(2d vectors)" + i have a char vector in name color and i have a int glist i'm having a problem with the following function for(list<int>::iterator it = glist.begin(); it != glist.end(); it++) { int …

Software Development c++
Member Avatar for Moschops
0
358
Member Avatar for sludgecornell

I have made a program that reads a file and its main function does some geographic computations to the contents inside. It works now, but instead I want the program to write it instead to a file instead of printing it. I don't understand how to write it because this …

Software Development file-system python
Member Avatar for Gribouillis
0
174
Member Avatar for Tcll

basically, what I want to do is add a function name to an outside reference in a safe sys.modules reference without copying the name... best idea I got is to call a 3rd party function: def myfunc(args): x = None return x addname() # add 'myfunc' to sys.modules['/safe_ref/'] anyone got …

Software Development python
Member Avatar for Tcll
0
208
Member Avatar for nimz143

i want to make an application, where user can upload their images and display it in Image control without physically saving it in a folder on disk. after done build the cone, an error show on this line. Dim base64String As String = Convert.ToBase64String(bytes, 0, bytes.Length) Error show on the …

Software Development asp.net file-system image vb.net
Member Avatar for nimz143
0
350
Member Avatar for Asira18

#include <iostream> #include <conio.h> #include <string> #include <windows.h> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { char bname[97],number[34],code[22], name[10],bcate[10],pass,book,author,ID,school,course ; char type, address[5],x,department,quantity,choice,date[10],aname[20],btitle[50], bcode[9] ; int getch(); int num1,num2,num3,num4,num5,num6,num7,num8,op,a, ph[20],num,i=0; int …

Software Development c++ mathematics
Member Avatar for tinstaafl
0
273
Member Avatar for Baalla

hello there let me explain my work i have a file i read from it the data after that i try to get the best vertex that it's max(degree/weight) when i find it i put it's neighbors into the glist and i put it into blist and delete both of …

Software Development algorithm c
Member Avatar for Baalla
0
161
Member Avatar for Franklin_1

I've got a problem on Visual Basic code. Never used it, and I'm supposed to edit this code below. I need to grey out the fields that have been transferred to the first page from pages (1,2,3) on pages 1,2,3. So after a field is transferred to page one, it …

Software Development developer-tools vb.net visual-basic
Member Avatar for Mr.M
0
170
Member Avatar for nitin1

Hi, I am learning Git system these days. I have made a new folder in ubuntu and in terminal did this: 1. git init 2. then made a file testfile1.txt 3. then made a branch using "git branch newbranch" 4. then checkout to this branch. 5. then, made a new …

Software Development c++ ubuntu
Member Avatar for sepp2k
0
206
Member Avatar for xmarker

I have an array of student names i.e names(9) and student marks i.e marks(9) as double. I have a text file containing names and corresponding marks like this john,30.5 Mary,40.1 Holli,50.9 I want to read the text file using StreamReader object and then extract each student name and mark and …

Software Development vb.net
Member Avatar for ddanbe
0
156
Member Avatar for Dusan_1

Write a program that modifies a given sentence by the last word to the beginning of sentences.To consider that words are separated by exactly one with blank sign.A sentence in the form of string set by the user.Show modified string.

Software Development c++
Member Avatar for Schol-R-LEA
0
268
Member Avatar for ramkishor

foreach (DataRow udr in udt.Rows) { defaultval = udr["result"].ToString(); cmb.SelectedText = defaultval; cmb.Select(); cmb.DataSource = ddtable; cmb.DisplayMember = "ListVal"; cmb.ValueMember = "DetailID"; } here problem is that i want to put defaultval at selectedindex 0,here default value is taken from anothe table. i mean i have send a combo selected …

Software Development
Member Avatar for ramkishor
0
213
Member Avatar for markdean1989

Why is it that whenever I use the getline function I get an error during execution. To clarify... I have this code; cout<<"Enter your string: "; getline(cin, myString); //line 1 cout<<"Enter your name: "; getline(cin, myName); //line 2 cout<<"Age: "; cin>>age; //line 3 output: ____________________________ Enter your string: gfgfkjhjkhgg Enter …

Software Development c c# c++
Member Avatar for David W
0
2K
Member Avatar for somyms

i want to find efficency of cluster...I am using three clustering techniques kmeans ,dbscan ,hiearachical.How can i calculate best cluster am implementing in c#

Software Development c#
Member Avatar for somyms
0
117
Member Avatar for tnd2491

I have 2 buttons name as "Build Start" and "Build Stop". what i want is when i click the stop button it will stop the execution of Building of all the projects. I have tried the Backgroundworker class but when i use the RunworkerAsync() function it will build only one …

Software Development c# gui microsoft
Member Avatar for cgeier
0
1K
Member Avatar for joshl_1995

Hello Daniweb Community, I was wondering if there is a way to replace words from a listbox. So at the moment I've got a listbox with a couple of strings to be replaced in the textbox, however single line listbox items work but when I add a multi-lined item eg. …

Software Development vb.net
Member Avatar for joshl_1995
0
355
Member Avatar for Simon180

Am trying to read a URL address something like http://www.myaddress.com/id=563?name=mark from the Embedded Web Browser then I want to be able to get the url parameters of a link with in my delphi application, so am able to do a messagve box like: ShowMessage(id); // this would show 563 ShowMessage(name); …

Software Development delphi pascal web-browser
Member Avatar for pritaeas
0
255
Member Avatar for 404notfound

I've been sitting here staring at this code for a day now, and am quite ready to light my computer on fire and throw it into oncoming traffic. The error I recieve is: System.Data.OleDbException Syntax error in INSERT INTO statement. I think everything is spelled correctly. I'm expanding on a …

Software Development dataset open-source vb.net
Member Avatar for 404notfound
0
237
Member Avatar for sankubha

Now am using substance look and feel version 5.3.I want to upgrade the it to latest version 7.2.1. I need to know what is the new features in new version and difference between 5.3 and 7.2.1.why we need to prefer the new version.

Software Development api java
Member Avatar for Schol-R-LEA
0
351
Member Avatar for hefaz

how to solve constant too large error in TASM?

Software Development assembly
Member Avatar for hefaz
0
5K
Member Avatar for lyca

Ive been installing a VB application on another computer, but wen im running the program an error occurs it says that my database is not valid(the path). my program has no app.path thats why i install it on Local disk D. Wat should i do now? is there any option …

Software Development visual-basic
Member Avatar for hefaz
0
209
Member Avatar for TekknoDraykko

Greetings again! I'm learning how to write to and read from databases using JDBC, (using Netbeans) and I've run into a snag. I'm trying to save data to a database, but when I try the following exception message is thrown: Column 'COURSEID' is either not in any table in the …

Software Development apache file-system java java-netbeans
Member Avatar for TekknoDraykko
0
365
Member Avatar for cannon_1

I have a code that can be compiled fine on the server but not on my mac machines. The following code is designed to split the reading text according to the string delimiter. But when trying to compile this on my mac, I have issues. void split_is(const std::string &s, string …

Software Development algorithm c++ regex
Member Avatar for rubberman
0
808
Member Avatar for Violet_82

Hi all, I've run into a strange issue. Basically, I created my new application called input-outputTest, created my model class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace input_outputTest.Models { public class EmployerDetails { private string Name { get; set; } private string Surname{ get; set; } private int …

Software Development
Member Avatar for Violet_82
0
726
Member Avatar for basit_3

hello guys i have to make a simple game project , i not know game programming , any body help me where to start game programming

Software Development c++
Member Avatar for Schol-R-LEA
0
230
Member Avatar for Litherz

I'm creating a simple game in Netbeans but I've come across a problem, when I've 500 coins and I try to add more, the total coins value will go to -1 therefore I think I need a else if statement in my code to stop and display a error message …

Software Development java
Member Avatar for Schol-R-LEA
0
115
Member Avatar for Dawnbox

I'm currently creating the game checkers(draughts) and have problem moving the pieces on the board. So far I have all the pieces on one side of the board ready where each piece is it's own function. For the pieces to move i've created a function called mousePressEvent. It takes the …

Software Development gui python qt
0
112
Member Avatar for nitish.mohiputlall

Original question is as follows in the text box it should display 1 + 2 and upon clicking equal it should display the sum. With three values there are many combination 1+1,2+3+3, 1+3+3 .... but it is not working please help? the codes are not complete i'm just testing it …

Software Development android java
Member Avatar for stultuske
0
281
Member Avatar for westsiderailway

Hi Everyone. this is the last part of my function Case "December" If cbMonthly.SelectedItem = "December" Then Dim DecStart As String = "-12-01" Dim DecFin As String = "-01-01" M12S = String.Concat(Year, DecStart) M12F = String.Concat(Year, DecFin) End If End Select Dim Places As New List(Of String) Places.Add(M12S) Places.Add(M12F) Return …

Software Development vb.net
Member Avatar for westsiderailway
0
305
Member Avatar for dddomodossola

The question is: Is it simple to build a GUI that can be accessible remotely? We worked a lot on this and we built a GUI library, portable, lightweight, Python! Hosted on github https://github.com/dddomodossola/gui Here is an example (suggestions are gratefully accepted :-) ): import gui from gui import * …

Software Development github gui python
Member Avatar for dddomodossola
0
460
Member Avatar for sarthak25

How can I convert videos (flv, wmv, mov, m2v, etc..) to mp4 format ? Actually, I'm trying to embedd videos in my web application (on a web browser), but to play them (flv, wmv, mov, m2v, etc..), user needs to add plugin (vlc, wmp, etc). But HTML video tags plays …

Software Development java video web-browser
Member Avatar for jwenting
0
2K
Member Avatar for jeha0

Hi folks. The short question: (A) **Can I set the colour on each individual item/element/point/column in a chart with column series? Or even have gradient on it?** (B) **I want to put names on each column, visible under the X-axix. Now they are simply numbered.** (C) data source? (see below) …

Software Development
Member Avatar for ddanbe
0
2K
Member Avatar for nicky nelson

Write a program that displays length of each name stored in a 2D character array. You may assume that 10 names are being stored in the 2D character array at a given time and the length of the name may not exceed 30 charatcers.

Software Development c++
Member Avatar for David W
0
196
Member Avatar for hefaz

is there any delphi dis assembler available?

Software Development delphi pascal
Member Avatar for hefaz
0
141
Member Avatar for basit_3

guys i making a programme in this i have to merge two arrays into one new array but this code does not run at run time ,compiler does not chow any error int k[100][100]; for (int i=0;i<n;n++) { k[i][i]=k[array_1[i]][array_2[i]]; } for (int i=0;i<n;i++) { cout<<k[i][i]; } here array_1 is my …

Software Development c++
Member Avatar for ddanbe
0
199
Member Avatar for Slavi

Hey guys, I am making a few gui programs and I was wondering on this code .. class PaintChart(wx.Panel): def __init__(self, parent, data): self.data = data.split() wx.Panel.__init__(self, parent) self.SetBackgroundColour('BLACK') self.Bind(wx.EVT_PAINT, self.drawChart) def drawChart(self, e): dc = wx.PaintDC(self) dc.SetDeviceOrigin(30, 240) dc.SetAxisOrientation(True, True) dc.SetPen(wx.Pen('RED')) dc.DrawRectangle(1, 1, 300, 200) Here I set the …

Software Development gui python
Member Avatar for Slavi
0
417
Member Avatar for Clearner123

I found the following logic for binary search from the standard book i feel it fails in some /* binsearch: find x in v[0] <= v[1] <= ... <= v[n-1] */ int binsearch(int x, int v[], int n) { int low, high, mid; low = 0; high = n - …

Software Development c seo
Member Avatar for Clearner123
0
200
Member Avatar for Miran_Leli

`The exercise is to enter one number (n1) and after the user has to enter n1 numbers.Then it has to be printed the number of negative numbers out of the n1 numbers added. So if the user decide that n1=5 and then add 5 numbers : 3,4,5,-1,2 the program should …

Software Development java
Member Avatar for JamesCherrill
0
646
Member Avatar for hefaz

Help me, What is @override in Jave? i can't understand a bit of the code in jave, when i am reading an android game source code. Thanks

Software Development android android-development java
Member Avatar for hefaz
0
132
Member Avatar for TnTinMN

I have just seen a resurrected thread about issues with loading images to a PictureBox and the inability to delete the file while the program is running. There was no clear explaination of the problem, only suggested hacks and apparent frustration. So I thought I would offer this explanation from …

Member Avatar for J.C. SolvoTerra
0
7K
Member Avatar for PM312

I am trying to update Varbinary(Max) column data with Null value. But unable to do so. Error "**Implicit conversion from data type varchar to varbinary(max) is not allowed. Use the CONVERT function to run this query.**" my code Private Sub ButRemove_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButRemove.Click …

Software Development pdf vb.net
Member Avatar for PM312
0
2K
Member Avatar for _ MSCrafter2006

Hi I Need Help about using Visual Basic 6 2013 How do you make buttons go to other windows?

Software Development gui visual-basic
Member Avatar for hefaz
0
261
Member Avatar for nike_jj4

Hey guys! I am trying to map the following dictionary <int,List<T>>. I am trying to get the i-th permutation of an input array, the List<t> being the i-th perm itself. If I have: Input Array [1,2,3], the 0-th perm would be [1,2,3], the 1-st [1,3,2] and so on... So, so …

Software Development
Member Avatar for ddanbe
0
234
Member Avatar for Baalla

hello i have an adjancy matrix for example [0] 0,44, ( 0 : node / 0,44 it neighbors) [1] 1,3,12, [2] 2,33,40, i need to remove all of the neighbors from a list and push them in another one i wanna start from adj[specific number].begin to adj[specific number].end to remove …

Software Development c++
Member Avatar for rubberman
0
278
Member Avatar for Jive_1

Hi I am trying to create a class so I can use buttons globally throughout my code but I am doing something wrong and I can't figure it out. My Global class code. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using …

Software Development
Member Avatar for ddanbe
0
197
Member Avatar for vs88

Hi. i need to build an expression tree from a string and i dont get how to do it. for exapmle: str[20]="( (2 + 5) * (8 / 2))"; ![dasd.png](/attachments/small/4/268d6233b4e99809ef2994f89fb1ebcd.png "align-left") can some one help me? thanks.

Software Development c
Member Avatar for Schol-R-LEA
0
2K
Member Avatar for pars99

I'm making a program that takes the last letter and second to last letter of a name and displays a formatted version in front of the name. I'm passing an array to hold all the names and it seems to work properly, but it displays null before each output. Why …

Software Development java
Member Avatar for stultuske
0
138
Member Avatar for basit_3
Member Avatar for mridul.ahuja
0
179
Member Avatar for Lemi

hello dears i tray code the button which can send SMS from my server (i'm ethiotelecom employer) to any cell phone but the SMS faild always. pls can you help me?

Software Development
Member Avatar for Schol-R-LEA
0
122
Member Avatar for Manuela_1

#!/usr/bin/python import Evaluar from pylab import * from numpy import * def biseccion(a, b, TOL, N): Evaluar.dicc_seguro['x']=a fa = eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) vectorx = zeros(N, Float64) vectory = zeros(N, Float64) i = 1 while i<=N : p = (a+b)/2.0 vectorx[i-1] = p Evaluar.dicc_seguro['x']=p fp = eval(Evaluar.funcion, {"__builtins__":None}, Evaluar.dicc_seguro) vectory[i-1]=fp if …

Software Development python
Member Avatar for Gribouillis
0
349
Member Avatar for divinity02

this assignment here was my take home assignment. I am kinda doing it over just to see and know where i went wrong with. it is either my codes wrong somewhere but am not getting the required output. I had to do two methods along with two arrays. dont know …

Software Development java
Member Avatar for JamesCherrill
0
254

The End.