43,549 Solved Topics
Remove Filter ![]() | |
Hi, I'm trying to fork out number from this expression. Obviously without any luck. I wonder if anyone could help and suggest good book about regex. [code=c++] boost::regex reg("[[:blank:]]*move[[:blank:]]*\\d{1,3}[[:blank:]]*, boost::regbase::icase); [/code] Thank you | |
Hi, I have looked on boards, googled, I tried you tube had a look at the C books I have on hand.. but I am confused about this... What is the best way to write a struct to a file_ And how is the data saved and then read back? … Software Development c | |
i am currently trying to configure a email sending function using an SMTP server. when i send a mail to and from a person with the email extension of @dtss.com (The company employes) it works perfectly with attachments and everything if i change the ToAddress to anything else (i.e. [email]matthew@crimzone.com[/email]) … Software Development email | |
How would I be able to find a certain pixel on any screen under a certain RGB, and then get its x y coordinants? Thank you! | |
I know what a Jar file is. [url]http://java.sun.com/developer/Books/javaprogramming/JAR/basics/build.html[/url] I just can't figure out how to get it to be recognized as a command. I have the same problem with appletviewer. I was told i was suppose to to set some path but i am not sure where it is. I'm … Software Development java | |
I want to create a custom NumberFormat which returns empty string for negative values and the double number iteslf for +ve and zero values. Please guide me.................... Software Development java | |
I am trying to read a specific line from .txt file. The problem is the the whole application hangs. It does not display any error, just hangs [CODE=vb] Imports System Imports System.IO Dim Username As String = "" Private Sub Form1_Load() Try Dim Filereader As New IO.StreamReader("Test.txt") Dim CurrentLine As … Software Development vb.net | |
Hi again guys :D I need to make a program that reads a txt file, show the original file on a RTB and then show the words of the file, sorted alphabetically with the number of words found on the file in another RTB, e.g. INPUT: "That fox killed my … Software Development file-stream file-system vb.net | |
For example, I want to set flag so that when I click a mouse down a screen schows up. I got that. But when I take my finger off of the button it disappears. Does anyone know how to set up a falg so that doesn't happen? switch(id) { case … Software Development c++ | |
Can anyone tell me how to get my blocks of code to automatically indent when I place the final closing brace--"}". This works fine when I am coding in C# and I know there must be a way to enable this feature for CPP source documents. | |
Hey guys. Thanks for taking the time to read this post. I'm relatively comfortable with C++ and am taking a class in C for the first time. I'm finding it difficult and frustrating to adapt to the new language. It's kind of like trying to box with a hand tied … Software Development c | |
Urgent Help needed, I am updating an access database using C#. Everything works fine except when there are multlines in text box controls, update command doesnot update these textboxes to text field or memo field. On screen I have a grid from the same datasource as that of the textbox … Software Development c# | |
So I am trying to use multiple source files for my text based game. In Code::Blocks in doesn't even compile it says " cannot find -lfunctions.h". In Dev-C++ it compiles but the function doesn't work properly Here is the code Main.cpp [CODE]#include <iostream> #include <string> #include <fstream> #include "functions.h" using … Software Development c++ | |
Hi, I've got two tables in a database - one a list of schools (around 50 entries), and one a list of pupils (around 17,000). Both are spatially-attributed using PostGIS. Basically I need to allocate each pupil to their nearest school. Currently I'm looping through the schools repeatedly, using the … Software Development multithreading postgresql python sql | |
Have looked around but I could not find an answer to this question. Is there a difference between these two field initialisations? Or does it really not matter and is it just a matter of style. [CODE=c#]class aClass { private int aField; public aClass() //default constructor { aField = 42; … Software Development | |
Hi I have a textbox which contains Text. I want to find all the words in the text. (which seprate from each other with space). what should I do? thx for ur attention. Software Development | |
hi, I'm newbie in python and I'm using python 3.1 From the project ideas thread, I try to write a small module to calculate your age in years, months and days. Calculating the ages without the month (only years and days) would be easy, but adding the months makes me … Software Development python ![]() | |
This is my code: [code=VB] Private Sub NextForm() Form2.Show() Me.hide() End Sub [/code] [B]Problem: [/B]The first form fades out and the second form fades in. Between the transition of [B]Show()[/B] and[B] Hide(),[/B] the actual desktop is seen. The only solutions that I could think of is; 1. Not to hide … Software Development vb.net | |
Hi all, I have been using PNG files for icons and they are good. But I want now to use xpm as they can be included just as I include header file. How do I do that? Any free tool? Software Development c++ | |
I have the following code and it wont compile, it says no matching function for call to `autop::autop(autop)' at this part [CODE]autop j = f();[/CODE] I don't understand why the copy constructor wont accept the autop copy Im sending it. [CODE]#include <iostream> using namespace std; class autop { public: autop(int … Software Development c++ | |
Hi, I ve been working on my assignment. Having problems. Please solve them for me. I will be thankful to you all. What I am doing, or want to do is, read a file in a PROCESS, read it character by character, send each character, one by one through pipe, … | |
I am trying to say " if a number is divided by 2 and the modulus is equal to 1" if(count/2% == 1) or if(%(count/2) == 1) It's not working. What am I doing wrong? Would really appreciate help. Thanks. Software Development java | |
A couple weeks ago I was reading a thread about character counting and Vegaseat made the comment that [QUOTE]Function calls are time expensive in Python, so I modified Sneekula's count_char2() approach by replacing all those calls to islower(), isupper(), isdigit() and isspace(), and also changing the order of if/elif to … Software Development python | |
Im confused and I need to know how to read from a tkinter textbox in order to create a text editor. Also would it be possible to have certain words colorized as you type in words? I would like to make this into a code editor possibly. Any help would … | |
This program reads information from a text file with an istream_iterator and initializes a vector with the data. Everything has been working fine, but when I created a constructor for the class to use for insertion into the vector, I get a compiler error involving the istream_iterator. [code] #include <vector> … | |
Hi all, I'm pretty fluent with C#, but I was wondering what everyone's recommendations would be as far as an intermediate level book for C#. I pretty much have a grasp on the language, there's just some small details that I need to enhance my knowledge on: some interfaces, class … Software Development c# | |
Hi, I am using a code to read a grayscale image and store the pixel value in a 1D array. But the code is taking a default image(though i am providing the complete path for the image to be loaded) and the height and the width are returned as -1. … Software Development java | |
I'm recently doing an assignment for fraction problem. I've implemented classes for the programme to accept fractions. And i've overloaded operator +, -, *, / and ==... But here is some strange thing. Before that i show some of my code here regarding operator -: [CODE]Fraction operator-( Fraction a, Fraction … Software Development c++ | |
i takes the current date value and then save it to text1.text Text1.Text = Format(Now, "m/dd/yyyy") then i am passing Text1.Text which actually contains date to Sql String which Delets all record that matches the Expiry date.. if current date = expiry date then delete that record.. strSQL = "DELETE … Software Development visual-basic | |
Hi I have a program that adds, deletes, edits and views a text file's contents. The text file, named as "student.cvs" has the following content and format <student code>, <last name>, <first name>, <middle name>: [ICODE]2009-1234, Asa, Gohan, Gogo 2009-4321, Basha, Bushum, Jujog 2009-1999, Mekemi, Mekeke, Makeke[/ICODE] The whole program … Software Development c file-system | |
question given like this The Fibonacci sequence is the series of numbers 0, 1, 1, 2, 3, 5, 8, .... Formally, it can be expressed as: f ib0 = 0 f ib1 = 1 f ibn = f ibn−1 + f ibn−2 1) Write a C program using the fork() … | |
![]() | Hey guys, I wanted to make a simple Python program to send an email to my Gmail account. So: [code=python] import smtplib sobj=smtplib.SMTP("smtp.gmail.com") sender="sravan953@gmail.com" rec="sravan953@gmail.com" msg=""" From: From Person<sravan953@gmail.com> To: To Person<sravan953@gmail.com> Subject: Test Does it work? """ sobj.sendmail(sender,rec,msg) [/code] -but it doesn't work, it shows an error [code] Traceback … Software Development python |
anyone can help me fix this coding.. this coding output is string output.. but i want output in double.. [CODE]Private Sub OutputPremium() With ds.Tables("KadarPremium").Rows(cmbPremium.SelectedIndex) Select Case cmbPelan.Text Case (1) lblPremium.Text = .Item("20TP1") Case (2) lblPremium.Text = .Item("20TP2") Case (3) lblPremium.Text = .Item("20TP3") Case (4) lblPremium.Text = .Item("20TP4") Case (5) lblPremium.Text … Software Development vb.net | |
Hello every one!Please help me!! I am new to C programming.I wrote a programe to copy lines one by one of a file to an array.But it cant compile.I cant understand the error code also.Please help me! here is my code. #include<stdio.h> int main() { FILE *f; char data[256]={0}; char … Software Development c | |
Hi! I've made a small program for an assignment and it works as it should. There's just one problem; the code contains two global variables. I won't pass the course unless I get rid of them and it's been bugging me for weeks. The program: [CODE] ##This program simulates a … Software Development python | |
Hi, i've had experience making counting programs in the iostream and now i'd like to make something useful to me. I play a web browser-based game called Neopets, and i often refresh 500 times a day there to encounter random events. Eventually, my hand gets tired, so i'd rather make … Software Development actionscript c++ flash web-browser | |
I have a program that requires to read from a text file with a .cvs file extension. The program tends to add, edit, delete records written in the file. But before anything, the program simply can't read the .cvs file to begin with. Anyone can guide/help me on this? Thanks. … Software Development c file-system | |
Hi.... I am making a application, which required .net framework 1.1.4322 it isn't available on msdn, Can anyony tell me from where i can get this............? Kindly help me related to this..... Software Development | |
Hi, how can I simply read the excel data using vb 6.0? Software Development visual-basic | |
Hi experts, Why does line [B]parts = new Tire*[numOfParts];[/B] generate the error [B]invalid conversion from `Tire**' to `CarPart**' [/B] in file car.cpp? The program works if I change the variable parts to be of type Tire** instead of CarPart**. I formatted my problem to a complete simple (though multifile) program, … Software Development c++ | |
What is more efficient? 1) import math 2) from math import * 3) from math import sin, cos Software Development python | |
Hi, I want to have a tree view control with tables as treenodes instead of labels that. For this I cant use third party controls even though they r free So I want write Owner drawn treecontrol can anyone give me the links to any tutorials that explain this concept … Software Development c# | |
[TEXT] I have in Visual Basic 8.0 a MaskedTextBox1 with the mask "00/00/0000" (short date) I have in my MYSQL table a fields : "name" datetype CHAR(15) [COLOR="Red"]"birth-date" datetype DATE[/COLOR] "birth-place" datetype CHAR(15) I have one record: Name birth-date birth-place Andre [COLOR="red"]01-01-1974 [/COLOR]Amsterdam [/TEXT] [CODE] Me.TextBox1.DataBindings.Add("text", myData1, "name") Me.MaskedTextBox1.DataBindings.Add("Text", myData1, … Software Development display vb.net visual-basic | |
cmd = New SqlCommand(sql, myConnection) reader = cmd.ExecuteReader() While reader.Read() For Columns = 0 To reader.FieldCount - 1 Category = reader.Item(Columns) 'READ COLUMN FROM DATABASE cmbfld.Items.Add(Category) ComboRow += 1 Next End While this code is populating the records instead of the field name.what can i do pls? Software Development vb.net | |
[CODE]#include <iostream> using namespace std; struct student { int ID; char name[80]; char nationality[80]; char gender[2]; }; void insert(student array[]); void sort(student array[]); int main() { student array[100]; int answer; cout <<"Welcome to student recording system"<<endl; cout <<"Please choose one of the following option"<<endl; cout <<"1.Insert new record"<<endl; cout <<"2.Delete … Software Development c++ | |
hello I have some code that loops & takes in a number then should store it in an array. [B]My problem[/B] is that for some reason, the program only stores every 2nd number entered? [CODE=cplusplus] while (!cin.fail() && cin>>purchase) { // while a correct input is input cin >> purchase; … Software Development c++ | |
Hi everyone, I have to make a program that reads a txt file after reading it, show it in a richtext box and in another tab make the average of the grades the input received sort it by the student id and then in the same rtb sort it by … Software Development vb.net | |
hello I have some errors in my program, which as always have to do with how to correctly syntax something :P ... I think :) [B]1st issue:[/B] I am using a 2d array as a parameter in a function but I am getting an error. I think it has to … Software Development c++ | |
My program keeps getting this error: [I]syntax error before "else" [/I] My source code: [CODE=syntax]#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #define MAX_STUD_NUM 9 #define MAX_STUD_LASTNAM 20 #define MAX_STUD_FIRSTNAM 20 #define MAX_STUD_MIDNAM 20 #define MAX_INSTRUCT_ID 5 #define MAX_INSTRUCT_NAME 50 #define OK 0 #define CANCEL -2 #define TRUE 1 #define … Software Development c | |
Hey guys! I'm working on a program in python with Tkinter that allows you to enter in a bunch of number and such, and generate an image. So, I have PIL creating a blank PNG image and saving it, it all works... Now I want to add stuff to the … |
The End.