132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lensva

[code] #include <iostream> using namespace std; class fibonacci { private: int num; public: long fibNum(int n); fibArr(); }; //============================ long fibonacci::fibNum(int n) { n=num; if (n<0) { return 0; } if (n<2) { return n; } else { return fibNum(n-1) + fibNum(n-2); } } //============================ fibonacci::fibArr() { int *Arr; Arr=new …

Software Development c++
Member Avatar for Lensva
0
126
Member Avatar for dinilkarun

I have a DHTML page with a treeview control in it which has a parent node and 6 child node in it. I want to check all the child node checkboxes when i check the parent node checkbox. Please help me..

Software Development visual-basic
Member Avatar for Mbt925
0
82
Member Avatar for Syntax Error

pls help!! can u give me some tips how to delete a string or list in a textfile based on this code....i created this code but i dont know how to delete it..pls explain in simple english because im not American..... :D tnx a lot...ur response is very much appreciated... …

Software Development java
Member Avatar for masijade
0
133
Member Avatar for v.godhe

I want to publish my DB2 data to PDF file using XSLT. Has anyone tried this?

Software Development pdf xml
Member Avatar for v.godhe
0
185
Member Avatar for karsoods53

I have looked at the syntax of SQL/XML query and tried to run a sample query. But not able to write my query using it. Can someone provide a tested and working SQL/XML?

Software Development sql xml
Member Avatar for karsoods53
0
211
Member Avatar for ssahil11

I have recently started working with DB2 database. I have heard about Xquery. What exactly Xquery is?

Software Development xml
Member Avatar for dilasing
0
367
Member Avatar for kzubair96

Ive heard about Xpath a couple of times. Can someone explain me in detail what Xpath is?

Software Development xml
Member Avatar for dilasing
0
172
Member Avatar for technogeek_42

can any one knows how to convert a number to word like this 192 to one hundred ninety two i can't get the logic of that who can suggest of that i can't solve that.. plz help me

Software Development c++
Member Avatar for technogeek_42
0
723
Member Avatar for ramjeev

Hi buddies, I m facing some difficulties while setting system date and time?..Can anyone help to set System date & time? Thanks

Software Development java
Member Avatar for ramjeev
0
4K
Member Avatar for Serling1

