132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Vega_Knight

Hi masters,, how can i count how many words in sentences using pascal? thanks before and best regards.

Software Development pascal
Member Avatar for Vega_Knight
0
1K
Member Avatar for digitup1

I am trying to time the execution of a quicksort algorithm in C++ but for some reason it constantly returns 0 for me, which clearly can't be right! I don't know where I am gooing wrong, so any help would be greatly appreciated!I have the code done for arrays of …

Software Development algorithm c++
Member Avatar for template<>
0
191
Member Avatar for magnetpest2k5

Hello, I am looking into the matplotlib module to plot my data. The graph that I am interested is in the following code. Now I want to mention some labels over the each bar plot mentioning some string and values is there any function to do? Also I want to …

Software Development python
Member Avatar for GDICommander
0
216
Member Avatar for Kirielson

Thanks for helping me out with my coding last time. Now I have an error with a class not found for my servlet. In the log, the following shows up: [CODE]SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@1c0e45a cart.CartServlet java.lang.ClassNotFoundException: cart.CartServlet[/CODE] I've compiled all of the …

Software Development apache java
Member Avatar for Kirielson
0
136
Member Avatar for benjybob

hi, i have a small problem with the rand operator. at first i tried using it without srand but gave me the same value each time. i have inserted srand(time(0)); but my compiler throws me up these errors: 1>c:\users\ben\documents\university work\year 2\c++\code\myc++\spritelab\asteroidsgame.cpp(17): error C4430: missing type specifier - int assumed. Note: …

Software Development c++ gaming visual-studio
Member Avatar for benjybob
0
425
Member Avatar for a.muqeet khan

hello ppl i am a new member of the programming club it been a week since i begin to program and i am doing it persnaly so i am sorry if what i posted is stupid but i want u u guys to have a look and tell me whats …

Software Development c++
Member Avatar for a.muqeet khan
0
115
Member Avatar for subith86

Hi friends, I was trying out some inheritance related stuff and found something. I just want to know the reason why. I have a ParentClass and a ChildClass. Both have an integer named [B]commonVar1[/B]. Also both have a getter method of the same name. Here goes the code. [CODE]class ParentClassOT …

Software Development c++
Member Avatar for template<>
0
122
Member Avatar for hopefree

The problem is: Given two sorted lists, L1 and L2, then how i write a procedure to compute L1 n L2 (intersection) ? can anyone help me , please?

Software Development
Member Avatar for Mitja Bonca
0
157
Member Avatar for COL_Milkshake

I'm working on a program using heaps and I have a few errors that I can't quite figure out. The first is error C2143: syntax error : missing ';' before 'using' line 2 and the second is error C2011: 'Heap' : 'class' type redefinition line 8 [CODE]#include <iostream> using namespace …

Software Development c++
Member Avatar for template<>
0
110
Member Avatar for rohit2

Hi, I am trying to create an editor using JTextpane. Now I need to show a dynamic pop up menu while pressing Ctrl + space. But the problem is that I can trigger the pop up menu only by right click of mouse. The code snippet that I used is …

Software Development java
Member Avatar for mKorbel
0
186
Member Avatar for hilo890

