132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for rodkay

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
Member Avatar for ashishkumar008
1
176
Member Avatar for thr

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 …

Member Avatar for leiger
1
630
Member Avatar for Gribouillis

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.

Software Development image python
Member Avatar for woooee
1
1K
Member Avatar for MD656

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
Member Avatar for lolafuertes
1
182
Member Avatar for Asif_NSU

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
Member Avatar for rexel0924
1
215
Member Avatar for DavidRathbone

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
Member Avatar for AndreRet
1
2K
Member Avatar for ccclay

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
Member Avatar for JDBurnZ
1
12K
Member Avatar for TrustyTony

Here some experiments to pretty print polynomials with help of vegaseat's tip of wx.lib.fancytext.

Software Development mathematics python
Member Avatar for Gribouillis
1
765
Member Avatar for LianaN

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
Member Avatar for LianaN
1
6K
Member Avatar for chris evans

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 …

Software Development sql vb.net
Member Avatar for Netcode
1
8K
Member Avatar for viperman224

Is it possible to make a very simple game with C++? any good sites to read up on how to do it? I have a program called Dev-C++. any kind of tips or code that i should know? I'm am just a noob at C++. I wish to play with …

Software Development c c# c++
Member Avatar for nrfae91
1
831
Member Avatar for laidback7

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
Member Avatar for pavigo
1
566
Member Avatar for Krstevski

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
Member Avatar for Momerath
1
245
Member Avatar for christiangirl

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++
Member Avatar for budi indri
1
156
Member Avatar for ug61oxk

hi, Please help me. How to create an Access database using Java? THank you

Software Development java
Member Avatar for masijade
1
365
Member Avatar for jib

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
Member Avatar for killbill07
1
297
Member Avatar for Gribouillis

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
1
550
Member Avatar for Steven_C

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.

Software Development asp asp.net vb.net
Member Avatar for vanjan3.0
1
705
Member Avatar for manoj201jain

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++
Member Avatar for Ancient Dragon
1
1K
Member Avatar for onlinessp

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
Member Avatar for ashu.innominds
1
147
Member Avatar for Gribouillis

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
1
115
Member Avatar for hoganmadman

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
Member Avatar for hoganmadman
1
145
Member Avatar for Syrne

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++
Member Avatar for SgtMe
1
381
Member Avatar for zachattack05

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
Member Avatar for zachattack05
1
124
Member Avatar for Tewhano

Anybody here ever use wrappers? I have a project that I have been wanting to code for years now but never had the resources to do so until now. I am not a programmer by trade but have studied programming in the 80s. I have used VB in access. The …

Software Development
Member Avatar for Momerath
1
113
Member Avatar for crazylunatic

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
Member Avatar for deeps84
1
343
Member Avatar for Crisis757

{ int age; cout <<"Enter Age" << end1; cin >> age; cout <<"The age you entered is" << age return 0 }

Software Development algorithm c++
Member Avatar for dodo rawash
1
171
Member Avatar for abhiab1991

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)

Software Development c c# c++
Member Avatar for abhiab1991
1
133
Member Avatar for ziggystarman

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.

Software Development c++ regex
Member Avatar for ziggystarman
1
236
Member Avatar for CharbelKahi1

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
Member Avatar for scriptWolf
1
295
Member Avatar for Christ1m

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 …

Software Development c c# c++
Member Avatar for Christ1m
1
1K
Member Avatar for shaliniP
Member Avatar for Ancient Dragon
1
61
Member Avatar for amala.123

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
Member Avatar for amala.123
1
659
Member Avatar for Bardoel

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
Member Avatar for nisu
1
539
Member Avatar for napkinbob

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
Member Avatar for the_carpenter
1
257
Member Avatar for guru511

hi can u plz let me know how to delete msflexgrid rows which are empty

Software Development visual-basic
Member Avatar for tjbvo
1
100
Member Avatar for xVent

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
Member Avatar for xVent
1
164
Member Avatar for jhai_salvador

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
Member Avatar for AndreRet
1
501
Member Avatar for BestJewSinceJC

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 …

Software Development java oracle
Member Avatar for prashantpatel
1
140
Member Avatar for bigcat1969

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
Member Avatar for William Hemsworth
1
2K
Member Avatar for madmaze
Member Avatar for ralphc++
1
353
Member Avatar for johnray31

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++
Member Avatar for mitrmkar
1
129
Member Avatar for rutul

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 ?

Software Development c c# c++
Member Avatar for mono_jit23
1
1K
Member Avatar for 1o0oBhP

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++
Member Avatar for Thokozani
1
2K
Member Avatar for acerious

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
Member Avatar for acerious
1
3K
Member Avatar for nick.crane

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
Member Avatar for nick.crane
1
278
Member Avatar for iamboredguy

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++
Member Avatar for sujitkumarsingh
1
854
Member Avatar for Jishnu

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 …

Software Development c unix
Member Avatar for Jishnu
1
594
Member Avatar for challarao

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.

Software Development c ubuntu
Member Avatar for sree_ec
1
4K
Member Avatar for Doomreaper

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 …

Software Development c++ email
Member Avatar for Nick Evan
1
225

The End.