I'm trying to have a getData function transfer all the objects it is holding in its array to a new array so that the new array can be used in a friend function to print the objects' information. [CODE]void Set::getData(Set& tempSet) const { for (int i = 0; i < …

Software Development c++
Member Avatar for Necrolis
0
454
Member Avatar for monroe85

#include <iostream> using namespace std; int main(){ double w,x,y,z,avg; cout <<" PLEASE ENTER FOUR ENTRIES OF MARKS"<<endl; cin >> w >> x >> y >> z; avg=((w+x+y+z)/4); if(avg>60){ cout <<"YOU PASS"<<endl;} else{ cout<<"YOU FAIL"<<endl; } cout<<"YOUR AVERAGE MARK IS "<<avg<< endl; return 0; }

Software Development c++
Member Avatar for Necrolis
0
72
Member Avatar for harisshafiq

A machine with 32-bit integers can represent integers in the range of approximately 2 billion to +2 billion. This fixed-size restriction is rarely troublesome, but there are applications in which we would like to be able to use a much wider range of integers, such as factorial. This is what …

Software Development c++
Member Avatar for ithelp
0
370
Member Avatar for tlox

I am trying to write a C++ program that will prompt the user to enter an angle value and calculate its sine,cosine and tangent without using c math library.The angle value denoted x,should be in radian,otherwise the program will convert it into radian before it computes its sin,cos and tan.So …

Software Development c++
Member Avatar for ithelp
0
198
Member Avatar for GPXtC02

Just wondering if i can re-read something i just read in? [code] if(in_stream.is_open()) while(i<50 && in_stream.getline(temp, 50) && temp>0) { if(isdigit(temp)) PX1>>temp; else length=strlen(temp); [COLOR="Red"]if(length>1) { string1[]=temp; in_stream.getline(temp, 50) if(isalpha(temp)) string2[]=temp; else } else PX2>>temp;[/COLOR] i++; } in_stream.close();[/code] Hope it doesn't come across as vague but if towards the end …

Software Development c++
Member Avatar for GPXtC02
0
804
Member Avatar for Naruse

how i get computer name with vb 6? any help will be appreciated thanks :)

Software Development visual-basic
Member Avatar for Jx_Man
0
194
Member Avatar for Achayan

import os import maya.cmds as cmds class mypars_ts: def __init__(self): print "Hello\n" def testing(*args): print "Call Came\n" def window_lod (self): if cmds.window('ExampleWindow', exists=True): cmds.deleteUI('ExampleWindow', window=True) cmds.window( 'ExampleWindow' ) cmds.columnLayout() cmds.text( label='Size and position the window before closing it.' ) cmds.button( label='Close', command='testing' ) cmds.showWindow( 'ExampleWindow' ) my_calls=mypars_ts() my_calls.window_lod() when ever …

Software Development python
Member Avatar for Achayan
0
129
Member Avatar for paradox814

I am working with a function declaration of: int func1(char *, unsigned int) to the best of my understanding, I am not allowed to modify this. Now my question is that when I actually write this program what is the name of argument 1 and 2 for example [code]int intToHexStr(char …

Software Development c++
Member Avatar for paradox814
0
129
Member Avatar for sauron84

Hello, I am a novice user of VC ++ and I have built an interface using MFC. I have created a form and now I have to link the form components (buttons, etc..) to my source code. For example, I need to know what to do so that when i …

Software Development c++ user-interface
Member Avatar for sauron84
0
156
Member Avatar for xRuP7uR3x

Greetings everyone. This is my first post on this board, and I would like to offer thanks for any and all help, guidance, advice, and/or bonks on the head in advance. I am an aspiring programmer currently learning Python as a way to introduce myself to the world of software …

Software Development algorithm engineering python
Member Avatar for jrcagle
0
544
Member Avatar for cVz

Good Evening (Morning to others) I would like to find how it would be possible to create a calculator with only one entry field, i have managed to make one with two entry fields resulting in a ([2LeftOperand] + [2RightOperand]) calculation...i have tried hiding the Right Text box, and even …

Software Development c c# c++
Member Avatar for david.crawford
0
97
Member Avatar for d0ugg

Hi all, So I'm creating a program that will calculate the grade average of students in a class. I'm suppose to read a file into an array and I'm having problems with that. Here is part of my code. [CODE] //Output Func void StudentStat::Output() { for (int i = 0; …

Software Development c++
Member Avatar for Lerner
0
150
Member Avatar for guitarrick

Hey out there. Lerner had given me some great ideas for searching (scouring) a string. Only problem I'm having now is I can't get past the error for 'cannot convert const to a std' I also don't think I can use this function like I am within my prgm (at …

Software Development c++ data-structure
Member Avatar for guitarrick
0
131
Member Avatar for Jennifer84

I am trying to resize a panel through a if-statement like this but am a bit unsure how the if-statement should look like. I am trying to put if size is (0, 694) for the panel1. [code] if ( panel1->Size() == System:: Drawing:: Size(0, 694) ) { this->panel1->Size = System:: …

Software Development c++
Member Avatar for Jennifer84
0
105
Member Avatar for yarita

I'm having problems with displaying the total payment amount in the invoice when I enter courses and with the first step of entering 6 courses that i need to put if i want to try again or not. here is what it's suppose to look like... Please if anyone can …

Software Development c++
Member Avatar for Lerner
0
162
Member Avatar for dmf1978

Hi, I am working in an application that uses Drag & Drop in VB6, and I need to determine which type of control is the user dragging. I have in the form several controls: PictureBox, TextBox and ListBox. I know that I can use TypeOf() in VB .Net, but, what …

Software Development vb.net visual-basic
Member Avatar for dmf1978
0
137
Member Avatar for agenic

The question is "Where am I going wrong?" See my embedded comments above code starting point. I can get this to compile, but I can't get this loop through the amort, before I beign building (finishing the loop) I need to see if I can display a single line with …

Software Development gui java java-swing
Member Avatar for agenic
0
166
Member Avatar for Cpp123

I just started using C++ and have a practice exercise, can anybody do this? It seems complicated. You have been requested by “Honest Dave’s Used Cars” to write a program to calculate the monthly car payment for their customers.. As much as possible you are to develop the code as …

Software Development c++
Member Avatar for Cpp123
0
228
Member Avatar for Jennifer84

I have a little wondering what the third element "0" stands for in the accumulate function. [code] std::vector<double> vec(10); double sum = std::accumulate( vec.begin() + 1, vec.begin() + 5, 0); [/code]

Software Development c++
Member Avatar for Jennifer84
0
193
Member Avatar for sara_84

Hi all, i need an assembly 8086 code that compare between numbers from 1 to 99 and write output messege contain > or < or = can any body help me

Software Development assembly
Member Avatar for anomalice
0
137
Member Avatar for 3xy

.model small .stack 64 .data error_alpha db "Invalid input. Expression contains letter/s. ",13,10,"$" error_range db "Invalid input. Operand/s may be out of range. ",13,10,"$" error_overflow db "An overflow has occurred. ",13,10,"$" error_invalidinput db "Invalid Input. ",13,10, "$" redo db "Please enter a valid one.",13,10,"$" newline db 13,10,"$" inputlen dw 2 …

Software Development assembly
Member Avatar for anomalice
0
262
Member Avatar for noob.cpp

Hi, I don't know if anyone can help but I'm trying to figure out this switch case problem for my read file function. This is just the read file portion. I'm reading in a text file (bottom), and at this point I'm trying to determine electoral votes based on who …

Software Development c++
Member Avatar for mr.cool
0
205
Member Avatar for jeffige

[CODE]In relation to another post, I did enroll in the Game Institute. [URL="http://www.gameinstitute.com/"]http://www.gameinstitute.com/[/URL] Thanx for the input Thanx for the help "lAmoebal". It actually is helping more then when I was following along with other tutorials I have tried. Maybe it 's the structure. I still find C++ difficult. for …

Software Development c++
Member Avatar for Ancient Dragon
0
120
Member Avatar for prayami

Hi, I got one, two dimensional array. MyArray[1000][2]. Both the array i.e. MyArray[0][0]........ MyArray[0][1]....... are filled with some values. Now I got he given values for both: e.g. value_0 = 4.056 and value_1 = -201.375. I have to search the arrayMyArray[0]...MyArray[999] and find the closest value row for the given …

Software Development c++
Member Avatar for prayami
0
178
Member Avatar for a.suryakumar

Hi All, could you please help : i have a script to search the for PRIMARY INDEX and if found display the whole definition of create table: ISSUE NOW IS: we have to store the table name in a variable and search the file if any update,show table exists for …

Software Development perl
Member Avatar for jephthah
0
83
Member Avatar for peaceful_soul

Hello guys, can anybody explain to me whats a simple batch processing facility ? i googled it but i couldnt understand anything. thanks .

Software Development c
Member Avatar for alexander()
0
162
Member Avatar for arlene1

[QUOTE]Problem: write a function named powfun() that raises an integer number passed to it to a positive integer power and displays the result. The positive integer should be the second value passed to the function. Declare the variable used to store the result as a long integer data type to …

Software Development c++ storage
Member Avatar for Ancient Dragon
0
174
Member Avatar for Jennifer84

If I am serching this substring within a string. Is there any function that can search this just if the letters are correct, not if it is uppercase or lowercase. So it wouldn´t matter if the string looked like ex: Number[ number[ numBer[ etc... [code] string stringToFind = "Number["; [/code]

Software Development c++
Member Avatar for Ancient Dragon
0
189
Member Avatar for biggz

ive ben asked to make a program where the user inputs a floating number eg.(2.5) and the program displays the 2 alone and the .5 alone ive ben trying for a while but gone nowhere

Software Development python
Member Avatar for vegaseat
0
87
Member Avatar for Gerritt

All I need to know is how to capitalize all of the characters of a string. What kinds of functions would I use?

Software Development c
Member Avatar for jephthah
0
92
Member Avatar for wollacott

can anyone help me convert my c program so it works on a linux system or mac? thank you. [CODE] #include<stdio.h> #include<math.h> #include<conio.h> #include<stdlib.h> int main() { int c; int a, b; char d; pov:system("cls"); printf("Enter the first number\n"); a=getch()-48; system("cls"); printf("Enter the function:\n"); d=getch(); system("cls"); printf("Enter the second number\n"); …

Software Development c
Member Avatar for jephthah
0
94
Member Avatar for nanosani

I have made a hospital management system ....its GUI is creating some problems .... I have a container at the top level with Borderlayout ... a combo box is on its north ... and a JPanel is on its center. Combo box contains two items ... Doctor and Patient. the …

Software Development display gui java
Member Avatar for jwenting
0
175
Member Avatar for Derice

Hi, I am given assignment to develop simple games on applet. I have problem understanding the function of some abstract class... any1 would like to explain to me? Thx in advance. [CODE] class snakeGame extends Applet implements Runnable { Thread runner; public void init(){} public void start(){} public void stop(){} …

Software Development api java
Member Avatar for jwenting
0
116
Member Avatar for vb_learner

Hello : > I'm using console application (VB.NET), using Visual Studio 2005. I have a problem with my project, I'm building a vowel counter program, and faced a problem there with loops.. any one can help me with my project?,, can I contact with the helper using a private message? …

Software Development vb.net visual-studio
Member Avatar for Edward-eh
0
404
Member Avatar for sura17

This is what i have done so far:- [CODE] Program ssd; uses wincrt; var x:real; Begin x:=1; repeat clrscr; gotoxy(32,0); writeln(x:5:2); x:=x+0.001; until KeyPressed; clrscr; gotoxy(20,0); writeln('You Have Filled The Amount Of £',x:5:2); end.[/CODE] This is my ticker, it goes up on 0.01's forever but its slow and i did …

Software Development pascal
Member Avatar for glindhot
0
259
Member Avatar for sigkill9

Could someone help me streamline this? Like eliminate unnecessary coding and etc? I got the script to work, although I couldn't figure out how to handle small prime numbers such as 2 and 3. It wouldn't output "this number is prime" (see script below) so I had to force prime …

Software Development python
Member Avatar for 1337455 10534
0
123
Member Avatar for williamthelast

i'm trying copy a string to another and adding space between the names but it show a warning c4700 and i don't know why??? [code=c] #include <stdio.h> #include <stdlib.h> #include <string.h> char *convert(char *string) { char *p=string; char *tmp; while (*string==' ')string++; while (*string) { *tmp++=*string++; while(*string >= 'a' && …

Software Development c
Member Avatar for jephthah
0
112
Member Avatar for arlene1

Please help, I do not understand the correlation between the function definition and the call in main. My program is receiving build errors- please assist with determining what the definition of this program should be. Thank you! [code=c++] #include <iostream> using namespace std; void yrCalc(int totalDays, int& year, int& month, …

Software Development c++
Member Avatar for Ancient Dragon
0
108
Member Avatar for alivip

I wont to find most 10 frequency word of specific file for that I have written this code [CODE] import sys import string import re file = open ( "corpora.txt", "r" ) text = file.read ( ) file.close ( ) word_freq ={ } word_list = string.split ( text ) for …

Software Development file-system python
Member Avatar for alivip
0
131
Member Avatar for linux

Alright, I'm trying to make a small GUI application that'll allow me to run a .ck file (with ChucK) from a GUI, from a preset directory. Okay, so I have: [code=python]from Tkinter import * class chuckrun: def __init__(self, master): ui = Frame(master) ui.pack() self.file = Entry(ui, text="Filename") self.file.pack(side=LEFT) self.play = …

Software Development app-store gui os-x python tkinter
Member Avatar for linux
0
528
Member Avatar for humera05

The End.