132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for somaja

for many times when i debuge defferent programs i found this error. I think no error in my code because when i degun the same program in ma freids computer no wrong happen. Any idea. the errors: 1- fatal error LNK1120: 1 unresolved external. 2- error LNK2019: unresolved external symbol …

Software Development c++
Member Avatar for somaja
0
212
Member Avatar for johndoe444

I noticed typing in shell like man printf shows a man page entry. Usually there are man pages for each command. I mean man pages are supposed to be for APIs and external interfaces (like g++, etc). How did the internals of say the c standard library functions end up …

Software Development shell-scripting
Member Avatar for gerard4143
0
104
Member Avatar for Afupi

My goal in this program is to solve for the 12 unique solutions for the 8 queens problem. All the below posted is my code. I believe that my findSolutions function is capable of finding the first solution but I have a couple issues from that point. If the user …

Software Development c++ user-interface
Member Avatar for Afupi
0
572
Member Avatar for QuantumMechanic

I am hoping someone here can help me with a little bit of trouble using the execve() call. I have some code that needs to call an external script under CNL (Compute Node Linux, [I]i.e.[/I] - Cray XT4/XT5). CNL is [B]extremely[/B] lean and is missing enough libraries to make using …

Software Development c
Member Avatar for QuantumMechanic
0
1K
Member Avatar for nupurashi

[code] void main() { int a = 5 , b =6, c=0; c = a++ + b++ + ++b + ++ a + a++; printf("c = %d \n", c); getch(); } [/code] the result of the code is c = 32 while if we write the following code the result …

Software Development c
Member Avatar for WaltP
0
101
Member Avatar for smeghead007

Ok what I need to do is utilize a binary search algorithm and determine the index location of a set of keys. The keys are in the file the user enters along with the numbers that have to be searched through. But im lost on how to do this. Do …

Software Development algorithm c++ ios
Member Avatar for WaltP
0
104
Member Avatar for prade

hiii....i done some graphics programming on a turbo c compiler & i would like to link it to a front end...& may be even develop a gui out of it....please tell me the procedure to link a turbo c code to a front end

Software Development c gui
Member Avatar for jwenting
0
79
Member Avatar for k2k

it is strange that my code was working before I modified some variable name/ type. i didn't make any major changes except for changing from double to int, and from double to String. the change was involved a bit sql code change as well though. i got (does anyone have …

Software Development java java-swing sql
Member Avatar for k2k
0
153
Member Avatar for zrd0808

Maybe I am missing something that is clearly obvious but I have fiddled with this printHelper and print function for a while and cant seem to figure it out. The rest of the program works and gets the correct code, but this does not. It should print out 1 -> …

Software Development c++
Member Avatar for Lerner
0
95
Member Avatar for David22

Hi guys. I have an observer/observable structure set up in my code that changes a bunch of TextField values with updated data, no big problem here. However, in my update(Observable obs, Object arg) method, I am trying to call another method to insert the new values into my database. I …

Software Development data-structure java
Member Avatar for ~s.o.s~
0
118
Member Avatar for cbtshare

hey guys , I would like to read info from a file e.g [inline] 10 999990 Gerry Boudens $1000.00 999991 Jimmy Chow $1500.00 [/inline] it is a credit card program, so the user would input their name and the program searches for it, if found it should show their credit …

Software Development java
Member Avatar for Ezzaral
0
156
Member Avatar for tennis

In the following program, why there is no delete in the destructor? is it because there is no pointer involved, so no memory needs to be released? How about the memory allocated when constructing M,P,S,N, the memory will be release automatically when the program ends? Thanks [CODE]#include<iostream.h> class point { …

Software Development c++
Member Avatar for Fbody
0
243
Member Avatar for mrbright88

i am writing a program that is delcaring an array of 100 intger numbers and filling the array with random numbers us rand(). all i have so far is. #include <iostream> using namespace std; int main() { int random_integer = rand();

Software Development c++
Member Avatar for vmanes
0
75
Member Avatar for delphiuser1111

Hi, this is the first time i have ever used Delphi and was wondering if you could help me; i understand how to writeln etc. but I'm having trouble with programs such as making a program that requires the user to write a message, and how many times they would …

