132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ab00120

Hi there, At university I learnt Fortran to an adequate level for simple programs and as I enjoyed it i looked towards trying to learn C++. Up to now its been very slow but progressing, however i seem to have hit a bit of a brick wall. From just material …

Software Development c++
Member Avatar for ab00120
0
96
Member Avatar for power_computer

I have created a insert function which inserts the item in the template array, the position of the item in the array template list is depending on the ratio of wins over total games played, I have manged to work out the insertion sort if the two scores of a …

Software Development c++
0
80
Member Avatar for swinefish

Hey all I'm writing a rasterizer at the moment, and one of the basic transformations you can perform is rotation. This demands the use of trig functions. However, when rotating a cube, my cube slowly shrinks. Is this s result of loss of accuracy in Math.sin() and Math.cos()? Or is …

Software Development java
Member Avatar for mrnutty
0
130
Member Avatar for nizbit

This is a very basic question, but I'm very new to python. I want to read data in a file. The data is between two delimiters. I'm not exactly sure how I can extract the data and skip the delimiters. Any help would be great.

Software Development python
Member Avatar for vegaseat
0
279
Member Avatar for DazednAngry

I am working on an assignment and I need a bit of help. I am using a double linked list to find roots of polynomials, the list has a trailer node only. I can't seem to get it to create a list. I figure I am just missing something small …

Software Development java linked-list
Member Avatar for BestJewSinceJC
0
131
Member Avatar for wangatang126

Can someone help me edit this program. I am a begginer in C and suck at it somewhat. I can't figure out a way to make the function work since i have to initialize s to equal u and if i initialize it in the function it will always make …

Software Development c c# c++ motherboards-cpu-ram
Member Avatar for Grn Xtrm
0
189
Member Avatar for itzaaron

I am attempting to make a program that would take a phrase and the flip it backwards like this: [CODE] char teststr[] = “Have a nice day!!”;[/CODE] and change it to !!yad ecin a evaH Function? [CODE]void reverse(char unencrypted[], char encrypted[]);[/CODE]

Software Development c++
Member Avatar for mrnutty
0
2K
Member Avatar for kingcrim05

The code should be pretty close to where i need it to be. It's just a sorting code for an input file that contains 6 numbers. What am i doing wrong? [code=c++] #include <iostream> #include <fstream> #include <iomanip> #include <math.h> using namespace std; /****** Variables *****/ /* Size of heap …

Software Development c++ file-stream storage
Member Avatar for kingcrim05
0
120
Member Avatar for simpatar

Ok my program looks like this: [CODE]U = set([0,1,2,3,4,5,6,7,8,9]) A = set([2,4,5]) B = set([5,8]) C = set([5]) def main(): print('This is a program to give complement to given elements') x = input('Enter elements bla bla: ') y = U.difference(x) print('The complement of given elements are:', y) main()[/CODE] As you …

Software Development python
Member Avatar for simpatar
0
81
Member Avatar for NinjaLink

I need help with my function that is in my stack.h file which converts postfix expression to infix. My main.cpp reads the postfix expression from a file and outputs the expression to an output file. My main.cpp is currently working. I just need someone to help me with my toInfix …

Software Development c++
0
104
Member Avatar for Logi.

Evening Folks, Having a bit of a problem with somthing i am trying to code, wondering if anyone here can help.... The basic idea is that i am trying to build a Priority Queue of binary tree nodes so that they are stored in ascending order by a number stored …

Software Development java queue
Member Avatar for quuba
0
886
Member Avatar for Bobby1

In this assignment, we will develop a simple inventory database program (database application) for a small computer store. We will use the database that we used in The program is menu-driven. It should be capable to perform the following operations on the database: 1. Find a record by product id …

Software Development c++
Member Avatar for Grn Xtrm
0
80
Member Avatar for Excizted

