132,726 Archived Topics
Remove Filter ![]() | |
Hi all, Quite a basic question for most of you; I am trying to obtain length of a string < char [b]name[MAX_ENTRIES][MAX_NAME_SIZE][/b] > for use in a for loop that will perform isalpha. [size=3][color=blue]for (int j=0; j < &name[i].length(); j++)[/color][/size] [color=black]I am getting [/color][color=red]error 2228: left of '.length' must have … Software Development c | |
Hello i want create gui for aria2c( internet download manager ) with java for doing this aria2c has built in xmlrpc. i use xmlRpc to create gui for aria2c. in aria2c support site there is a example code for python programming language that uses xmlrpc [CODE]>>> import xmlrpclib >>> s … Software Development apache client-server debian gui http-protocol java socket-programming xml | |
This snippet defines 3 functions to create in a few seconds an image of a graph containing arbitrary python objects. It uses the module pygraphviz (available at [url]http://pypi.python.org/pypi/pygraphviz/[/url]). See the example use case at the end of the module. | |
Hello everyone. I am looking for a little assistance in trying to accomplish something that seems pretty impossible.. I am currently writing a program that uses multiple scripts we use to diagnose software we use in our environment. Currently, the only we retrieve our information is going to the local … Software Development vb.net | |
I was trying to do some simple exercises on recursive functions: 1. Write a function using Recursion to print numbers from n to 0. My solution: [CODE]int integer(int n) { if(n>=0) { printf("\n%d",n); integer(--n); } }[/CODE] The next exercise was 2. Write a function using Recursion to print numbers from … Software Development c | |
Looking on the web very few have got VB.net 2008/2010 using object arrays working. I felt it was time to give back what I have taken from the web for any other users. VB6 had a simple object array system which has been lost in VB.net As a C#/ C++ … Software Development vb.net visual-basic | |
Wget is a very useful tool, however, I dont know how to use it in python. Below is my try but with no luck. Would you tell me the right way ? Thank you very much !! I made a wwget.py [CODE] #!/usr/bin/python import urllib2, urllib img=wget("http://blog.freetimegears.com.tw/patrick/archives/Maple-tree.jpg") [/CODE] Running in … Software Development python | |
Here some experiments to pretty print polynomials with help of vegaseat's tip of wx.lib.fancytext. Software Development mathematics python | |
Hi! Could someone please help me to solve one more problem. To read the data (ArrayList) from file, I'm using the following code, which assumes that columns are separated with ",". It works perfectly: [CODE] public static List<UserDataRow> readData() { List<UserDataRow> listofusers = new ArrayList<UserDataRow>(); FileInputStream fstream = null; try … Software Development file-system java | |
Hey guys! Im working on a login form that connects to an SQL 2008 database. i have created records in the table for users who can login. i however want a code snippet that matches the username and password entered with the records in the database. i have a rough … | |
I'm trying to implement a gap sort which is a bubble sort that instead of comparing neighboring elements to sort a list, it compares elements 'i' positions apart. I can get the sort to execute the loop once, but I can't figure out how to make my program continue looping … Software Development java | |
Hello friends, I wrote a simple class for string validation and now I want to share with you. The class contains: - Constructor(s) public Validator() public Validator(string text) - Properties private string strText = string.Empty; - Method(s) public bool isNullOrEmpty() public bool isNullOrEmpty(string str) public bool isLengthMax(int maxLength) public bool … Software Development asp.net | |
Hello, I have to make a program using heapsort, and am having trouble getting it. I think the problem is with either fixup() or buildheap(). I am having trouble understanding the syntax for both of those methods, the teacher gave us the code for them, but I am having trouble … Software Development c++ | |
hi, Please help me. How to create an Access database using Java? THank you Software Development java | |
I need to create an application that displays math problems by randomly generating two numbers, 1 through 10, and an operator (*, -, /, +) and prompts the user for an answer. The application should check the answer and display a message, display the correct answer and generate a new … Software Development vb.net | |
The with statement allows all sorts of syntactic sugar in python. This snippet defines two contexts: [icode]inevitably[/icode] and [icode]preferably[/icode] which register a function call to be executed at the end of a block of statement. Although they are not very useful (the function call could be written directly at the … Software Development python | |
Hi all, i am new to VB.NET/ASP.NET. I need a sample project for an online banking (login and view transactions). does anyone have a sample project, or anything that is close to it??? even if you have only a sample login form, i will really appreciate. thanks in advance. | |
Hi Everyone, I had written the source code in .C file and compile it without any errors but when i run that program it gives me linker error. i.e. Linker Error : Undefined Symbol _getmaxx in module filename.c I am using TURBO C++ version 3.0. Pls give me the solution … Software Development c++ | |
Hi i am currently working on a project i got a problem from few days. Problem is that it is giving System.NullReferenceException in output.Can any one able to remove it by editing the code. The source code is [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; … Software Development open-source | |
I thought users of the python forum could be interested in a seminar conference by Guido van Rossum about the design and implementation of the python language, so here is the link [url]http://irbseminars.intel-research.net/GuidoVanRossum.wmv[/url] (it may be easier to download the file first instead of reading it directly from your browser) Software Development python | |
the basic idea of what im trying to do is write a program that reads an arbitrary number of integers less than 20. then it prints out the position of the integer in the order the user inputed it then it finds the sum when it scans a non integer … Software Development c mathematics | |
So, my assignment is to take in a student ID, first and last name, and 5 test scores. I am then to average the test scores, collect all of that data into an array and output all of the information in a tabular format(which I have yet to do). I … Software Development c++ | |
I have an application that, on occasion, might need to perform certain tasks on files, or other things that are "in-use" while the application in running. This is what I've tried to do, but I'm running into problems: I created an interface: [CODE] interface IShutdownCommand { void OnShutdown(); } [/CODE] … Software Development queue | |
I have been doing a small project as part of my lab assignments and I encountered this funny probelm while working with the files in C++. I have this class Member which I am using to store the member details. [code=c++] class Member { private: char name[30]; long int userid; … Software Development app-store c++ file-system ios | |
{ int age; cout <<"Enter Age" << end1; cin >> age; cout <<"The age you entered is" << age return 0 } | |
1) Write a program to count the number of blank spaces in a given string. 2) Write a program to abbreviate a given string (e.g. if the input is Amar Akbar Anthony, the output will be AAA) | |
Hi I'm looking for good tutorial/s about using boost::regex with c++ code examples any links would be really helpful... Many Thanks Steve PS not tuts about setting up boost, done that already. | |
Hi How to know if there is any version of Java installed on the user PC and what revision, using JavaScript thank you Charbel Software Development java javascript | |
Create a Person class to represent a person's contact information. Your Person class must consist of the following: PRIVATE members: string firstName,lastName; birthDate //you get to choose the data type, but the type you choose must be able to maintain a // 1 day resolution PUBLIC members: 1. Default constructor … | |
[B]How to generate a symbol table in c++?[/B] Software Development c++ | |
hi guys. i was going through a code where i saw an enum written as: typedef enum { #define LWIP_MEMPOOL(name,num,size,desc) MEMP_##name, #include "lwip/memp_std.h" MEMP_MAX } memp_t; # define inside enum. wat does it mean. Also i saw: #if !MEM_USE_POOLS static #endif const u16_t memp_sizes[MEMP_MAX] = { #define LWIP_MEMPOOL(name,num,size,desc) MEMP_ALIGN_SIZE(size), #include … Software Development c | |
Hi, Not sure if anyone can help i am trying to be able to send/receive SMS message via my Sony Ericsson K700i from a PC automatically rather than using a Specific Application. Can someone supply me with some example code to be able to achieve this. I have tried searching … Software Development visual-basic | |
Hello. I need some advice. Here is my scenareo. I have a form displayed where a user can can select a 'function' from a list box. That 'function' has a corresponding ID number which I need to be able to take and use later in the code. The List of … Software Development vb.net visual-studio | |
hi can u plz let me know how to delete msflexgrid rows which are empty Software Development visual-basic | |
Hello , I have a label on my code and i have 3 lines on it , what i want to do is to have my first line on white color and bold , next line normal white and third line on yellow normal .. still searching for a solution. … Software Development vb.net | |
This is my Cogwheel Encryption Method to encrypt and decrypt strings. Wheel1 is Replace by Wheel2 when Encrypting and Wheel2 is Replace by wheel1 when you are decrypting... To Encrypt a string, just call the EncryptString function [CODE=vb] Text2.Text = EncryptString(Text1.Text) [/CODE] To Decrypt a string, just call the DecryptString … Software Development encryption visual-basic | |
Oracle Certified Professional Java Programmer was formerly known as the Sun Certified Java Programmer certification. Does anyone know if the switch to Oracle has changed anything significantly, such as the questions that will be on the test? Or is it the same cert with a new name? The reason I … | |
Hi there, I'm an old programmer trying to get back into it and vastly confused. I know or at least knew how to program in C and found it fairly easy, but Windows programming has me stymied. Basically I'm trying to figure out Win32 Api and have started to get … Software Development api c++ windows-api | |
Hello there, What would be a simple way to stream a file from a url? Software Development c++ file-stream file-system | |
Hello Guys, I am new to C++ , I was trying to create a map key that contain multiple attribute and i write my own compare function. But i am getting strange output with that may be my compare conditions are not right? I write code as below [CODE] #include … Software Development c++ | |
Hello, I am new with c#. I need help in splitting the operators and operand in two different arrays. For example 4+5-3-6+7 is an input string, so in this i want 4,5,3,6,7 in one array and +,- in another array . can anyone please help me out ? | |
The RLE (Run length encoding) compression method compresses a file by writing repeated data as a byte containing the length, then a byte of the data itself. The 'real' RLE method involves writing control bytes. The first bit says whether the following data is compressed or uncompressed. The remaining bits … Software Development c++ | |
Hello DaniWeb, This is my first real assignment and am having problem with it. The program must accept a userID and pass from user. The program must also read the userID and pass from file and if it matches the one on file, the program must display success message. The … Software Development c++ file-system | |
Hi all, I am about to upgrade my VS2005 system to VS2010. (My OS is Windows XP SP3) I would like to know if there is anything that I should do before upgrading that will make the process a little easier? Also, what problems will I have with my existing … Software Development open-source | |
I don't get why C++ pros see red when they see [B]void[/B] main(). Can someone explain why [B]int[/B]main() is good and [B]void[/B] main() bad? Software Development c++ | |
Hi all, I was reading Vijaya Mukhi's The 'C' Odyssey UNIX - The Open-Boundless C (1st ed.). This is in reference to program 43 in the first chapter when file buffering is introduced. [CODE]#include <stdio.h> int main() { FILE *fp; char buff[11]; int pid; fp=fopen("baby1","r"); pid=fork(); if(!pid) { printf("initial file … | |
Hi, I am using ubuntu linux system.In that I am unable to use strrev() function for reversing a string.Is there any library function in linux equivalent to strrev(). Thanks in advance. | |
Hello I come to you today with a question i have not been able to find answer to this anywhere on the internet. I want to be able to send an Email through a Gmail account Using C++. And i cannot be persuaded to move to a different language to … |
The End.