132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Grep

Hi guys, I have a several dozen .ini files from which I need to extract specific lines. The lines I'm pulling are repeated all throughout the code so I can't count on specific strings to pull these lines. My dilemma is that I want lines: 3, 4, 6, 47, 50, …

Software Development perl
Member Avatar for Grep
0
164
Member Avatar for lanitooot

hey guys, my simple program flows like this: a textbox where in you will input a keyword then when you press the 'go' button the data in the mysql database will be shown in the listview. im using mysql and vb .net. i've made the table with sample records in …

Software Development asp.net mysql vb.net
Member Avatar for Naveed_786
0
312
Member Avatar for snivas519

Can anyone explain me the merge sort code(using divide and conquer method and recursive call)...

Software Development c
Member Avatar for snivas519
0
77
Member Avatar for Astro2010

Reading in a string from a file and need to preform basic math equations with it, therefor assuming it can't be in string form. I am attempting to use ATOF but am getting 0's and nan's in return...any suggestions? #include <stdio.h> #include <string.h> #include <math.h> int main() { /*Define Everything*/ …

Software Development c
Member Avatar for Ancient Dragon
0
91
Member Avatar for saransh60

[code] #include <iostream> using namespace std; using std::cerr; using std::cout; using std::endl; #include <sstream> #include <string> #include <fstream> using std::ifstream; #include <cstdlib> // for exit function // This program reads values from the file '1.txt' // and echoes them to the display until a negative value // is read. int …

Software Development c++ file-stream file-system
Member Avatar for Ancient Dragon
0
169
Member Avatar for Petitcharatonyo

Hello World! I'm new in the forum and I don't have too much experience with C++, I'm looking for help with my code, I hope you could help me :) I have to read from a file.txt different collumns, each of them corresponds to a parameter and store them in …

Software Development c++ file-system
Member Avatar for sfuo
0
583
Member Avatar for melbatista

Im using vb.net 2010 express (im new) im learning to develop apps that uses db. what is the best DMBS to use with vb.net 2010? can you gave an example SIMPLE code on how to connect to the database? thank you - i hope is not too much to ask?

Software Development vb.net
Member Avatar for melbatista
0
153
Member Avatar for Krysis

Hello yet again... Anyway, I'm trying to convert a string that has the form of "1097.04", that is, decimal fixed point with two digits after the decimal point. My code currently reads this number from a file then stores it in a *char. Then when i try to convert this …

Software Development c client-server
Member Avatar for Astro2010
0
219
Member Avatar for starlight849

Hello I am attempting to parse multiple lines of text from a text file using regexpressions. I am using vb.net with visual studio 2008. At the moment I am filling my datatable with the text file information and am able to return each line of text and parse the first …

Software Development regex vb.net visual-studio
Member Avatar for starlight849
0
221
Member Avatar for xavier666

Here is a very simple code demonstrating how 'protected' is used [CODE]# include <iostream> using namespace std; class A { protected : int a; }; class B : public A { public : void f_1() // * { a = 10; cout << a; } }; int main() { B …

Software Development c++
Member Avatar for Fbody
0
115
Member Avatar for miskeen

Hi, I’ve 3 classes : A, B and C. The class A includes an object from the class B and another object from the class C. In my class B, I’ve a function that returns a vector of struct. This function is called in the class A and after that …

Software Development c++
Member Avatar for harris21
0
10K
Member Avatar for nv136

While my program loading, I have a splash screen. After the program is done loading my Splash-screen closes and the main form (form1) shows (all good up to that point). But the problem is after the Splash-screen I cannot close form 1, nor can I move it. here is what …

Software Development display vb.net
Member Avatar for Alexpap
0
229
Member Avatar for markthien

Hi guys, I am able to delete record from specified table when I just run the program from visual studio 2008. I am using ms access as database. My connection string is: Provider=Microsoft.Jet.OLEDB.4.0;data source=" + @Directory.GetCurrentDirectory() + "\\smsmanager.mdb;Jet OLEDB:Database Password=matmat However, after setup and deployed in Program Files folder and …

Software Development microsoft-access visual-studio
Member Avatar for gusano79
0
449
Member Avatar for gaurav_13191