Software Development delphi pascal
Member Avatar for wylddev
0
87
Member Avatar for chickenmcnugget

hello there im sorry i can not help you with your problem and like i said i am very sorry i am looking for some help myself first i do not know how to post a question on here second i need help with a program it is in pascal …

Software Development first-post pascal
Member Avatar for wylddev
0
258
Member Avatar for mduncan8

I have a compass that connects to my PC through RS232 @ 38400 BAUD. the compass outputs different "sentences" to send different kinds of data. Each sentence is a string that begins with a special header and ends with <CR><LF>. The string that I'm looking for is "$IIHDG,A,B,C,D,E*hh<CR><LF> where A, …

Software Development c++
Member Avatar for mduncan8
0
160
Member Avatar for mazix2

Hi guys, I'm trying to implement Karatsuba multiplication in c++ using stl vectors. I have some problems with multiplication (addition and subtraction are ok, I've checked). I need to read data from the file, when the file looks like that: 3 // tells me how many pairs I have to …

Software Development c c# c++
Member Avatar for mazix2
0
1K
Member Avatar for mjltech

[CODE]Public Class Form1 Private Sub btnCompute_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCompute.Click Dim percent, calories As Double Dim grams As Double Dim allow_amount As Double = 30 grams = txtGrams.Text calories = txtCalories.Text percent = (grams * 9) / calories * 100 Dim fmtstr As String = …

Software Development vb.net
Member Avatar for puppykillaz
0
123
Member Avatar for tallygal

This program compiles and lets me select a letter from the menu, but then it just repeats the menu, it never outputs the statements that correspond with the letter chosen. Any ideas why? [CODE] #include <iostream> #include <iomanip> #include <fstream> #include <cstdlib> using namespace std; //Function Prototypes void accept (); …

Software Development c++ ios
Member Avatar for tallygal
0
269
Member Avatar for chazut

Hello all and thanks in advance for any help you can provide. I'm new to programming in Python and am looking to put todays date parameter passed into a URL string...how would I go about accomplishing this. This is some code I've sort of been messing around with: [start code] …

Software Development python
Member Avatar for chazut
0
6K
Member Avatar for pumba

Hi all, I am tryin to differentate an equation and solve using C or C++. I need a start, n i m not getting much information from web even..I am curous hw MATLAB does that...i m positive that LAPACK has a no subroutine for differentiation. Appriciate your response Thank you

Software Development c++
Member Avatar for Nick Evan
0
115
Member Avatar for varuab

Greetings, I just want to know how to split a string using values of dictionary: dic = {'': '000', ' ': '011', 'e': '1111', 'g': '10', 'h': '010', 'o': '00', 'p': '1101', 's': '1110', 'r': '1100'} word = '1000011100001110001101010111111001110000' for items in dic.values(): [INDENT]word.split(items)[/INDENT] .... and when i do this …

Software Development python
Member Avatar for woooee
0
155
Member Avatar for wildgunman

I'm currently learning how to read through large groups of text files to scan for key words for some research work I'm doing. I came across an example that I don't fully understand, mostly because my Perl knowledge is a little piecemeal and it's been tough trying to find a …

Software Development perl regex
Member Avatar for d5e5
0
149
Member Avatar for c0d3m0nk3y

