132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for myk45

Hello, i needed suggestions regarding the book "Art of Computer Programming" by Donald E Knuth. im an undergraduate Computer Science student. i would like to know more about the book before i buy it. So, any reviews? Reviews as to how the Math in it is(i heard there are a …

Software Development c
Member Avatar for myk45
0
109
Member Avatar for fat0ali0ma
Member Avatar for SgtMe
0
81
Member Avatar for Urv73

I have a program that lets me enter participants in a race, their startingnumber, their start time and end time. The program then tell me who won the race and the winning time. This is my program: [CODE] #include <iostream> using namespace std; int main () { int start_Nr, start_Hour, …

Software Development c++
Member Avatar for Urv73
0
172
Member Avatar for o0oKodako0o

I use: [ICODE]Integer.toBinaryString(number);[/ICODE] to get binary string. I want to get the sum of two binary number. how do i do? example: 0010 + 0011 = 0101! Thanks! smb help me please!

Software Development java
Member Avatar for apines
0
118
Member Avatar for Syrne

Okay so I have a program that takes in up to 25 students and information for each including 5 test scores. All of that is done and working fine. What I am trying to do now is calculate the averages of each test 1-5 and then the total average of …

Software Development c++
Member Avatar for StuXYZ
0
275
Member Avatar for rayden150

Im making a simple program to for a bank (its a course exercise), but i want to know how do i save for example a costumer data like Strings...?... any suggestions, please and thank you..

Software Development java
Member Avatar for kramerd
0
112
Member Avatar for dstaner

Hello, I'm just learning C++ and I'm getting an error with a program that is driving me nuts, and I'm not exactly sure how to resolve it. Can anyone help me? [QUOTE] AreaCalculator.obj : error LNK2019: unresolved external symbol "double __cdecl AreaOfTriangle(double,double)" (?AreaOfTriangle@@YANNN@Z) referenced in function _main \\.psf\Home\Documents\Visual Studio 2008\Projects\AreaCalculator\Debug\AreaCalculator.exe …

Software Development c++ visual-studio
Member Avatar for dstaner
0
489
Member Avatar for buster2209

I have several textboxes that are in tabs and would like them all to auto-scroll when text is added [B]without[/B] bringing them to focus. Is this possible?

Software Development
Member Avatar for buster2209
0
122
Member Avatar for Tommymac501

I need a small tool to print a record layout with a row of data to proof the layout and data match. To that end, I am using a CSV to pick up a record, and a list to store the field names. What I want to do is to …

Software Development python
Member Avatar for Tommymac501
0
92
Member Avatar for lcfjoertoft

I've managed to put together some code to retrieve data from a sql file. I plan to connect to a sql server that are operated by a database program, that update the registry every 10 sec. Before I try to connect my program to the sql database, I need to …

Software Development sql vb.net
Member Avatar for lcfjoertoft
0
107
Member Avatar for Thropian

I wrote a little program a while back that changes windows a lot and I was wondering if there is a way to have one window open at the same spot the last window closed?

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

I've got to write a program where it replaces a letter with a dash and then asks the user to enter the letter that should be their. I've written a program and It works the first time around and then prints out two lines. Where have I gone wrong ?? …

Software Development c
Member Avatar for myk45
0
144
Member Avatar for MrJNV

I have a struct as follows: [CODE]struct Database { int accountNum; double balance; int months; };[/CODE] I want to make a vector of this struct, because I want the size to vary. How do I do that? Thanks in advance

Software Development c++
Member Avatar for Fbody
0
99
Member Avatar for slavacrilov

I have a program that requires to reverse the name which is a string, here's the code... it's suppose to work, no errors found.... but "Run time error" [CODE] int i = fullName.length(); while (i>=0) { cout<<"Your reversed full Name is: "; cout<<fullName.substr(i-1, 1); i--; } [/CODE] thanks

Software Development c++
Member Avatar for slavacrilov
0
109
Member Avatar for EJOC

Hi everybody, I need some help doing a rfc 2617 basic HTTP authentication to call a web service in C#. I've been trying in many ways and I'm really stuck. Here's an example of my current code [CODE] string url = "http://somedomain.com/somegenericservice"; WebRequest myReq = WebRequest.Create(url); string username="****"; string password="****"; …

Software Development
Member Avatar for tiggertag2000
0
482
Member Avatar for cperepelitsa

It's probably obvious that I'm more familiar with Python than C++... I was wondering if there's a convenient way of storing objects / miscellaneous STL structures on the hard drive for later importing and use in C++ in the same manner that Python does with the Pickle module. I know …

Software Development c++ hard-drive python
Member Avatar for rts1
0
4K
Member Avatar for banana1073

For my Computer Science class, we are writing several different methods to reverse a singly linked list in Java. I cannot figure out the last way, which uses three helper methods, pointerToLast(Node n) which returns the tail node, nextToLast(Node n) which returns the second to last, and append(Node a, Node …

Software Development data-science java linked-list
Member Avatar for jon.kiparsky
0
204
Member Avatar for vinitmittal2008

Hello Friends I want to pass a Double Dimension Array to a Function using Pointers... Right Now i am doing this.. [CODE] # include <stdio.h> void show(int *,int,int); int main() { int a[3][3]={1,2,3, 4,5,6, 7,8,9}; show(a[0],3,3); return(0); } void show(int *p,int row,int col) { int i,j; printf("\n\n\n"); for(i=0;i<row;i++) { for(j=0;j<col;j++) …

Software Development c
Member Avatar for vinitmittal2008
0
10K
Member Avatar for vedro-compota

Hello) Please tell me-how to set up automatic numbering of lines in Visual C# Express Edition (or maybe this feature is not there?) Thank you in advance)

Software Development
Member Avatar for vedro-compota
0
79
Member Avatar for weasel7711

Hello, I am new to Access and VB, but I have used C# and C++. I am trying to update a whole bunch of records in a table, only one field. For example [CODE] [Employees] [ EmpCode ] [ FirstN ] [ LastN ] [ 019871 ] [ John ] …

Software Development microsoft-access sql visual-basic
Member Avatar for AndreRet
0
254
Member Avatar for Zibo

Hello! Here's the problem: After making some GUI application (NetBeans) in output directory (containing generated .jar file) also appeared a directory 'lib' with additional .jar. This jar is some extra library with classes, which path is added in manifest ("Class-Path: lib/bla.jar"). So I've used to pack my applications always intto …

Software Development gui java java-swing
Member Avatar for Zibo
0
186
Member Avatar for ljjfb

Hello, all professionals I aim to create three scripts (one in Host, the other two in 2 different Guests) realizing server vs multi-clients communications. There is a file in my Host system, what I propose to do is transmitting lines in that file to different Guests. Following is the raw …

Software Development python
Member Avatar for ljjfb
0
175
Member Avatar for prexioso

Hi all!!! I have some problems with List comprehension in Python. How can I obtain these two nested list using comprehension? list1 = [[1,2,3],[4,5,6],[7,8,9]] list2 = [[1,0,0],[0,1,0],[0,0,1]] (identity matrix) where list1 and list2 are square matrix of 'n' size thank you in advance!!!

Software Development python
Member Avatar for prexioso
0
130
Member Avatar for G-Do

Hi guys, I'm trying to learn the principles of artificial intelligence. I just finished coding up a belief net and a corresponding EM algorithm that learns the CPTs for latent nodes using training data (if you're unfamiliar with the lingo, you're probably going :eek: right now). While the program (written …

Software Development algorithm machine-learning python
Member Avatar for Gael Varoquaux
0
332
Member Avatar for chintan_1671

Can any one help me to convert this delphi code to C#. class function TShrinkConfig.MyVersion: WORD; var ini: TIniFile; begin ini := TIniFile.Create(gsIniFile); Result := ini.ReadInteger( SHRINK_INI_SETUP_SECTION, SHRINK_INI_MYVERSION, SHRINK_INI_VERSION_1); ini.Free; end; if (not ini.ValueExists(SHRINK_INI_VERSIONS_SECTION, IntToStr(version))) then .... I searched online that TiniFile corresponds to FileStream in C#. But i am …

Software Development c# delphi
Member Avatar for chintan_1671
0
259
Member Avatar for malayasthana

i want to itterate through the vector and want to check if entered string is present in the string vector or not.. so please help me to know how can i do it i have done just as we do to itterate through vector<string>: vector<string>::iterator it; cout << "myvector contains:"; …

Software Development c++
Member Avatar for Fbody
0
146
Member Avatar for Anuradha Mandal

I want to make an user defined STACK.But I have some problems with this following code. Please find what is worng. [CODE] #include <iostream> #include <conio.h> using namespace std; #define MAX 10 class stack { private: int arr[MAX]; int top; public: stack() { top=-1; } int m; void input() { …

Software Development c++
Member Avatar for Taywin
0
95
Member Avatar for IDC_Sharp

[COLOR="Red"][B]Quastion number 1:[/B][/COLOR] look i made a program with listView and i want that when i quit the program it will save the items that i put in the listView and when i will open the program again it will display the items. i tried it with 'Setting' in the …

Software Development listview
Member Avatar for IDC_Sharp
0
101
Member Avatar for judithSampathwa

Hi, I need some guidence or some tutorials which will teach me how to do , i am not sure is this the correct forum i am in. i need a way to upload any kind of file from the fileUpload control to MySQL server how can i do this, …

Software Development asp asp.net mysql
Member Avatar for judithSampathwa
0
979
Member Avatar for pikpik

Hi, As part of porting a (mostly C++) library[1] to a "new" operating system[2], I'm trying to link the library's semaphore class to the platform's semaphore implementation. The problem is that the library assumes that the semaphore implementation will be a modern POSIX one[3] but the operating system's semaphores are …

Software Development bsd c operating-system unix
0
170
Member Avatar for vinitmittal2008

Please give Free download links of Latest and Best C/C++ Compilers for Windows...

Software Development c c# c++
Member Avatar for Ancient Dragon
0
162
Member Avatar for myrk

Hello, Can anyone suggest a GUI library that meets the following criteria? * Cross-Platform * Doesn't control the main loop * Not 100% object-oriented; similar to Xlib :) * Not many pointers please (like FLTK that every object is a pointer) * Free to use for closed source and open …

Software Development c c# c++ gui open-source
Member Avatar for Stefano Mtangoo
0
709
Member Avatar for vedel

I have a asm boot on a floppy disc and i want to show a c++ kernel (cuz c++ are easy). but how can i link it? I heared somethig about : extern _main call _main for asm. Can anyone help me? :'(

Software Development assembly c++ seo
Member Avatar for vedel
0
227
Member Avatar for sundip

Hi Does any buddy help me to convert char* to std::wstring

Software Development c++
Member Avatar for sundip
0
2K
Member Avatar for Jesi523

I need some help. I have a detailsview and it has several different fields in it. The fields I am having a problem with it the dropdownlist. I have two dropdownlist, one that is dependent on the other. That works fine. But now when I try to insert the selected …

Software Development asp.net
Member Avatar for kouroshnik
0
135
Member Avatar for recawo

I am using Visual C# When i open file from my database then an image is loaded in my program,and image source is given below [B][COLOR="Red"]map.Source = new BitmapImage(new Uri(filePath)); [/COLOR][/B]/// filepath is address of image from datebase and when replace it by another image. The new image is loaded …

Software Development image open-source
Member Avatar for kouroshnik
0
242
Member Avatar for crenfrow

This is probably very simple but i'm not seeing how to do it. My GUI for a project reads objects from a flat file (substitution for database) and puts each object as an item in a jComboBox. Then if the user wants to delete one of the objects, he selects …

Software Development gui java
Member Avatar for hanvyj
0
1K
Member Avatar for 080346

i have written the following code, my 1st combo box getting the write data but when i have problem in the getting the data in 2nd combo box when i select from the 1st one....kindly help me....advance thnx for answering String obj =(String)jComboBox1.getSelectedItem(); res=stat.executeQuery("Select flight from main where Route="+obj); String …

Software Development java java-swing
Member Avatar for hanvyj
0
74
Member Avatar for georgy9002

Hello Guys I am having problems with an assignment. I need to create a class to make a rectangle. Then I have to - Declare an object of the class (rect1) using the default constructor. Now prompt the user for a Width, Height and Character. Store the results in temporary …

Software Development c++
Member Avatar for mtbs1826
0
172
Member Avatar for arvin2006

Hi everyone. I am developing a vb app which uses reg free com. How can I get the IDs of the DLL file to insert it into the manifest file I am creating also with vb. Is this possible?

Software Development visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for im abcd

[CODE]# include <stdio.h> # include <iostream> using namespace std; int main() { int a,b,c; while (true) { cout<< " enter ur first digit"<< endl; cin>> a; cout<< "enter ur second digit" << endl; cin >> b; cout << " ur ans is "<< (a-b) <<endl; continue ; break;} scanf ("%d%",&c); …

Software Development c++
Member Avatar for elsiekins
0
201
Member Avatar for 080346

I have created two select list (Combo box). BankName and BranchName. BankName is using LOV with query to display bankname. This is working fine. Now when i select Bank name i want to display selected branches of that bank in Branchname combo.How to display values in second combo basis on …

Software Development java
Member Avatar for hanvyj
0
290
Member Avatar for divyakprabh

Hi, I have two applications which uses the same class that gives cpu information using sigar api. Both the applications are deployed in a same JBoss instance. When i try to start the application, first application gets deployed with no errors while for second application i get an error saying …

Software Development api java
Member Avatar for divyakprabh
0
130
Member Avatar for notmasteryet

hi guys, trying to figure out how to put X when seat is taken plz help [//Airplane Seat Assigning system. [CODE]#include<iostream> using namespace std; int main() { char seat [7][4]={}; //initalize 7 rows and 4 columns char arr[4]={'a','b','c','d'}; int i,j; int row, colnum; char col; for(i=1;i<=7;i++) { for(j=1;j<=4;j++) { //cout<<seat[i+1][j+1]; …

Software Development c++
Member Avatar for low_coder
0
268
Member Avatar for garu525

I wrote this string palindrome program that reads input from a text file. All the syntax are correct but I have an error I couldn't understand. Any help is appreciated, thanks!!! First, this is the error message: [B]Error 1 error LNK2001: unresolved external symbol "char * newToCheck" (?newToCheck@@3PADA)[/B] And this... …

Software Development c++
Member Avatar for garu525
0
180
Member Avatar for geryin

[CODE]#include <cmath> #include <iostream> using namespace std; void prime(int num) { int numPrime=true; for(int c=2;c<num;c++) { if (num % c == 0) { numPrime=false; break; } } if (numPrime == true) cout << "TRUE" << endl; else cout << "FALSE" << endl; } int main () { int n; int …

Software Development c++
Member Avatar for WaltP
0
182
Member Avatar for printmatic

Ok so I wrote this with some help of a friend and it compiles fine and everything, however when I try and run it I get this error message. "Static Error: No constructor in Day matches this invocation Arguments: () Candidate signatures: Day(int)" I am not sure what this means …

Software Development java
Member Avatar for apines
0
750
Member Avatar for yaya

question about pointer and array. can we add a 2-D array (**A) with a 1-D array (*B)? both of the array is define as a pointer in the program. where array A is A[i][j] and B is B[i] new in C programming and pointer is difficult.... :-|

Software Development c
Member Avatar for somnath Basak
0
161
Member Avatar for Eric Cute

Can anyone pls suggest if there exist a java IDE that has drag and drop functionality in creating GUI's?? Much like the VB.NEt IDE's. Thanks (",)

Software Development gui ide java
Member Avatar for RushabhShah1110
0
176
Member Avatar for eladreznik

issue has to do with the number of rows which I represent The first row in the dB is 0, so to prevent confusions I added 1 to the index so row 0 will be represented as row 1. The issue is that when I scroll down I “gain” a …

Software Development vb.net
Member Avatar for eladreznik
0
91

The End.