Hi, I have the following code which compiles absolutely fine.. [CODE] using namespace std; #include<iostream> #include<stdio.h> #include<conio.h> struct node { int data; struct node *link; }; void add(struct node **,int); void display(struct node*); int count(struct node *); int main(void) { struct node *p; p=NULL; add(&p,5); add(&p,1); add(&p,6); add(&p,4); add(&p,7); display(p); …

Software Development c++ linked-list
Member Avatar for arkoenig
0
110
Member Avatar for koveras vehcna

Hello everyone, I am currently working on text processing with Python and I want to parse a .txt file into its sentences as a whole. I tried to create some regular expressions but I failed to do so. I only managed to come up with a regex that splits each …

Software Development python regex
Member Avatar for TrustyTony
0
1K
Member Avatar for -ordi-

Hei, [CODE]list = [line.split() for line in open(file) if line is not None][/CODE] and output: [CODE][linux@localhost ~]$ [[], ['text'], ['text', 'text', 'text', 'text'], ['text', 'text', 'text', 'text']][/CODE] How to remove none types [] or something.

Software Development python
Member Avatar for -ordi-
0
140
Member Avatar for saransh60

[code] #include <iostream> using namespace std; using std::cerr; using std::cout; using std::endl; #include <sstream> #include <string> #include <fstream> using std::ifstream; #include <cstdlib> int main() { ifstream indata; // indata is like cin char num; int sar,ri,sat,ha; sar=0;ri=0;sat=0;ha=0; char s[]=".txt"; for(int some_int=1;some_int<=3;some_int++){ ostringstream buffer; buffer <<some_int; string s1 =buffer.str(); s1+=s; indata.open(s1.c_str()); …

Software Development c++ file-system
Member Avatar for saransh60
0
199
Member Avatar for silvertooth07

we were asked to input a number and display the sum of the odd and even integers. eg. number: 10 sum of odd: 25 sum of even: 30 [code]intnum = CInt(txtnum.Text) Dim counter% = 1 Do Until counter = intnum intcompare = counter Mod 2 If intcompare = 0 Then …

Software Development vb.net visual-basic
0
72
Member Avatar for iceman29

Hi, Is it possible to display the output of a C program in different font sizes by setting it in the code? If yes, please guide regarding the same. Thanks.

Software Development c
Member Avatar for xavier666
0
204
Member Avatar for markthien

Hi guys, I have implemented pagination in datagridview by using example from this page [url]http://www.codeproject.com/KB/miscctrl/Pagable_DatagridView.aspx[/url]. The pagination works well. However, when I create 2 datagridview with each using different bindingsource, and I click on next for the first datagridview, the other datagridview also automatically paginate to the next one. I …

Software Development
Member Avatar for nick.crane
0
170
Member Avatar for catdieselpow