I have a program that takes an object, turns it into an array of bytes and then sends it to another program using sockets (a la [url]http://www.java2s.com/Tutorial/CSharp/0580__Network/Catalog0580__Network.htm[/url] Socket Client & Socket Server GUI). My problem is that when the object arrives at the second program, I cannot turn the byte[] …

Software Development client-server gui
Member Avatar for c0d3m0nk3y
0
139
Member Avatar for fillit

program p; var a,b:integer; c:real; forward p2; {for procedure p1 to call procedure p2} procedure p1 (x:integer; var y:integer); var c:integer; pt:^integer; {pointer declaration} begin { (1) } writeln(a,b,x,y); new (pt); if (x<2) and (y<2) then if x>y then begin y:=x; writeln(a,b,x,y); p2(x,b) end; dispose(pt); end; procedure p2 (x:integer; var …

Software Development pascal
Member Avatar for fillit
0
242
Member Avatar for chetanbasuray

My problem is related to printing.I have a database table named billing from which I need to print the bill for a particular client. Now each client has a fixed auto generated client id but a multiple number of entries are present for each client. I am using crystal reporting …

Software Development
Member Avatar for chetanbasuray
0
92
Member Avatar for juliesyumyum

Hey! I need to program a simple arithmetic calculator. I've done the parser, infix to postfix, etc. Everything's working with no problems except that it only works with one-digit numbers. For example: 10+2 evaluates to 2 instead of 12. Here's the code of the parser: [CODE] package calculator; public class …

Software Development java
Member Avatar for javaAddict
0
208
Member Avatar for akaban

hello i am trying to make a program for prime numbers but facing some problem can any one can help me in making this program

Software Development visual-basic
Member Avatar for akaban
0
247
Member Avatar for kire

Hi!, I have a bit of a problem here. I am looking into a few options. First of all, I have a program that was written in GWBASIC and it runs great on a DOS machine. It will even run in Windows 2000 under QBasic if you run it from …

Software Development vb.net windows-xp
Member Avatar for Adak
0
923
Member Avatar for stricklypni

fatal error C1075: end of file found before the left brace '{' ANY IDEA WHAT MAY BE MY PROBLEM??

Software Development c c# c++
Member Avatar for stricklypni
0
108
Member Avatar for ubi_ct83

Hi all, i want to ask u guys what else i need to do to run this code? i have JDK. i have these file in my c:/program files/java/jdk1.6.0_16 c:/program files/java/jdk1.6.0_18 c:/program files/java/jre6. if i want to run this code,what do i need to do? [CODE] import java.awt.graphics; class HelloWorldApplet …

Software Development java
Member Avatar for jwenting
0
96
Member Avatar for mabrookes

Hi, Im very new to java (about a month) with a useless lecturer who has taught us nothing. Everything I have learnt so far as been on my own at home trying things. I did a question, but I wanted to try adding things to it to learn so started …

Software Development java
Member Avatar for mabrookes
0
108
Member Avatar for Nerathas

Hello, In the following code below i have 1 method that fills a array with 11 random value's.(wich works as intended). My question is how do i take each generated random value created in the array, and perform a calculation with each of those values? (preffered in a new method). …

Software Development c c# c++
Member Avatar for ddanbe
0
182
Member Avatar for Ap0ca1ypse

Hello, Firstly, i am not at my computer atm so i will not be able to show you my code (i will post it later). I am creating a program for my dad which is sort of like a stock control program. I have a form with two comboboxes and …

Software Development listview
Member Avatar for Ap0ca1ypse
0
9K
Member Avatar for gsatya

Hi, I have certain data stored in tamil font (TAM-TTValluvar) I am creating a text file using PRINT #1,<fieldname> through VB6. The output in the text file looks like a bunch of junk characters and I could not able to take the printout from my dot matrix printer either by …

Software Development printer visual-basic
Member Avatar for vb5prgrmr
0
411
Member Avatar for dirnthelord

I'm trying to display a report in my src/iReport/report1.jasper directory. but every time i try to display it i get java.lang.NullPointerException. I can't find where the problem is. Please someone just take a look and help me. I have imported all necessary libraries. im using Netbeans. [CODE] package Windows; import …

Software Development file-stream java java-netbeans java-swing
Member Avatar for dirnthelord
0
678
Member Avatar for johnnyd1986

I absolutely can't figure this problem out, can anyone please help? Write a program that asks for a phrase and then calculates and displays the number of vowels in the phrase, twice. The first time, your program should calculate the number of vowels in the phrase using a for loop. …

Software Development python
Member Avatar for Mouche
0
149
Member Avatar for Pynolathgeen

My program keeps crashing when not in debugging mode. So now i'm debugging manually, or well, log everything to find where it is crashing [code=C++] Oldproc = (PROC)SetWindowLong(Childs[1], GWL_WNDPROC, (DWORD)EditProc); cout << "Oldproc\n"; SetFocus(MainWnd); cout << "SetFocus() Done\n"; cout << "DIRECTX:\n"; DirectX = new DIRECTX(); // Creating DirectX cout << …

Software Development c++
Member Avatar for tetron
0
131
Member Avatar for heindrix_chenx

I’m writing a code on microsoft visual c++ 6.0 for load *bmp file and save it to *bmp file too. But i got stuck on save to *bmp code. Help me please.. void WarnaToRGB(long int warna,int *Red,int *Green,int *Blue) { *Red=warna&0x000000FF; *Green=(warna&0x0000FF00)>>8; *Blue=(warna&0x00FF0000)>>16; } long int RGBToWarna(int Red,int Green,int Blue) …

Software Development c++
Member Avatar for Pynolathgeen
0
893
Member Avatar for sid78669

I am writing a utility in which time is being displayed. The problem is, the time being displayed is for the timezone +1. I want to add functinallity so that the user can not only display this time, but also choose which timezone they would like it to be displayed …

Software Development
Member Avatar for tristian2
0
115
Member Avatar for Seregwethrin

Hello; I want to change a part of the form without changing the active form (with .NET Windows Forms). You can think like frames on the web. For example I create a menu at left side and I want to change right side without changing the whole. I've no idea …

Software Development
Member Avatar for Seregwethrin
0
85
Member Avatar for MrJNV

Hi, I have to do a recursive merge sort here. I got the merge sort done (thanks internet...because my book was useless), but I have to print the sublists as output. Here's the instructions: [COLOR="Green"]"The program must first display the list to be sorted. Then it must display the sublists …

Software Development c++
Member Avatar for Mouche
0
235
Member Avatar for rohitmanhas_12

i want the following jsp code to be converted in c#... cud anyone help me... [code] ResultSet resultset, resultset1; String localityid,villageid; Connection connection= DriverManager.getConnection("jdbc:odbc:rmcwhDSN"); Statement statement= connection.createStatement(); String familyid = request.getParameter("familyid"); String tempSQL = "select * from HOUSEHOLDMEMBERS where FamilyId='"+familyid+"'"; //out.println(tempSQL); resultset=statement.executeQuery(tempSQL); String tempMemberid=""; String tempNum=""; while(resultset.next()) { tempMemberid = …

Software Development c#
Member Avatar for rohitmanhas_12
0
179
Member Avatar for needHelpVBA

Hi there :-) Your help is highly appreciated! I just don't know how to start... I already read a book, but I didn't get the knowlegde I need to key in the code. It is supposed to be a multiuse financial tool. I already have most of the mathematical backround, …

Software Development visual-basic
Member Avatar for jhai_salvador
0
70
Member Avatar for blazinhieu

I want to double the score if the cards have the same suit or value and if two cards have the same both suit and value, the score get tripled. And the 2 of clubs is a 20 points. i already wrote the basics of the program which it adds …

Software Development java
Member Avatar for vchandra
0
303
Member Avatar for rkp728

I am writing a adler32 code to compute the adler32 checksum of a string. On the net I came across various sample codes: I did not understand some code entirely as <b>it has additional code</b> marked in bold below apart from the basic implementation of the adler32 logic. I did …

Software Development algorithm c++
Member Avatar for rkp728
0
232
Member Avatar for COKEDUDE

Whats the difference between strlwr() and tolower()?

Software Development c
Member Avatar for WaltP
0
910
Member Avatar for Krytikal

Alright... so I found numerous examples on the proper way to suspend and pause threads but none really relate to my problem. I have a thread which runs in the background of my game which does all the simulation of moving players, calculating spaces and ect... I have a pause …

Software Development c c# c++ gaming multithreading
Member Avatar for Diamonddrake
0
584
Member Avatar for hongil14

This is a program im writing for class. Here is the exception im getting: Exception in thread "main" java.lang.NullPointerException at LinkedList_final.insert(LinkedList_final.java:72) at LinkedList_final.main(LinkedList_final.java:247) Basically, my program reads a text file and parse a string. And then, add the string to Linked list. Thank you for your time and any help …

Software Development java linked-list
Member Avatar for BestJewSinceJC
0
2K
Member Avatar for rizzi143

// hi guys actually i need some suggestion or help .. i want to add STRING capability in this following Queue program. currently it just eccepts the chars . so if somone can help me out in getting the String output. thanks [CODE]#include "stdafx.h" /***** Structure template *****/ struct list{ …

Software Development c++ data-structure queue
Member Avatar for Ancient Dragon
0
130

The End.