43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for piotr_kast

I had code: [code] Program.cs ---------- using System; class Exercise { static void Main(string[] args) { People.Person man = new People.Person("Hermine Sandt", "Male"); 1 HighSchool.Teacher staff = new HighSchool.Teacher("Vice Principal"); Console.WriteLine(); Console.WriteLine("Press any key to continue..."); Console.ReadKey(); } } Persons.cs ---------- using System; namespace People { public class Person { …

Software Development
Member Avatar for piotr_kast
0
106
Member Avatar for shazzy99

Which method can be used to set the values in combo box from within code?

Software Development
Member Avatar for LizR
0
139
Member Avatar for dvsConcept

im currently a college student and im studying c++ at the moment. i need to create a multi array for name and password (but it will be from user input) not to mention i cant write to this array until i confirm it doesn't already exist in this array. Im …

Software Development c++
Member Avatar for dvsConcept
0
82
Member Avatar for smithss

Hi, so i wrote a few of the programs on my own after all the help previosuly but i've got stuck in this one here. The point is the make the string alteast 'n' characters long by padding spaces to its right. [code=c++] #include <iostream> using namespace std; void padRight(char …

Software Development c++
Member Avatar for smithss
0
139
Member Avatar for winrawr

what would I use pointers for? I used to have a vague understanding of a pointer... like, *ptr is the value pointed to by the pointer, ptr is the address the pointer is pointing to, and &ptr is the address of the pointer itself? or something? the one example I …

Software Development c++
Member Avatar for winrawr
0
109
Member Avatar for robotnixon

So I'm working on a C++ program and part of it involves converting decimal numbers to hexadecimal. I have been using printf("%02X",number) to do this, but I'd like to print to a text file. Just wondering if anyone knew of a way to send formatted text to file rather than …

Software Development c++
Member Avatar for Ancient Dragon
0
92
Member Avatar for Alishaikh

Please help me, I need to turn this in tomorrow. I need to do it so I can make my stick figure move using arrow keys. I've made everything, but I don't know how to implement the keys. Can someone please guide me? And give me sample code and where …

Software Development java
Member Avatar for Alishaikh
0
453
Member Avatar for zawpai

Hi, Could anyone give me some suggestion? How can I detect the button is pressed continuously? Actually, I use [ICODE]Command1_MouseDown[/ICODE], but it is not succeed. I would like to do the application continuously if the button is pressed. If the user release (mouse up), I will stop the application. How …

Software Development visual-basic
Member Avatar for Jx_Man
0
270
Member Avatar for gouki2005

[CODE]namespace Empleados { class Empleados { private int edad; static private int numeroemp = 0; public Empleados(int edad) { this.edad = edad; Empleados.numeroemp ++; } public void mostrarInfo() { Console.WriteLine("el empleado tiene {0} aƱos",edad ); Console.WriteLine("Numero de empleados creados {0} ", Empleados.obtenernumeEmpledos() ); } static void Main(string[] args) { int …

Software Development
Member Avatar for BlackSun
0
88
Member Avatar for inked

hi ive got this segment of code that im struggling with the code does what i want it to do in the sense that if i put in the filename of the file that i have created it works but for a random user the code will not produce the …

Software Development perl regex
Member Avatar for KevinADC
0
122
Member Avatar for P.I.M.P

3. Using User Defined Functions do the following question: my_array = { 3, 61, -5, 38, -17, 21, 92, -64, 41, -6} Find the sum of odd and even numbers in the array !!please help me to answer this question!!

Software Development c++
Member Avatar for VernonDozier
0
143
Member Avatar for shazzy99

Getting the following error Error `'System.StringSplitOptions' does not contain a definition for 'RemoveEmptyEntires'` string[] lines = File.ReadAllLines(fileName); char[] delim = new char[1]; delim[0] = ' '; foreach (string line in lines) { if (line != string.Empty) { string[] words = line.Split(delim, StringSplitOptions.RemoveEmptyEntires); // here you've got all your words in …

Software Development
Member Avatar for shazzy99
0
122
Member Avatar for ahspats

have a very simple question: how can i write something into a .txt file? could write only few lines of code and got stuck. have no idea what to do next. can someone help? [CODE] #include <stdio.h> int main(){ FILE *textfile; textfile = fopen("test.txt", "w"); return 0; } [/CODE]

Software Development c
Member Avatar for ahspats
0
98
Member Avatar for Clockowl

Hey guys, I'm getting this kinda vague error: Zeal\src\window.cpp|19|error: cannot declare member function `static unsigned int zeal::window::getWindowCount()' to have static linkage| With the following code (only what I think is needed, if you need more please do ask) window.h [code=cpp]namespace zeal { class window : public element { public: static …

Software Development c++
Member Avatar for Clockowl
0
87
Member Avatar for a10m84

Hello , I am developing an application in realtime and I need to update some values in an array. What is the best method to add a value to every position of an array? Thank you for your help.

Software Development c++
Member Avatar for Salem
0
145
Member Avatar for RahulV

Hai, Once again im here with a problem. Can u help me write a program to search a file in the project folder. I also want to use a progress bar to represent the search status. Can anyone help!!! Thank you!!!

Software Development visual-basic
Member Avatar for RahulV
0
481
Member Avatar for Coyboss

I think I have 90+ percent of the coding right for this but I am having an issue with the program stopping after the "welcome to payroll program statement" I can't figure out what goes after while on the liine after the boolean stop line. Any help would be greatly …

Software Development java
Member Avatar for Coyboss
0
571
Member Avatar for deathdarts

Hi everyone, I am trying to read off the "System" Event Log of a remote system. I am getting the following error `"Cannot open log System on machine 10.50.212.129. Windows has not provided an error code"` when i try to access the Application log, my application encounters the same error …

Software Development open-source
Member Avatar for Ramy Mahrous
0
121
Member Avatar for localp

i am trying out this code that i got from one of suns tutorials, it deals with echoing an input back to the command prompt. this is where i got the code [URL="http://java.sun.com/docs/books/tutorial/networking/sockets/readingWriting.html"]http://java.sun.com/docs/books/tutorial/networking/sockets/readingWriting.html[/URL] this is my code, and i am getting the message [COLOR="Green"]"Couldn't get I/O for the connection to: …

Software Development java
Member Avatar for localp
0
228
Member Avatar for daviddoria

This problem comes up quite a bit for me. I'll have a project that I work on for a couple months (the point is that it is a large project with multiple classes, etc). As an example, say I made a program that draws a square. So I have this …

Software Development c++ visual-studio
Member Avatar for daviddoria
0
100
Member Avatar for caps_lock

Hello My recursive file scan is not doing what I want it to do. I want it to be able to go through all roots (drives)... With no user intervention, so without including "C:\\" or "." as a string in the source, or without a TextIO.java class. [ICODE]import java.io.*; import …

Software Development file-system java
Member Avatar for caps_lock
0
188
Member Avatar for kentaki

I need help about a question FOLLOWİNG (please use the c++) Question is: 1-) You are given a set witl 10 elements. X: { 23, 13, 25, 43, 45, 26, 10, 2, 27, 44 } or you can choose any 10 elementsƧ it is not problem. 2-) You are asked …

Software Development c++
Member Avatar for iamthwee
-2
146
Member Avatar for Stefano Mtangoo

Hi all, I have been trying to write and retrieve data from SQLite Database. So far I can make connection, cursor; but cannot get table populated(fails to execute SQL statement). Since I read somewhere that it is recommended to use ? instead of % then I tries it but I …

Software Development python sqlite
Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for mrjoli021

I want to incorporate a file browser into my windows app so users can select which file to copy. I am running vs2008.

Software Development file-system
Member Avatar for mmaster
0
162
Member Avatar for knowledgelover

hi there, is there a browse control in C# windows application form , if so , plz, how can I add it to my toolBox and how can I use it to allow the user to browse any file she wants, if not how can I implement the idea og …

Software Development c#
Member Avatar for mmaster
0
183
Member Avatar for Ghostenshell

Can anyone simplify this for me? I don't know if it is going to work I tried to adjust the code to fit on the page. Might have to delete the extra [ICODE]+\[/ICODE] [CODE=python]def main(): try: infile = open('text.txt','r') files = infile.readlines() lower,count,blank,dig = 0,0,0,0 #Counting uppercase for line in …

Software Development python
Member Avatar for Stefano Mtangoo
0
972
Member Avatar for PhiberOptik

Hey guys, I'm creating this as an admin program for another program I've made. Basically all that happens at this point is show a bunch of buttons and the titles of the buttons are the computers that the using accounts from my MySQL database. This is just the panel, but …

Software Development java java-swing
Member Avatar for PhiberOptik
0
111
Member Avatar for altrim
Member Avatar for jimbob90

program read from cin what the user wants to do ("add" a name to list) or ("lookup" a name). in add just add whatever was read in to the file. in lookup print out a line of text with the string that wa read in. hopefully that makes some sense …

Software Development c++
Member Avatar for deepglue555
0
183
Member Avatar for RayvenHawk

I'm doing an assignment for class and we're suppose to write a program that pops up a window with YES/NO/CANCEL buttons and when the user pushes a button another window pops up displaying what button they clicked. I wrote up the code and it does work, but it takes several …

Software Development c++
Member Avatar for RayvenHawk
0
118
Member Avatar for nor_d83

Hello there, I am doing my 'budget control system', and I want to make substraction from the value i entered in a textbox (budget for the year), with the sum of all the value in the 8th column of the MS Flex Grid data (which is the money used). Can …

Software Development visual-basic
Member Avatar for nor_d83
0
172
Member Avatar for arazum

How to initialize a const array with size defined in template before the constructor call?? [CODE=c++] template<int s> class something { public: const int array[s]; something(void) // uninitialized member `something<s>::array' with `const' type `const int[s]' { } }; [/CODE] razum

Software Development c++
Member Avatar for arazum
0
175
Member Avatar for serkan sendur

1) vi . profile shows alias for commands, you can set the new ones. 2) esc = displays the file and folders in a numbered fashion. 3) esc – or esc k ( esc n does the same thing reversely) shows the previous commands 4) cd esc \ [type something] …

Software Development shell-scripting
0
57
Member Avatar for dmkp

Hi, I was in the understanding that applications created with Codegear/Delphi did not need any external libraries and that it compiled all the code into the exe? However with Delphi 2009 (using C++), my programmes were asking for rtl120.bpl, and various dlls before it could be used. I was wondering …

Software Development delphi pascal
Member Avatar for dmkp
0
170
Member Avatar for xtremerocker

I was viewing the practice problem section and decided to give a go at them, anyways, this is my Palindrome dector code. Could someone just take a look at it and explain to me if there is a better way to execute this problem? - michael [ICODE]// Palindrome check by …

Software Development algorithm c++
Member Avatar for xtremerocker
1
115
Member Avatar for kaczmar86

I have function which randomizes numbers: [CODE=csharp] public int losuj() { Random losowanie = new Random(); int los = losowanie.Next(0, 9); return los; } [/CODE] I want to fill array with numbers generated by [iCODE]losuj[/iCODE] function, so I wrote: [CODE=csharp]for (int i = 0; i < 9; i++) for (int …

Software Development
Member Avatar for ddanbe
0
162
Member Avatar for smithss

Hi i have written a standard library function 'strcat' on my own, even though the output seems ok, can someone please verify if what i'm doing is right? i get confused using pointers. [code] void mystrcat(char *a,char *b) { while (*a++ != '\0'); *a--; while (*a++ = *b++); } [/code] …

Software Development c++
Member Avatar for smithss
0
115
Member Avatar for Squirrel1984

When an object is created are these stored on the client CLR or in the Server CLR? or if im completly off where are objects stored after instantiation?? Thanks in advance :)

Software Development client-server storage
Member Avatar for Squirrel1984
0
117
Member Avatar for tableray

i want to fill up the userID and password fields of the yahoo mail login page with the click of a button on the form but just cant get it right. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser1.Navigate("https://login.yahoo.com/config/login_verify2?.intl=sg&.src=ym") Private Sub Button1_MouseClick(ByVal sender As Object, …

Software Development vb.net
Member Avatar for Teme64
0
183
Member Avatar for dinilkarun

Please help me in automatinng the following in my EXCEL sheet using VB. I want to make my first two rows as Repetitve in every page of print.In excel it can be done as PAGE SET UP->SHEET -> Print titles -> "Rows to repeat at top". here i can choose …

Software Development visual-basic
Member Avatar for Comatose
0
138
Member Avatar for tomtetlaw

i am doing the 'getting started' tutorial that comes with the dark gdk, and i ran into this error: c:\documents and settings\tom\my documents\visual studio 2008\projects\hello world\hello world\main.cpp(6) : error C2065: 'ā€œanimatedsprite' : undeclared identifier heres my code(that i copied from the pdf): [code=c++] #include "DarkGDK.h" void DarkGDK ( void ){ …

Software Development c++ pdf visual-studio
Member Avatar for springwater
0
170
Member Avatar for Luckymeera

I have a simple Rectangle drawn on Canvas. How can I retrieve the color on the Canvas AFTER the Oval is drawn without using Image, say, at the coordinate (100,100) ??? could anyone help plz...

Software Development python
Member Avatar for vegaseat
0
123
Member Avatar for lameassthemity

I'm writing a class planner, where the user is given the opportunity to enter certain information about their classes and have it printed back to them upon request. The problem I'm having is that whenever I enter any text into the input with a space in it, it returns me …

Software Development c++ perl
Member Avatar for zalezog
0
134
Member Avatar for csharplearner

Hi all, Is there a way to check what is the error for not displaying the code correctly while practising it in a website? Just like when the s/c is compiled in the vs editor. I tried using trace.axd but i found it less helpful. when i wanted to make …

Software Development c#
Member Avatar for csharplearner
0
86
Member Avatar for RahulV

Hai, I have a multi-line TextBox (Text1), whenever i click a button (cmdPrint) the contents of this Text1 should be printed out to a Printer selected using a Comon Dialog Box (cdlgPrint). Can u help! An explanation to ur codes will be highly appreciated. Thanks.

Software Development printer visual-basic
Member Avatar for Comatose
0
256
Member Avatar for revenge2

I need help understanding classes better. [CODE=Python] class person: def sayHi(self): print('hello world!') p=person() p.sayHi() [/CODE] here what is the use of 'self'?, I've read two tuts on this but don't quite understand fully.... [CODE=Python] class person: def _init_(self, name): self.name=name def sayHi(self): print('hello, my name is', self.name) p=person('rs') p.sayHi() …

Software Development python
Member Avatar for sneekula
0
220
Member Avatar for smelf1

I am able to read the data from the application event logs but when i try the security i get an error Requested registry access is not allowed. {"Cannot open log security on machine .. Windows has not provided an error code."} {"A required privilege is not held by the …

Software Development vb.net windows-vista
Member Avatar for smelf1
0
162
Member Avatar for t_yalthis

hi everybody, my connection code is like this: Set conn = New ADODB.Connection With conn .ConnectionString = "Provider = Microsoft.JET.OLEDB.4.0; data source = C:\Documents and Settings\kullaniciadi\Desktop\reservation97.mdb; persist security info = false" .Open End With This database (reservation97.mdb) is going to be moved to a server.. How is going to be …

Software Development open-source visual-basic
Member Avatar for Comatose
0
668
Member Avatar for guest7

Hi, I am getting the following error while compiling: "Undefined symbols: "main_class::binary(int, std::vector<int, std::allocator<int> >&, int)", referenced from: main_class::identity(int, int, int)in test_sat.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [test] Error 1" Following is the code : [ICODE]int main_class::identity(int rowno, int size_row, int loop_iterate) { …

Software Development c++
0
50
Member Avatar for serkan sendur

i want to create a document using apache xml parser, can you guys provide me with sample code? After creating the document in the memory, i want to save it as an xml file.

Software Development apache c++ xml
Member Avatar for Comatose
0
99

The End.