using namespace std; int main() { vector<double> row(3, 0); vector<vector<double> > table(3, row); printVectorOfVector(table); Fill in a 2 dimension 3x3 array with odd numbers. The display shows the array as it is being filled. Use random integers to fill the array. Use numbers between 1 and 10. Initialize array to …

Software Development c++
Member Avatar for nana121
0
127
Member Avatar for sreya.rakhit

I am quiet new to using NetBeans IDE. I have created a file menu. When the user selects an option from the menu, a window should open,or a form should be loaded. So as far as i have figured out, the event needs to be handled by a mouseClick method. …

Software Development ide java
Member Avatar for javaAddict
0
123
Member Avatar for Hawkpath

How would I make something like a high scores function on a java applet? Like how would I record the score the person got and then access later?

Software Development java
Member Avatar for NormR1
0
449
Member Avatar for miturian

So, due to my last question, [url]http://www.daniweb.com/forums/thread303487.html[/url], I am becoming acquainted with the vector template. However, I clearly am not using the commands correctly. Below is a section of code which, eventually, leads to a segmentation fault later in the program. First an introduction of the variables: [CODE] using namespace …

Software Development c++
Member Avatar for arkoenig
0
185
Member Avatar for ftl25

Hi I am creating a DLL which will often make calls to another DLL. I have gone through the procedure of getting a handle to the other DLL and this works fine for some function calls. It seems like the functions which don't modify a parameter work fine. The access …

Software Development c
Member Avatar for ftl25
0
625
Member Avatar for cintojose

Hello Everybody... I am very new to VB.NET coding..My manager assigned me to write a Single Program that uses OOP concepts like Abstraction,Encapsulation,Inheritence and Polymorphism.As there is a time limit plese help me in this.............Thank You all..........CintoJose.

Software Development oop vb.net
Member Avatar for kvprajapati
0
112
Member Avatar for andrewtrench

I have a perplexing problem which may turn out have a simple solution (hopes!). I am writing a little GUI to allow a user to enter information which will get built into an XML file which is linked to flash-based graphic. One of the fields I have is a Tkinter …

Software Development flash gui linked-list python tkinter xml
Member Avatar for andrewtrench
0
133
Member Avatar for P00dle

I need to use log4j and I have already imported the .jar, and added the necessary code to my project. I get the following warnings when trying to run my program: log4j:WARN No appenders could be found for logger (multithreadsprocessor20.MultiThreader). log4j:WARN Please initialize the log4j system properly. log4j:WARN See [url]http://logging.apache.org/log4j/1.2/faq.html#noconfig[/url] …

Software Development apache java xml
Member Avatar for P00dle
0
112
Member Avatar for Jupiter247

Hi Guys, I am struggling on an assignment where I have to enter an odd number to produce a triangle of stars. e.g. If I enter 5 - then it should look something like this ***** *** * My code is as follows: [COLOR=#0000ff]Private[/COLOR] [COLOR=#0000ff]Sub[/COLOR] btnEnter_Click([COLOR=#0000ff]ByVal[/COLOR] sender [COLOR=#0000ff]As[/COLOR] System.Object, [COLOR=#0000ff]ByVal[/COLOR] …

Software Development vb.net
Member Avatar for kvprajapati
0
184
Member Avatar for furtaker

Hi, I am trying to incorporate a struct and class in the same program to calculate overtime pay and hours for one person. I am having a hard time with these two and especially putting them together. I am not sure what to do to get the program to compile …

Software Development c c# c++
Member Avatar for Luther von Wulf
0
249
Member Avatar for reviloera

I have started programming in python . I want to know the best GUI binding to use .pyqt and wxpython which one is the best and easy to learn and install on federa 13

Software Development gui python
Member Avatar for vegaseat
0
86
Member Avatar for juhi1

I have two tabs in a form . The first form has some buttons which are common to the second tab. But there are some additional buttons in the second tab which need to be worked on . I have included the buttons in the second tab .But I am …

Software Development c#
Member Avatar for arunkumars
0
264
Member Avatar for hanvyj

I have a problem casting a long to an int in c++ There is a long "biWidth" in the &pVideoInfoHeader->bmiHeader struct, I simply want to read this into an integer value "Width" [CODE=c]//check the video info header Width=(int)(&pVideoInfoHeader->bmiHeader.biWidth); Height=(int)(&pVideoInfoHeader->bmiHeader.biHeight); //break point here [/CODE] When I step through the code to …

Software Development c++
Member Avatar for Stefano Mtangoo
0
5K
Member Avatar for sathya8819

Hi, I have this following code for watershed algo to segment an image. But I do not know what the error is. Can someone help me out [CODE]namespace watershed1 { public partial class Form1 : Form { public int X; public int Y; public int Height; // labels the pixel …

Software Development algorithm image queue
Member Avatar for kvprajapati
0
1K
Member Avatar for andrewtrench

Hi. I'm fiddling around with Python and MySql. I keep getting an error with this little script to try and read the rows in a table. The error is: TypeError: unsupported operand type(s) for +: 'int' and 'tuple' Here is the code snippet. Any help would be hugely appreciated [CODE]import …

Software Development mysql python
Member Avatar for andrewtrench
0
250
Member Avatar for Pundia

I want to make a graphic of certain data in my program. The problem is that the zedgraph doesn't zoom out to see the dots or lines in the graphic. This is my code: [CODE] Sub llenar_graph(ByVal zgc As ZedGraphControl) Dim myPane As GraphPane = zgc.GraphPane myPane.Title.Text = "Algoritmo Genético" …

Software Development vb.net
Member Avatar for TCESeregon
0
1K
Member Avatar for ebbumiya

hi guys i ve a problem in doin my project. wen i give some data in the sales bill form i ve created, tat should appear in ms word bill format i ve designed how to connect my vb form with word and to take a print of it, plz …

Software Development visual-basic
Member Avatar for AndreRet
0
97
Member Avatar for ITStrawberry

I have a picture uploaded in the picturebox in c#. What i need to do is to draw a rectangle into this picture and cut the part of image that's in the rectangle and show it next to the image box and then save it with a submit button. Can …

Software Development image
Member Avatar for farooqaaa
0
100
Member Avatar for loushou

okay i have an array of a struct. [CODE]struct MYSTRUCT { float myFirstVal, mySecondVal, myThirdVal; unsigned char myByte; } int myCountFunction(MYSTRUCT *&myArrayOfStructs) { int myCount; // question area return myCount; } [/CODE] here is my question. how do i count the number of elements in an array of type blah …

Software Development c++
Member Avatar for daviddoria
0
139
Member Avatar for ithelp

Hi C++ experts, I am looking for a script which given a structure made of basic types can generate a C++ class which encapsulate the structure and it also generates the stream in and stream out method for the structure e.g [code] input int a ; char b; string c; …

Software Development c++
Member Avatar for mike_2000_17
0
134
Member Avatar for server_crash

I know how to se the font of a regular JTextArea, but how would I get an reference to the selected text and only select that? Here is what I have so far: [Code] setFont(new Font(font, style = Font.BOLD, size)); [/Code] this works but changes whole area [Code] textArea2.getSelectedText().setFont(new Font("sansserif",Font.BOLD, …

Software Development java
Member Avatar for shielaborja
0
183
Member Avatar for jemz

helloo, hello can you help me please i want to write to a file using bufferedwriter and bufferedreader but the problem is that i don't know how to use it i get an error please help me,hoping for your positive responds... [CODE] import java.io.*; import java.util.*; class Writefile { public …

Software Development java
Member Avatar for tong1
0
116
Member Avatar for Matt89

hi i am trying to make a currency converter to convert British pounds, US Dollars and Euros . i have the GUI made but i wanted to make a separate class to handle the conversion of the currencys but im not sure where to start so i was wondering if …

Software Development gui java java-swing user-interface
Member Avatar for Matt89
0
215
Member Avatar for farooqaaa

How to pass an array of struct as a function parameter? This is not working: [CODE] struct Person { char* name; int age; Person(char* name, int age) { this->name = name; this->age = age; } } struct XYZ { int count; Person* people[]; XYZ(int count, Person* people[]) { this->count = …

Software Development c++
Member Avatar for farooqaaa
0
260
Member Avatar for elsiekins

Hi, I have two Pthreads and two named semaphores, the semaphores are created within the threads, is there a way in which i can declare a semaphore in one thread and then open and use it in the other one ? Thanks

Software Development c++
Member Avatar for elsiekins
0
293
Member Avatar for anzoo2009

Hello everyone I am new with algorithm, this is one of my problem which I am trying to sort out. Can anyone help me with some clues for this... Design an algorithm that will read an input weight for an item to be shipped search an array of shipping weights …

Software Development algorithm c
Member Avatar for anzoo2009
0
94
Member Avatar for elapse0308

/** * Class BankAccount - a simple model of a bank account * designed to illustrate the concepts of classes, objects, and methods. * * @author Man Hin Wong * * @version 2010.08.12-version */ class BankAccount { // These are the instance variables private int balance; private String accountName; // …

Software Development java
Member Avatar for javaAddict
0
111
Member Avatar for server_crash

I may not be understanding private inheritance right, but I thought when you inherited privately that you could still access public member data/functions, but the child class of the derived class would not. For some reason it is saying the public print() method is not accessable in this context....Is there …

Software Development c++
Member Avatar for brkurre
0
220
Member Avatar for jackabascal

I am developing software in which I needed to do more elaborate visual styles to a listbox than usual and I used some sample code online. As a good learning programmer should I tried to understand the code when I edited it and for the most part I did, but …

Software Development
Member Avatar for Geekitygeek
0
356
Member Avatar for LevyDee

Hi guys, I just thought I would add this because it was a pain for me to muster up due to the lack of information through google and msdn on the topic. Enjoy =)

Software Development listview
Member Avatar for Geekitygeek
0
2K

The End.