132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for singhabsk

Hi I am ABHI i want to substitute `19-13-10-456765` to `19*10 + 13*5 + 10` is equal to `(265)` in file i want to know the exact code to do that this is the file content xyz.txt 19-10-13-400922 TID1-3039 1RequestREGISTER 19-10-13-405432 TID1-3039 1Response100 19-10-13-410015 TID1-3039 1Response401 19-10-13-415481 TID1-3039 2RequestREGISTER 19-10-13-419800 …

Software Development perl
Member Avatar for k_manimuthu
0
111
Member Avatar for kipslem

Hello, I'm a newbie to VB.Net and I need an urgent help as I'm developing an application using the VB.Net. I have a form just like the login form in VB.Net. The usernames are prepopulated on a combobox with datas from the SQL DB backend, and the text box for …

Software Development vb.net
Member Avatar for kipslem
0
618
Member Avatar for sandwich88

hi everyone this is my first post and yes, im just starting with cpp im using devc++ so i have this homework which i could get done for its due date but still it would really help me to understand more about cpp if i could get it done but …

Software Development c++ matrix-multiplication
Member Avatar for sandwich88
0
135
Member Avatar for chamnab

can anyone explain this code to me ? This code can set font color in c++ (window only) and i copy from this web site ([url]http://www.dreamincode.net/code/snippet1491.htm[/url]) it work , but i don't understand some line [B](<-)[/B] 1.void setcolor(unsigned int color) 2.{ 3. if (color >15 || color <=0) 4. { …

Software Development c++
Member Avatar for sfuo
0
261
Member Avatar for realoneomer

Hi guys, I am looking for such a perl program that matches a pattern in file and print all remaining lines below the pattern. for example. If i have a file like.. Column1 Column2 ABC DEF GHI KJL ADG MKO HGI KIO HFO PIL This is a my pattern Groupname …

Software Development perl
Member Avatar for singhabsk
0
230
Member Avatar for SolidSora

I have to make a Tic Tac Toe game for class and I have a problem with checking if the space is available when the player enters it. Everything else works fine. Here is my main: [CODE]#include<iostream> #include"tictactoe.h" using namespace std; int choice; int main(){ TicTacToe myBoard = TicTacToe(); cout<<"Enter …

Software Development c++
Member Avatar for SolidSora
0
471
Member Avatar for kay19

Well, I first made a topic about JDK commands not inputting, but fixed it now. I usually do my work in class when it comes to textpad - java, but right now, working at home. Here's my problem - I can't get it to compile. It gives me an error …

Software Development java
Member Avatar for kay19
0
513
Member Avatar for Davitch

Okay, I am so close to this one I can taste it. I am trying to get the average mileage between two different tanks of gas in this code. I have most of the code written out, but I know there is something missing, so here we go! [CODE]import java.util.Scanner; …

Software Development java
Member Avatar for adarshcu
0
118
Member Avatar for lochnessmonster

does anyone happen to know of any sites with advanced typedef's such as functions...pointeres....etc? i've seen them used and would like to know more about how to use them -thx

Software Development c++
Member Avatar for mike_2000_17
0
77
Member Avatar for ITHope

We have to write a program that prompts a user to input an integer and after that i get lost i attached the problem to this thread and help would be greatly appreciated!!

Software Development c c# c++
Member Avatar for ITHope
0
100
Member Avatar for princess_ann

Hi, i'm ann from philippines:p and i just want to ask how to install the program i made in visual basic 6?:?: do i need to make an installer?:rolleyes: can anyone teach me how? :sad: Pleaszzzzzzzzzzeeee...:cheesy: thanks...:lol: Note: please be specific.:!:

Software Development visual-basic
Member Avatar for azizmuda
0
249
Member Avatar for Transcendent

I'm trying to print the average of this: [CODE]public class Grades { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int [] work = {20, 90, 100, 50, 80, 70}; for (int workValues : work) System.out.printf(" %d", workValues); System.out.println(" "); getAverage(work); modifyElement(work[0]); …

Software Development java
Member Avatar for Transcendent
0
140
Member Avatar for razax

Hi, This is my first post.I found interesting thing while playing with lists. [CODE]l = ['asd',"asd'das",'qw','213'] print "original list:", l print "first item:", l.pop(0) print "second item:", l.pop(1) print "modified list:", l [/CODE] [B]output:[/B] original list: ['asd', "asd'das", 'qw', '213'] first item: asd second item: qw modified list: ["asd'das", '213'] …

Software Development python
Member Avatar for razax
0
218
Member Avatar for Szeth

Hello Everyone, I need to add functionality to store the guesses the user makes in an array up to a maximun number of guesses stored in a constant. It must display a list of the previous guesses before the user guesses a number each time (excluding their first guess). Once …

Software Development c++
Member Avatar for Szeth
0
2K
Member Avatar for LadyRelm2

So I'm new to python, although not terribly new to programming. I am going through some tutorials, but am having some trouble. I am trying to execute a program from the python shell (using Python 3.1). Right now, I have the >>> prompt. I can't seem to get any program …

Software Development python shell-scripting
Member Avatar for snippsat
0
1K
Member Avatar for myk45

Hello everyone, Well im currently going through OpenScenGraph. i could not understand this piece of code: [CODE]class OSG_EXPORT Group : public Node { public : Group(); /** Copy constructor using CopyOp to manage deep vs shallow copy. */ Group(const Group&,const CopyOp& copyop=CopyOp::SHALLOW_COPY); META_Node(osg, Group); ... // code coninues };[/CODE] Now, …

Software Development c++
Member Avatar for myk45
0
142
Member Avatar for mugenoesis

Okay i have tried everything please can someone help me i am trying to restart this program so i have used a do while loop. The problem is that when i say n to terminating it just asks the question again do i wish to terminate every time i click …

Software Development c++
Member Avatar for mugenoesis
0
131
Member Avatar for sheennave

When i insert value into table row (data type float), smt rounds decimal values into zeros. Here is the dramatically simplified code in order to see the situation.Interestingly, assigning a single array value into a variable (as usual) doesn't work here ! Is this a SQLite bug ??

Software Development c++ sqlite
Member Avatar for sheennave
0
294
Member Avatar for pdk123

i am a c programmer, 6 month old for c++. i am trying to add some feature to a huge c++ base code !. stuck at this funtion . ( function names/varibles names modified ) void MCE::AddM( int Cid, int Tid, int Rid) { TrInstEntry* pTrInstanceEntry = (TrInstanceEntry*)m_MappingList->find(Tid); if ( …

Software Development c c# c++ data-structure
Member Avatar for griswolf
0
186
Member Avatar for Oddone

This is basically to request help with my program, as was already evident. I am a student, and an assignment asks me to "Write a method that computes the spherical distance between two points on the surface of the earth, given their latitudes and longitudes." I have written this so …

Software Development java
Member Avatar for Oddone
0
167
Member Avatar for robergto

Hi there! And Thanks for your help.- I've installed VB 5 Enterprise edition, and amn trying to begin self-guided studies of this language. When trying to use "Microsoft Common Dialog Control 5.0", as told in a book, cannot find it -> CTRL + T and Componets. Instead, have a "Microsoft …

Software Development visual-basic
Member Avatar for robergto
0
141
Member Avatar for FoX_

Hi all; I've to update a record for my hw.I'm trying to use seek function but when I use it, new information(phone number) is being written at the end of file... Here is the function that I've tried... Assume that the file's content like below and the input is : …

Software Development perl
Member Avatar for boshu
0
222
Member Avatar for lance7tour

Am trying to get this code to work where the user enters n rock,paper,or scissors and the computer randomly picks as well, it then states what each choose, once u click ok it tells who won the match but my code once it shows the 1st winner result have to …

Software Development shell-scripting visual-basic
Member Avatar for Ezzaral
0
334
Member Avatar for l1nuxuser

[CODE] char *CHuser, *CHpass; CHuser = user_user.GetBuffer(0); //user_user its CString verb CHpass = password_user.GetBuffer(0); // password_user its CString verb [/CODE] i need to convert the CString to char but is not woking if someone can help me its gon be very useful ks biny

Software Development c c# c++
Member Avatar for l1nuxuser
0
252
Member Avatar for DarknessVB

I have a form set up and on that form is a DataGridView, on that DataGridView I would like to display all of a customer's transactions. I am having a problem where the debugger is throwing me a "Syntax error in JOIN operation." and I can't proceed. [CODE] ' Select …

Software Development sql vb.net
Member Avatar for DarknessVB
0
165
Member Avatar for click_Apply

I am new to XSLT Please help, Cannot use XSLT 2.0 The group priority level lowest(Public-1) TO Highest (PRIVATE-3) Public-1 Public-2 Public-3 CONFID-1 CONFID-2 CONFID-3 PRIVATE-1 PRIVATE-2 PRIVATE-3 For example a user LDAP query gives a file <result> <DN>CN=Test User ID Priv-2,CN=Users,DC=Lab,DC=acme,DC=com</DN> <attribute-value name="memberOf">CN=CONFID-2,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value> <attribute-value name="memberOf">CN=PRIVATE-2,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value> <attribute-value name="memberOf">CN=Public-3,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value> </result> The …

Software Development xml
Member Avatar for click_Apply
0
413
Member Avatar for Diamonddrake

I have hit a slump, my line sorting text program runs out of memory when sorting large files, the answer is using an external merge sort. basically it breaks the file into chunks, sorts them, then loads chunks of the chunks, and sorts them, then some how comes up with …

Software Development
Member Avatar for stefansavev
0
262
Member Avatar for rdt_01

[QUOTE]I cant figure out what should i do so that in case one, if i choose to continue buying, not to start from the begining, but just to do the remaining calculations. also if it is possible to help me with a function outside main so that i calculate the …

Software Development c++ flash
Member Avatar for rdt_01
0
90
Member Avatar for rmlopes

Hi everyone I've been looking into boost and c++ reference, as well as some googling, and I cannot find a way to get a thread's execution time, all options I found are related to system time and I need only the execution time for the thread (inside the thread's context). …

Software Development c++
Member Avatar for JohnDiego
0
5K
Member Avatar for Jcastillo2010

(Linux)I am trying to use this code: /* *Converts pounds to kilograms. */ #include <studio.h> /* printf, scanf,definitions*/ #define KG_PER_POUND .4536 /*conversion constant */ int main(void) { double pounds, /* input - weight in pounds. */ kg; /*output - weight in kilograms */ /* Get the weight in pounds. */ …

Software Development c
Member Avatar for Trentacle
0
172
Member Avatar for mjv89

Hi, Sorry for another thread. I'm trying to do matrix multiplication in Java now. Here's my code (that wont work). Please let me know if you spot anything that I should change... [code] class multiply { public static void main(String[] args) { int[][] a = {{1,2,3}, {1,2,3}, {1,2,3}}; int[][] b …

Software Development java matrix-multiplication
Member Avatar for jon.kiparsky
0
133
Member Avatar for jddigitalchaos

I am confused about the storable module in Perl. In the available documentation for it [URL="http://perldoc.perl.org/Storable.html"]http://perldoc.perl.org/Storable.html[/URL], it doesn't describe much about the file that it uses to store the data structure. What kind of extension is the file? When I create a file for the module to use, do I …

Software Development data-structure perl
Member Avatar for jddigitalchaos
0
137
Member Avatar for frogster

Hi! In my direct 2d game i want to draw a big background picture entered by the user. Im currently trying to do this as described on [url]http://msdn.microsoft.com/en-us/library/ee719658%28v=vs.85%29.aspx[/url] . Altough it gives me read error at pos 0x0000. Heres the code: [CODE] RECT rc; GetClientRect(hWnd, &rc); using namespace D2D1; //Render …

Software Development c++ html-css microsoft-access
Member Avatar for frogster
0
281
Member Avatar for indrajeet6

Hi, I've been trying to compile the following code in visual c++ 2010 Express Edition. But the output window just says: 1>------ Build started: Project: Ans7, Configuration: Debug Win32 ------ ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Code Follows: [CODE]/*Program to dynamically allocate a 2D array*/ …

Software Development c++
Member Avatar for indrajeet6
0
449
Member Avatar for vanalex

Hello everybody, I wrote a test source code about 2 classes point and circle. These classes illustrate the center of a circle (point class) and its radius (circle class). Circle class inherits point class. Here's the code: [CODE]#include <iostream> using namespace std; class point { private: int x, y; public: …

Software Development c++
Member Avatar for vanalex
0
169
Member Avatar for Duki

Hey everyone, We're trying to figure out if it's possible to use winsock on an AIX system? If not, is there any native support in C++ for unix based machines and e-mail support, without importing 3rd party libraries?

Software Development c++ unix
Member Avatar for synxmax
0
171
Member Avatar for Jesi523

Ok, I hope I can explain this so that everybody understands. I have a database where a column has special characters in the fields. I need to remove these characters before printing them to a file. I have the following code: [CODE]public string RemoveSpecialChars(string[] args) { string[] chars = new …

Software Development assembly
Member Avatar for ddanbe
0
878
Member Avatar for mjv89

Hi, I'm trying to learn more about matrices in Java. I am trying to read in two integer matrices A and B, then print out the calculation for A + B, but I am getting an ArrayIndexOutOfBoundsException on line 21. Any help would be greatly appreciated. [code] class MatrixAdd { …

Software Development java
Member Avatar for mjv89
0
91
Member Avatar for Commando123

hi guys, i know how to write a code to display data from the database into a datagridview, and i know how to use text boxs for uplying chnages on the database and directly display them in the datagridview, but what i want is to be able to aply changes …

Software Development vb.net
Member Avatar for Commando123
0
98
Member Avatar for Davitch

I am currently a begining Java student and have some code for someone here to look at. Now according to the NetBeans program I am using to write this code there are no errors, but when I run the code I get "Exception in thread "main" java.util.IllegalFormatConversionException: f != java.lang.Integer" …

Software Development java java-netbeans
Member Avatar for Davitch
0
89
Member Avatar for Szeth

Hello Daniweb, I'm obviously very new to the programming world. I'm trying to make the popular Guessing random numbers game. The things I'm having a hard time with is getting the input validation to work. When characters are input instead of numbers, the program goes into an infinite loop. I'm …

Software Development c c# c++
Member Avatar for Szeth
0
381
Member Avatar for JordanHam

I am just having trouble with the beginning stages here. I am just very confused on different syntax terms. I have a book here "Microsoft Visual C++.net" with all the installation and whatnot with it. It doesnt use the normal cin and cout but used Console::WriteLine and what not. Is …

Software Development c++ visual-basic
Member Avatar for JordanHam
0
133
Member Avatar for aaronmk2

Is their a way where the user could type Low to use the enum instead of typing 1? I know how to do this with strings, but am having trouble trying to figure it out using enums. [CODE] public enum Volume : byte { Low = 1, Medium, High } …

Software Development
Member Avatar for aaronmk2
0
126
Member Avatar for spitfire5295

ok so my code displays 0 every even and odd number can you explain to me how to fix this. i have a feeling it is the displayArray. This is what dispArray should do create a method called displayArray that takes an array of integers AND an integer as parameters. …

Software Development java
Member Avatar for spitfire5295
0
120
Member Avatar for triksterx

Hi everyone. Let me start by saying I have managed to learn quite a few things and solve pretty much any python problems using this site. So thanks to everyone who contributes to these forums. Now for my problem. I am having a hard time getting the .grid method to …

Software Development python tkinter
Member Avatar for woooee
0
1K
Member Avatar for atticusMom

I broke my foot and missed the first part of class where this was covered now I'm all confused. I have a password class and I must create within this class a static method of isValid that will accept a possible password value and return if it is valid. I …

Software Development java
Member Avatar for jon.kiparsky
0
142
Member Avatar for dougancil

I am trying to run several stored procedures from my code and I get the error message that my sp's can't be found, but if I remove all of them but one, my code executes fine. I've tried this way to run my sp's: [code] Dim oCmd2 As System.Data.SqlClient.SqlCommand Dim …

Software Development dataset open-source vb.net
Member Avatar for dougancil
0
129
Member Avatar for TrustyTony

I have left my source of information as docstring comment on code side. If you want to solve the problem yourself do not run the code. This code actually gives the correct answer. I have not reacted to the border case comment in my formula source as it is quite …

Software Development python
0
1K
Member Avatar for jsefraijeen

Hello sir's/ma'am ,i'm new to Arrays and i got an assignment to do but i'am having a problem in arrays and how to input a String... here's my code. [CODE]import java.util.Scanner; import java.io.*; class AddressBook { public static void main(String[]args) { Scanner in = new Scanner(System.in); Scanner ch = new …

Software Development java
Member Avatar for Lourdupinto
0
420
Member Avatar for archana amith

Hi, I want to call MySQL stored procedure in perl. I have tried like this: [code] use DBI; my $create_procedure = qq{ CREATE PROCEDURE simpleproc () BEGIN SELECT 'helloworld' As Messgae; END }; $dbh->do($create_procedure); $sql = "CALL simpleproc()"; my $sth = $dbh->prepare($sql); $sth->execute(); [/code] I am getting an error which …

Software Development mysql perl
Member Avatar for d5e5
0
2K

The End.