132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bookworm619

I thought I did perfectly but I want the histogram to like the graph: [code=cplusplus] #include <iostream> #include <cstdio> #include <ctype.h> #include <cstdlib> using namespace std; int main(int argc, char** argv) { int i, cols ; cols = 50 ; int line = 60 ; int c; int max = …

Software Development c++
Member Avatar for mitrmkar
0
100
Member Avatar for dobado

i need a prog to find the num of solution possible for n queen can anyone help???? waitin 4 a reply as soon as possible...... thx...

Software Development c
Member Avatar for tesuji
0
126
Member Avatar for dc_24l

what is the equivalent function of len in vb6 in c #? example is: VB: string s; s = len(txt1.text) what is len's equivalent function in csharp?

Software Development
Member Avatar for vinaya
0
206
Member Avatar for sr0867

I am replacing a single quote by double quote in a String I am getting an error Method replaceAll(java.lang.String, java.lang.String) not found in class java.lang.String. my jdk version is 1.2.2 Can anyone help me so that i can use the same function without changing my java version

Software Development java
Member Avatar for sr0867
0
114
Member Avatar for suxxor

pushl $3 pushl $2 call power addl $8, %esp pushl %eax pushl $2 pushl $5 call power addl $8, %esp where shall save the return value of function power after it`s second calling , i mean probably in %eax , but shall be overwritten the old value of %eax or …

Software Development assembly
Member Avatar for suxxor
0
90
Member Avatar for Traicey

The code below suppose to ask a user the person's name and compare that name with the names in the file and if found it must display the name's details such as Age and gender and ask the user if s/he wants to edit the person's details if the user …

Software Development c++
Member Avatar for Traicey
0
84
Member Avatar for myleila

[B]I have problem with dijkstra algorithm [/B] [B]I want to write it in c++ and can not describe it in c++ //[/B] [B]please help me[/B]

Software Development algorithm c++
Member Avatar for jephthah
0
185
Member Avatar for clouddragon

hello, I have to write a program that draws a chart from dictionary entries. I am able to make a draw a chart however it is unsorted. How can i get it sorted. Please help asap. THANKS in advance. [CODE]from random import shuffle from graphics import * def main(n): win …

Software Development python
Member Avatar for vegaseat
0
168
Member Avatar for NycNessyness

Hello guys. I wanted to know how I can go about writing what is selected in a Jcombobox to a datafile. This is an example of what I'm trying to do but when I compile i get an error. How can i correct the line "output.writeUTF(number.getSelectedIndex());" [code=java] String[] numbers = …

Software Development java
Member Avatar for masijade
0
105
Member Avatar for Metalsiege

I've heard that pointers can be a pain in the butt to implement and now I know.. Basically, I'm supposed to input a last, first and middle name. Then compute the size needed for a dynamic array to hold the full name. After that dynamically allocate the array, check DMA …

Software Development c++
Member Avatar for Metalsiege
0
86
Member Avatar for phantom715

I have a basic program that access a local Access database, reads data from it into a datagrid, and then allows me to manipulate it by using textboxes. I can add, delete, and search for records. I want to remove the textboxes from the equation completely. Is there any way …

Software Development vb.net
Member Avatar for Jx_Man
0
102
Member Avatar for gabanxx

can u spot the error in this code.. [CODE] Private Sub fncExcelExport(ByVal strSql As String) 'fncExcelExport("SELECT * FROM tbl_rop WHERE Name_User ='" & (TextBox1.Text) & "', Date_of_birth= '" & (TextBox2.Text) & "' , Hobbies='" & (TextBox3.Text) & "' , Phone_Number ='" & (TextBox4.Text) & "' where Name_User = '" & …

Software Development assembly dataset sql vb.net
Member Avatar for gabanxx
0
220
Member Avatar for saurabh.verma

Hi, i am creating a project and i am having a problem i have created an image in a rectangle using the following code: [ICODE] Dim d As New Rectangle(Width - 127, 8, 22, 15) e.graphics.DrawImage(My.Resources.close, d.Location)[/ICODE] now the problem is that if the user click on the image, i …

Software Development visual-basic
Member Avatar for selvaganapathy
0
74
Member Avatar for buddy1

I have to find the largest item in an arry as a recursive function. Can't seem to get it right. Any ideas. [CODE]#include <iostream> using namespace std; int maxArray( int anArray[], int n ); int main() { int anArray[4] = { 1, 6, 8, 3 }; cout << "the largest …

Software Development c++
Member Avatar for Duoas
0
110
Member Avatar for faughnan

Ok, im almost done with my program all i need now is some scripts. I need to know how i can make a button open a second form in my project. I also need to know how to open notepad with a button. I really need help i will greatly …

Software Development visual-basic
Member Avatar for Jx_Man
0
96
Member Avatar for Jennifer84

I have a wondering. I am using something called ZedGraphControl to draw a Graph. I have managed to do all this work, to draw a Graph out of different values. The problem is that if I have drawed a graph and change some values and draw a Graph again, the …

Software Development c++
Member Avatar for Jennifer84
0
117
Member Avatar for joshuabraham

os version =windows xp hi guys i'm having problems using pygame the following code just does not seem to work. Code: ( text ) 1. clock=pygame.time.Clock() 2. while True: 3. sound1.play() 4. clock.tick(60) 5. pKeys = pygame.key.get_pressed() 6. Eves=pygame.event.get() 7. villian.face() 8. villian.hert() 9. if Eves[KEYDOWN] and pKeys[K_UP]: 10. hero.moveup() …

Software Development python
Member Avatar for joshuabraham
0
177
Member Avatar for janicecbeginner

Hey all! I am trying to build this code and I am running into a bit of trouble. Visual c++ gives me this error: >Profile.cpp 1>c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.cpp(101) : error C2027: use of undefined type 'Post' 1> c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.h(6) : see declaration of 'Post' 1>c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.cpp(101) : error …

Software Development c++ visual-studio
Member Avatar for VernonDozier
0
190
Member Avatar for ccandillo

I am still reading the learing python o'reilly book and not sure the best way to approch my problem. Given c:\dir1\dir2\dir3. I want to zip all files in dir3 if those files are older than 30 days using 1 zip file (ie. dir_3_files.zip). If all files in dir3 are older …

Software Development python
Member Avatar for woooee
0
1K
Member Avatar for FaMu

hi, I have this method [code=java] public void record() { Scanner input = new Scanner( System.in ); int sid; for ( int counter = 0; counter < length; counter++ ) { System.out.println("Student " + (counter+1) + " Record"); System.out.println("****************"); System.out.print("Enter SID: "); a[ counter ] = input.nextInt(); sid=a[counter]; if (isUnique(sid)) …

Software Development java
Member Avatar for FaMu
0
148
Member Avatar for Clockowl

Hey, When quick googling didn't really clarify, I'd like to ask here. When declaring an N-dimensional array, 2D in this case, how to set them all to zero? For 1D arrays it should work with type name[n] = {0}; Is the same approach also guaranteed to work for N-Dimensional arrays …

Software Development c
Member Avatar for Salem
0
273
Member Avatar for Bouras

sorry figured out i put my 1st post on wrong section ;s:S... put on java script.. heres a copy/paste.. Hey... I present myself.. Youssef, 17 years old and i'm currently on my second year of the IB Program ... Computer IB HL i took. As some of you might know …

Software Development gui java java-swing user-interface
Member Avatar for Ezzaral
0
119
Member Avatar for begin02

Problem: here's the code. [code=pascal]program fun; Uses wincrt; var y:integer; ans:integer; function User(input:integer):integer; var x:integer; ans:integer; Begin readln(input); ans:=1; if (input>0) and (input<100) Then begin ans:=ans+input end else begin x:=User(input); halt; end; User:=ans; End; Begin ans:=User(y); writeln(ans); end.[/code] when run all work perfectly. when i entered 99 i got the …

Software Development pascal
Member Avatar for Duoas
0
104
Member Avatar for zoner7

So I decided that I wanted to make a Sudoku creator and solver for fun. My plan is to fill a sudoku board with random, however, compatible answers using brutefruce. I simply check random numbers against the two prerequisite rules for a legitimate Sudoku: a given cell cannot contain the …

Software Development algorithm c++ puzzle
Member Avatar for Duoas
0
178
Member Avatar for Nameste

alright, i'm just learning c++ and i've put a code in to find the square of a number this is the code i used; [ICODE]#include<iostream> void main() { char cReply; int iNum, iSquare; std::cout << "Do you want to find the square of a number (y/n)?"; std::cin >> cReply; while(cReply …

Software Development c++
Member Avatar for Nameste
0
121
Member Avatar for veledrom

Hi, I use VB6 with Oracle database. I also use Adodc and datagrid for retrieving data from database. If i do search with [inlinecode]Select.....Where name IN(LIKE) '" & Text1.text & "'[/inlinecode] does return nothing. I have to type exact value be searched. Why do you think that IN or LIKE …

Software Development oracle visual-basic
Member Avatar for veledrom
0
90
Member Avatar for jimbox123

hey everybody I'm taking a computer class right now and one of the projects I need to do is create a very simple pizza-ordering menu. At this pizzeria, there is only one kind of pizza you can order: regular (cheese) with no toppings. Your choices are what size of pizza, …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for jamesdietriq

firstly hi everyone. i made a calculator using mips assembly but it works with integer numbers. a normal calculator must be work with double or float numbers. i seek for it on the internet but i cant find how to use float double numbers in mips. finally i ask ,does …

Software Development assembly
Member Avatar for jamesdietriq
0
136
Member Avatar for savinki

I tried to initialized const char pointer to pointer variable. Following is the way i did it.but once i run the program it thows an error(Pops up "encountered an problem and needs to close... Tell microsoft about this problem...") const char * FB="test"; const char **Feedback ; Feedback = &FB; …

Software Development c++
Member Avatar for Salem
0
95
Member Avatar for chrisdent1986

Hi there I am creating a system where I link a .net app to a oracle db and am currently working on linking it to the database so that I can add new users for oracle here is my code: [CODE]Imports system.Data.OracleClient Public Class Form1 Dim OracleConn As New OracleConnection …

Software Development android open-source oracle vb.net
Member Avatar for chrisdent1986
0
143
Member Avatar for allopiloping

[code] Private Structure word Dim b1 As Byte Dim b2 As Byte Dim b3 As Byte Dim b4 As Byte End Structure Private Function DoubleToWord(ByVal n As Double) As word DoubleToWord.b1 = Int(DMod(n, 2 ^ 32) / (2 ^ 24)) DoubleToWord.b2 = Int(DMod(n, 2 ^ 24) / (2 ^ 16)) …

Software Development vb.net
Member Avatar for allopiloping
0
79
Member Avatar for paul1145

[code] 'language = Visual Basic 6 Public Sub CreatePlayList(ByRef songs() As String, ByVal name As String) Dim i As Integer Set listCollection = frmMusic.wmplay.playlistCollection Set list = listCollection.newPlaylist(name) frmMusic.wmplay.currentPlaylist = list For i = 0 To UBound(songs) Set wmpMedia = frmMusic.wmplay.newMedia(songs(i)) frmMusic.wmplay.currentPlaylist.appendItem wmpMedia Next End Sub ' I believe the …

Software Development visual-basic
Member Avatar for paul1145
0
200
Member Avatar for Arctic wolf

Hello everyone, I was wondering how can I make a precise delay that is shorter then 1ms on C++(I need it to drive a servo motor via PC)? If I understand correctly the standart delay function has a resolution of 1ms, so it won't do it... Thank you, A.

Software Development c++
Member Avatar for Arctic wolf
0
122
Member Avatar for jainendra.shah

hello frds I want to drag and drop all label created crossponding to checklist box's checked item. But problem is only move last created label. other give no responce. help me.. my code is. public CheckedListBox chk; private void Form1_Load(object sender, EventArgs e) { chk = new CheckedListBox(); chk.CheckOnClick = …

Software Development
Member Avatar for jainendra.shah
0
98
Member Avatar for timdog345

I need to write a program that reads a file consisting of students' tests scores in the range of 0-200. I need to break them into ranges :0-24, 25-49, 50-74, 75-99, 100-124, 125-149, 150-174, and 175-200. Then I need to Output the score ranges of the students. Also I nee …

Software Development c++
Member Avatar for timdog345
0
139
Member Avatar for boudie

Formdocs has given me the following code. What I am trying to accomplish is make the form undeleteable without a password. While the code kinda works all you have to do it select cancel and you can delete the record. any Ideas other than go back to class and pay …

Software Development vb.net
Member Avatar for Jx_Man
0
85
Member Avatar for CodeBoy101
Member Avatar for CodeBoy101
0
123
Member Avatar for virgilio

Hi I'm now into data structures: this is the problem: string s = "abcdef" char[] mychar = string.TocharArray(); int Length = s.length; StringBuilder sb = new StringBuilder(Length); -------Basically I need to construt a new string with the last two character iterated twice if the string = the same string. does …

Software Development c c# c++
Member Avatar for chsarp_vijay
0
89
Member Avatar for zion_neo

How can we enter a table under the list box. And how can we edit the content on each cell of table

Software Development visual-basic
Member Avatar for zion_neo
0
75
Member Avatar for Fatema Bhadka

i wnt to knw how do i provide security to my software before handing it over to the client so tht he cannot misuse it can ne one help urgently required

Software Development piracy visual-basic
Member Avatar for VIeditorlover
0
84
Member Avatar for fujilec

I'd implemented what i need for the project but i found that the code is lengthly and not well practice... Some more i found that the code keep repeating in some kind of format..... However, at the moment i still thinking on the way to simplify it...Thanks if anyone can …

Software Development vb.net
Member Avatar for fujilec
0
127
Member Avatar for Gibbie

Howdy all. I'm only in college for programming and am only in the my 3rd month of C++, and I'm working on a program now, just for fun and practice, and need some help. I'm making a MineSweeper game that will run in Command Prompt by making a grid of …

Software Development c++ programming-construct
Member Avatar for Alex Edwards
0
117
Member Avatar for savinki

can someone please explain whats wrong with the below code segment? My intention is to assign characters in pointer "p" to pointer "a" one by one until the end. but this throws run time exception. I want to do assign character by chater without assigneing the entire pointer as a …

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for zawpai

Hi, Why I get the errors when using 'friend function'? [CODE=cpp] // friend function as bridges on two different objects #include <iostream> using namespace std; class alpha { private: int data; public: alpha() { data = 3; } friend int frifunc(alpha, beta); // friend function }; class beta { private: …

Software Development c++
Member Avatar for zawpai
0
123
Member Avatar for FreezeBlink

Just noticed an odd little problem. Instead of explaining it, take a look at this IDLE run: [code]>>> ================================ RESTART ================================ >>> class test: eggs = True >>> var1 = test() >>> var2 = "text" >>> type(var2) <type 'str'> >>> type(var2) == str True >>> type(var1) <type 'instance'> >>> type(var1) …

Software Development python
Member Avatar for Ene Uran
0
264
Member Avatar for msupstream

Hi, I am currently using a C++ library (live555) to which I have added my own subclass, and this work is my first experience with C++. I need to get access to a pointer that is a private pointer in the parent class. Because I am using an exisiting library …

Software Development c++
Member Avatar for msupstream
0
197
Member Avatar for mustafaneguib

hey guys, how are you all. i am having a little problems in linking my files. i am using gcc compiler. the command line that i use is g++ -c player.cpp to create the first object file player.h [CODE=c++]class Player_Type { private: int id; string fname; string lname; string team; …

Software Development c++ file-system
Member Avatar for mustafaneguib
0
166
Member Avatar for _Nestor

I keep getting errors when i try and use the vector class I have an object vector<CSquare*>m_OldSquare; however when i try and add elements to the list [code] CSquare** tempArray = m_FocusBlock->GetSquares(); for(int i=0; i<4; i++) { m_OldSquares.push_back(tempArray[i]); } [/code] I get this error unresolved external symbol __imp___CrtDbgReportW referenced in …

Software Development c++
Member Avatar for mitrmkar
0
79
Member Avatar for MiTiM

I'm trying to read two data (different types) from binary file (First I had written these data in it). I have problem with output. it's really unexpected: 0.000000000000000000000000 and 10000. Where's the problem in reading double data type? (OS: win xp; compiler tc 3.0; similar result i get with Visual …

Software Development c file-system os-x
Member Avatar for MiTiM
0
2K
Member Avatar for hot.com

Hello every, I have a problem in scheme programming. I am begneer in scheme programming.I use Drscheme tool. my problem I want to write a program that spell in integer numbers without using (list or map) just a normal function that checks the parameter of the function if it a …

Software Development
Member Avatar for Duoas
0
82

The End.