I have a little program that I was testing strings with, for some reason when I add to much to a string variable, and run the program, the console cursor just flits around the screen (and the console doesn't clear, which is before any output was even supposed to happen), …

Software Development assembly
Member Avatar for Goalatio
0
144
Member Avatar for highflyer8

Hi, I don't understand the need for the while statement. Any help would be greatly appreciated. [CODE]double michel() { double x, y; do // The loop computes points on the graph of y against x. { x = 53.0*rand()/RAND_MAX; // x is the momentum. x is randomly generated. Min x …

Software Development c++
Member Avatar for template<>
0
113
Member Avatar for Nat_xo

Okay, So I'm currently working on my A2 computing project, and I am having slight difficulties updating and saving the data in my database when it is entered on a form in VB. I cannot find any reason why it wouldn't work, but if someone could suggest a better way …

Software Development dataset open-source sql vb.net
Member Avatar for Nat_xo
0
221
Member Avatar for andrewtrench

I have a foreign key linking two models. One is called ZumaDirectors, the other ZumaConsolidated. For some reason I cannot access fields on ZumaConsolidated from ZumaDirectors using foreign key. I can do this without a problem on ZumaDirectors with a foreign key linked to another table. I want to be …

Software Development python python-django
Member Avatar for Kruptein
0
160
Member Avatar for cdn88

Hello, I am having trouble understanding why I'm getting these errors. a4.c:106: error: expected expression before ‘int’ a4.c:106: error: too few arguments to function ‘ass_average’ a4.c:109: error: expected expression before ‘int’ a4.c:109: error: too few arguments to function ‘ass_min’ a4.c:112: error: expected expression before ‘int’ a4.c:112: error: too few arguments …

Software Development c perl
Member Avatar for Ancient Dragon
0
224
Member Avatar for Wakesta

What free C++ programming tools do people recommend? And just to check I would be able to run my programme from this tool?

Software Development c++
Member Avatar for Ancient Dragon
0
247
Member Avatar for makibao

please help me to create a student information portal using stucture and union program in c.it should contain five sudents. *for inputs we should use struct and for output we should use union and it also should have a controls...previous page, next page and escape for exit. i don't know …

Software Development c
Member Avatar for Ancient Dragon
0
138
Member Avatar for asif49

In my class there are 2 objects, I have to get the one which has the smallest size with a method that begins with [CODE]public String smallest()[/CODE] so what I've been trying to do is roughly the following... [CODE]if (object1.getSize() < object2.getSize) { return object1.getName; } } if (object2.getSize() < …

Software Development java
Member Avatar for sj5536
0
95
Member Avatar for Nosa09

[COLOR="Green"][B]hi everyone .. I hope to help me :) .. i have java code.. the main idea of it the user selected from menu the equation (liner - Cubic - Quadratic ) need of them and then user enter the value of x and y and then draw the main …

Software Development java java-swing
Member Avatar for sj5536
0
775
Member Avatar for info04

I want to write a program that asks the user to enter his date of birth and print the zodiac sign on the screen. The program should allow the user to enter his date of birth in the MM/DD/YYYY format. The program should also print the user's age on the …

Software Development c++
Member Avatar for CECS
0
2K
Member Avatar for TailsTheFox

Hello, It seems like a simple task, but I can't find a simple answer. How do you find out how much extra space you have on drive "X:\". Is there any simple command like; [ICODE]Size(X:\);[/ICODE]? Or can someone just give me a few lines of code, NOT 53! I just …

Software Development c++
Member Avatar for TailsTheFox
0
134
Member Avatar for Sturdy

hi all.. how i can check there are palindrome in textbox. e.g : i input "daniweb a bewinad" thanks and please help.

Software Development mathematics visual-basic
Member Avatar for Sturdy
0
819
Member Avatar for kitschkath

[ICODE]Dim li As ListItem Dim dTotal As Integer For Each li In ListView1.ListItems dTotal = Val(dTotal + CInt(li.SubItems(3))) Next txtgrade.Text = CStr(dTotal) 'returns the total value [/ICODE] data in LIST VIEW: 90 8 50 45 I used the codes above but I can only retrieve the values (45) ?? what …

Software Development listview visual-basic
Member Avatar for Jx_Man
0
1K
Member Avatar for AKJo

I have problems to play video files from different cameras with the media player supplied with Delphi. Does anyone know of a free compnent that I could test in stead?

Software Development delphi pascal
Member Avatar for dannyniu
0
108
Member Avatar for vb2learn

Hello Coders Need help I want to remove the lines that contain specific text. (Whole Line) Eg: Textbox1.Text = [code]learn lines dani knows everything web knows lines lines knows daniweb everything dani everything lines [/code] So textbox1.text will become and remove whole line that contains the word "daniweb" [code]learn lines …