Hello DaniWeb. ;) I have a problem with char->tchar conversion, that i cant seem to solve. I want to launch another program, anh the relative path to that program is fetched from MYSQL. [CODE] updateBox = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG2), hWnd, updateDiag); hThread = (HANDLE)_beginthreadex(NULL, 0, Blah::Start, NULL, NULL, NULL); [COLOR="red"]_stprintf(patcherLoc, _T("%s/Patcher …

Software Development c++
Member Avatar for Excizted
0
239
Member Avatar for jjf3rd77

Hey all this is the problem i am currently stuck on; in fact my whole class doesn't get it... Write a C++ program with a loop that asks user to enter a series of integers in the range of [-100 100]. If user enters a number out of that range, …

Software Development c++
Member Avatar for jjf3rd77
0
255
Member Avatar for power_computer

I have a program that reads from a file, and inserts the read items into a template array. Once that file is read into the array the second file is read, if there is a invald name ie name not int the array it is not updated. The second file …

Software Development c++
Member Avatar for power_computer
0
132
Member Avatar for rackster992

Hello Everyone I am new to this forum and new to learning Python. I was looking for a good book to help teach it to myself and on a recommendation purchased the book [I]Python Programming In Context[/I] by Bradley Miller and David Ranum. This is a good book in terms …

Software Development python
Member Avatar for dcghelp
0
1K
Member Avatar for rready1

all I need to do is have a control that a user keys in a code that is validated against the sql table and brings back the associated web page for that code. does anyone know how to do this in Visual Studio 2003

Software Development sql vb.net visual-studio
Member Avatar for w412
0
103
Member Avatar for JoQsh

I'm working on some code for a school project that involves outputting the average GPA of a group of male and female students. The total GPA (before dividing to get the average) needs to be rounded as each student's GPA is added in order to get the correct output. However, …

Software Development c++
Member Avatar for JoQsh
0
152
Member Avatar for ravenrider

Hi guys!!! everytime I try to read the course description from the file it crashes, (fin>>Des; (*cptr).setclassD(Des);) I even used the getline function and still not workling ... maybe this a very easy fix but I have been trying to fix it for hours and now I'm turning to you …

Software Development c++
Member Avatar for ravenrider
0
101
Member Avatar for Karkalash

Hi: I have to write a program generating the fibonacci sequence based on the length desired by the user. I'm using arrays and methods too. So I have to do one method to generate the sequence and another to print the other method. So far so good, except the last …

Software Development java
Member Avatar for dotaa
0
2K
Member Avatar for pspwxp fan

I use Dev C++ and had to re-install it for a reason. Ever since then, whenever i build any project, even a helloworld, i get this. Error -1073741515 Execution terminated This happens in the object file, *.o, according to the build log. No description of the error, nothing. Any ideas?

Software Development c++
Member Avatar for pspwxp fan
0
279
Member Avatar for runee1000

Hi, I just started learning java, so my skills are quite limited and I have yet to learn many many concepts. Right now, I am trying to create a hangman game(which as you can see is still incomplete). The problem I get is, the word being "mystery" when I guess …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
135
Member Avatar for Yeen

I ran into a something I did not expect when making a small program. I'm not including the whole program, just exemplifying the stick in the wheel, as it's part of a homework assignment. I'd just like some clarification on why the last "x = 1" is ignored. [CODE] x …

Software Development python
Member Avatar for pspwxp fan
0
101
Member Avatar for reedpride

[code] ; For: AT89C4051 @ 11.0592MHz ; Hardware: INTERFACED WITH ADC0831 ; Program goal: CREATE A DIGITAL VOLTAGE METER ; Assembler: M-IDE Studio for MCS-51 ;place all the usual pre code items here (INTERRUPT VECTORS, ETC) CS EQU P3.1 ;CONNECTED TO CS ON ADC0831 CLK EQU P3.0 ;CON TO CLK …

Software Development assembly ide
Member Avatar for reedpride
0
118
Member Avatar for MattyRobot

I have been trying to get world coordinates of the cursor position for a program by: [LIST=1] [*]getting the top and left position of the client of the window [*]getting the global position of the cursor (GetCursorPos()) [*]cursor x - client left and cursor y - client top [*]zoom x …

Software Development c++ opengl
Member Avatar for MattyRobot
0
96
Member Avatar for GooeyG

I'm in the process of designing a battleship game and I need some help of why I'm coming up with a error. The error is:error C4430: missing type specifier - int assumed. Note: C++ does not support default-int. Another question is, how would i randomly place the battleships in the …

Software Development algorithm c++ display
Member Avatar for mrnutty
0
267
Member Avatar for slim2hott

I have learned c++ over a long period of time and i have decided to use it to create windows programs with it. Right now, I am just practicing. I have made a window with three menus at the top. when you click one of the menuitems, a dialog box …

Software Development api c++ windows-api
Member Avatar for garthus
0
157
Member Avatar for slatk3y

I am trying to do RMI Server-Client communication, but I get these exceptions when I try to run client: [CODE] java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1371 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:475) at java.net.Socket.<init>(Socket.java:372) at java.net.Socket.<init>(Socket.java:186) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) …

