132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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 | |
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 | |
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 | |
#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 | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 … | |
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# | |
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 … | |
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 | |
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 | |
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 | |
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. | |
| |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 … | |
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 … | |
![]() | 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 ![]() |
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 * … | |
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 | |
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 | |
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++ | |
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++ | |
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 … | |
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 - … | |
`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 | |
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 | |
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 … Software Development file-stream file-system image microsoft-access vb.net | |
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 … | |
Hi I Need Help about using Visual Basic 6 2013 How do you make buttons go to other windows? Software Development gui visual-basic | |
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 | |
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++ | |
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 | |
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))";  can some one help me? thanks. Software Development c | |
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 | |
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 | |
#!/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 | |
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 |
The End.