Software Development vb.net
Member Avatar for vb2learn
0
2K
Member Avatar for NewOrder

i am trying to build a replay feature to my chess game. The way the chess program works in a nutshell. is that i have an array of the chess pieces that are printed on a board in winforms. here is a function: [CODE] public void PrintPieces(Pieces [,] pieces) { …

Software Development
Member Avatar for ddanbe
0
146
Member Avatar for navimir

How to display images from a folder along with image names in C#?? Plzz help

Software Development c#
Member Avatar for Mitja Bonca
0
1K
Member Avatar for xxmp

Is there any way to overload the assigment operator or it is not possible in java? Thank you very much

Software Development java
Member Avatar for JamesCherrill
0
116
Member Avatar for lelejau

Hello, I have this code: [code] void GetProcId(char* ProcName) { PROCESSENTRY32 pe32; HANDLE hSnapshot = NULL; pe32.dwSize = sizeof( PROCESSENTRY32 ); hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 ); if( Process32First( hSnapshot, &pe32 ) ) { do{ if( _stricmp( pe32.szExeFile, ProcName ) == 0 ) break; }while( Process32Next( hSnapshot, &pe32 ) ); …

Software Development c++
Member Avatar for thelamb
0
495
Member Avatar for cupcake33

Hi, I wanna ask.. I want to make a procedure of 1 second delay for 8088 so far here what I have [CODE]debounce: PROC NEAR PUSH CX delay: MOV CX, 6000H ;24576 in decimal L1: LOOP L1 ; POP CX RET debounce ENDP[/CODE] so, can someone please help me..I don't …

Software Development assembly
Member Avatar for cupcake33
0
469
Member Avatar for pseudorandom21

I have a DataGridView on a form that updates the datagridview automatically and will allow the user to manually edit the information. I need to save the information in the DataGridView somehow. I don't know what the best option would be. I could of course use a file to store …

Software Development
Member Avatar for pseudorandom21
0
112
Member Avatar for newbieha

how can i passing the list from addCard to printHand? [CODE] public void addCard(Card c){ ArrayList<String> list= new ArrayList<String>(); list.add(c.toString()); } public void printHand(){ for(String i:list){ System.out.print(i+" "); } }[/CODE] Thanks

Software Development java
Member Avatar for sourabh17
0
82
Member Avatar for anu07

Is it possible to do that? If so,can anyone give a theory or something? Thanks :) By the way I am using turbo compiler 3.0

Software Development c++
Member Avatar for anu07
0
178
Member Avatar for zack654

I would really want some advanced C++ programmer to answer me this question, so please help me I really need this answer. How can I really start programming with C++? Of course, I still have a lot to lean. I just learned classes and SOME of inheritance features, I write …

Software Development c++ gui
Member Avatar for zack654
0
150
Member Avatar for cse.avinash

Sir, how to take input from user as large as 2^64 and the perform its calculation. Please help me.

Software Development c
Member Avatar for rubberman
0
135
Member Avatar for gyuunyuu

I have found numerous examples involving only arithmetic operations but mine requires to deal with functions - min(x, y), max(x, y), sqrt(x), abs(x), fact(x). What I don't understand is how my program can interpret those functions and set the precedence for them. Examples: 4 + 5 -> 4 5 + …

Software Development c
Member Avatar for gyuunyuu
0
421
Member Avatar for ndeniche

This snippet is to create a user control that will only take numbers. Numbers will accept decimal values, for which the NumberBox is validated to take only one. The implementation for the control is the same as it is for the TextBox, since it is inherited from this class and …

Software Development vb.net
Member Avatar for PdotWang
0
2K
Member Avatar for spoon licker

And sorry for double-posting...It's years of frustration and waiting that's compelling me to desperately get an answer here. Thanks for all who are even willing to try and help because I've asked for some tips about this on countless other sites like this and no one has actually helped. I …

Software Development api c++ microsoft
Member Avatar for Saith
0
225
Member Avatar for SeePlusPlus2

Not really understanding the concept, why did they use "Person *pPerson = new Person("Susan Wu", 32);" and where did ".length();" come from? Also when "Rectangle *pRect" is put into a parameter, pRect is pointing at the address of the object rect, right? [CODE] #include <iostream> #include <string> using namespace std; …

Software Development c++
Member Avatar for rubberman
0
129
Member Avatar for crankyslap

Hey guys, I got this code to upload an FTP file which works great, but what do I do when I wnat to upload the contents of an entire folder? I mean, I could make a for-each but that would mean disconnecting and reconnecting to the FTP server alot of …

Software Development file-stream vb.net visual-basic
Member Avatar for crankyslap
0
2K
Member Avatar for bfprii

I do not understand why the pointer addition is failing. [CODE] char *pipebuf=new char[40001]; CommandRobot *cr= (CommandRobot*)pipebuf; cr->command=2; DWORD *rooms=(DWORD*)(cr+1); *rooms=100;[/CODE] For some reason after executing the value of pipebuf only contains the value of command, it does not contain the value of 100; Yet, when I remove the new …

Software Development c++
Member Avatar for Narue
0
160
Member Avatar for Doughnuts

I am trying to add two numerical char arrays such as: [CODE]"124" and "589"[/CODE] I wrote functions to reverse the string and add the strings, and it works for strings like "123" and "456", but when the last digits are greater than 10, I don't know how to carry it, …

Software Development c++
Member Avatar for Doughnuts
0
353
Member Avatar for omaiaa0p

Hi everybody, I have a connection in my database, in this I have an interface which checks if a record has already been inserted in a database or not, when I implement this in a result set, it throws an illegalState Exception, I also have another result set doing a …

Software Development java
Member Avatar for masijade
0
92
Member Avatar for nightrev

Write a Python function that will take a string of the form “4/11/2010” and print the corresponding date in the form “Apr 11, 2010”. Make use of strings, lists, and appropriate operators/methods. In particular, define a list that contains the month abbreviations so that you can convert without needing any …

Software Development python
Member Avatar for Legnoduro
0
119
Member Avatar for constntine

I am working on a project and coding in Python 3.1 where I need to find a string in a file. I have already considered reading the file to a string and then using rfind() on it, but that does not seem to be efficient, seeing as how I expect …

Software Development file-system python seo
Member Avatar for snippsat
0
541
Member Avatar for atticusr5

hello all, I am trying to make a menu driven program that uses a while loop and a switch in main. When i choose #1, the code seems to work. However when I type in #2, and enter data, the program goes into an infinite loop, because the menu is …

Software Development c++ ios
Member Avatar for WaltP
0
143
Member Avatar for iamcreasy

What happens when I set the value of an integer to NULL? I print it out / debug it, i get the value zero. Even I can use the NULL assigned integer to initiate another integer. Well, then what is the point of being NULL? Why set it to zero? …

Software Development c++
Member Avatar for template<>
0
19K
Member Avatar for LloYdZ

can u help me in my assignment: [B]make a program that would display the figure as shown. use a WHILE structure and a method to implement a task.[/B] this is the one i made: please help me what are the missing codes there.. #include <iostream.h> #include <stdio.h> #include <conio.h> using …

Software Development c++
Member Avatar for ntrncx
0
92
Member Avatar for harinath_2007

Hi.. i am getting authentication error while sending mail from my java application.. my java application makes use of SMTP server.. how to solve this..????

Software Development java
Member Avatar for masijade
0
161
Member Avatar for NewOrder

i created a class that i want to serialize each time a move is made on the chessboard. [CODE] class ClassMoveToSerialize { int[] StartPosition; int[] EndPosition; Dictionary<int[], int[]> serialized; public void DataToSerialize(int rowStartSerialize, int columnStartSerialize, int rowEndSerialize, int columnEndSerialize) { MessageBox.Show("" + (number = int rowEndSerialize+columnEndSerialize)); //it isnt finished, i …

Software Development
Member Avatar for NewOrder
0
153

The End.