Software Development client-server java
Member Avatar for slatk3y
0
118
Member Avatar for aabbddlah

Hello everyone i v just joined the forum and i would like u to give me some sort of help in my induction motor project i am using matlab to carry out the value for torque and then plot the torque Vs speed graph using matlab so torque should be …

Software Development
Member Avatar for aabbddlah
0
105
Member Avatar for jman8877

this method checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the content in the array how could u do this in a method that returns true and recieves add number …

Software Development java
Member Avatar for Cronless
0
271
Member Avatar for AdRock

I have a string and I need to split the string into tokens The word can contain and letter/number but can also contain punctation such as brackets I need to be able to find an occurence of punctuation, copy the string up to that point as a token, copy the …

Software Development c++
Member Avatar for Tom Gunn
0
272
Member Avatar for chubzyko

Hello guys! can you give me an example on how to switch lines or records inside a textfile? I need to enter 2 numbers, there are 3 numbers inside the textfile, which also means it has 3 lines. [QUOTE]1 name 2 name 3 name [/QUOTE] 1st number entered= 2 2nd …

Software Development c++ ios
Member Avatar for chubzyko
0
190
Member Avatar for SCoder1

Hi I can't seem to get this right I've looked online but I can't find the right page. I'm trying to make a simple program that takes a number but what if a character is entered. Well so far I get "140" as an answer. Here's what I mean in …

Software Development c++
Member Avatar for SCoder1
0
97
Member Avatar for Peric

i want to ask one more thing about crystal reports...let's say i need an report that will show me payed "membership fee" for year that I want to choose. How can I get something like this? I know that I can make separated reports for single year, but I want …

Software Development vb.net
Member Avatar for Peric
0
136
Member Avatar for Iam3R

Hello every one, i have written the following program for testing getch function behaviour. but, as soon as i run the program i am getting segmentation fault. i dont understand the problem. i am using GCC compiler on Linux Environment. i want to test the key scan program. [CODE] #include<ncurses.h> …

Software Development c
Member Avatar for Tom Gunn
0
996
Member Avatar for Nixriq

I have a program that is aonly reading the first line of the input from an input file, and i cannot seem to figure out why it wont read the rest 10 lines in the input file. Attched is the code, the input file and the output i get when …

Software Development c++
Member Avatar for Nixriq
0
159
Member Avatar for aalice

help me to implement a short C program that works with factorization of integers it is supposed to compute and print out the sum of all natural numbers below 100,000 that are multiples of 3,5 or 7. if asked to sum all the natural numbers below 20 which are multiples …

Software Development c
Member Avatar for ithelp
0
79
Member Avatar for shobhit123

Hi can anybody tell me any link from where i can download a small jsp servelt project and deploy on my machine and get to know the code and understand it... i have read the basics of jsp servelts and need a sample project to understand a small project to …

Software Development java
Member Avatar for ithelp
0
183
Member Avatar for system analysis

please help me to Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine if the year is a leap year (and therefore has 29 days in February) in the Gregorian calender. A year is a …

Software Development java
Member Avatar for javaAddict
0
135
Member Avatar for komrul_raja009

What is conditional operators ? Using conditional operator find a smallest number amongst two numbers ?

Software Development c++
Member Avatar for dkalita
0
68
Member Avatar for kashmir323

I am creating this simple program that will capture screen shots. I want to make it so the name of the image that is saved is what the user enters into a text field before the picture is taken. and if at all possible is there a way to make …

Software Development c++
Member Avatar for thefly
0
775
Member Avatar for arun10427

Hi all, I am a perl newbie. I am using a perl code to read a column full of data from 1 field into an array [CODE]for(my $i=2;$i<table->last_record;$i++) my @data = $table->get_record($i,"Date"); [/CODE] Now for example if my @data[1] consists of list of numbers, I need to find the diff …

Software Development microsoft-access perl
Member Avatar for weer
0
159
Member Avatar for jrosh

[CODE] tdate= new JTextField(); tdate.setBounds(200,25,134,20); java.util.Date date = new java.util.Date(); DateFormat df = DateFormat.getDateInstance(); String s = df.format(date); a = s.split(" "); a2 = a[1].split(","); //a[0]=oct , a[1]=27, , a[2]=2009 , a2[0]=27 , int mon=0; if(a[0].equalsIgnoreCase("jan")){ mon=01; }else if(a[0].equalsIgnoreCase("feb")){ mon=02; }else if(a[0].equalsIgnoreCase("mar")){ mon=03; }else if(a[0].equalsIgnoreCase("apr")){ mon=04; }else if(a[0].equalsIgnoreCase("may")){ mon=05; }else …

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

The wheelchair has four wheels, which consist of two rear wheels and two front wheels. The two front wheels are pivot wheel which are set free. There is no actuator which drives both front wheels. Thus, the front wheels can move freely in rotation and straight direction. Therefore, movement of …

Software Development assembly
Member Avatar for wildgoose
0
171
Member Avatar for jman8877

it checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the array how could u do this in a method that returns true and recieves add number to put in the …

Software Development java
Member Avatar for masijade
0
282
Member Avatar for neilsam

im working on a program for my exams and its not really working.....cant really figure out why........i ran my program in both borland and turbo.....and both are giving the same error......DECLARATION SYNTAX ERROR. [CODE]void mul(int a[][3],int b[][3]) {int k=0; for (i=0;i<3;++i) { for(j=0;j<3;++j) { c[i][j]=0; for(k=0;k<3;++k) c[i][j]=c[i][j]+(a[i][k]*b[k][j]); //Multiplication of two …

Software Development c++ matrix-multiplication
Member Avatar for neilsam
0
114
Member Avatar for krishna_sicsr

Hi All, I need to parse the out from following output: I need to get the adapter detail after the heading "System Adapter Configuration:" This adapter detail is in 2nd cloumn like ACPI_IA64_P, ACPI_IA64_B, XBUS and PCI. I have marked the desired output in [COLOR="Red"]RED[/COLOR] color. Please help me in …

Software Development ide python
Member Avatar for krishna_sicsr
0
139
Member Avatar for saj_amo

i have a text box, control botton and a datetime picker i want that if i write 2 in textbox and press button then datetimepicker auto change the current date and add 2 days in it . i am doing it in c#.net

Software Development
Member Avatar for saj_amo
0
94
Member Avatar for theStruggler

I have to write a program to censor a string. Whenever I run the program, it works fine the first time, then stops progressing the second time after entering the bad word. I don't get what the problem is. PLease help: java.util.Scanner; public class stringCensorRunner { /** * @param args …

Software Development java
Member Avatar for theStruggler
0
117
Member Avatar for kerek2

Hi buddy's, I need your guide regarding to pull data form other database to other database....I'm already pull the data into Dataset using this command :- [CODE] oracmd = New odbccommand ("Select id,name,dept from staff order by id",oracn) da = ds.fill [/CODE] then i need to insert to other database …

Software Development dataset vb.net
Member Avatar for kerek2
0
100

The End.