132,726 Archived Topics
Remove Filter ![]() | |
[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++ | |
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 | |
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 | |
I want to publish my DB2 data to PDF file using XSLT. Has anyone tried this? | |
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? | |
I have recently started working with DB2 database. I have heard about Xquery. What exactly Xquery is? Software Development xml | |
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++ | |
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 | |
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++ | |
#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++ | |
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++ | |
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++ | |
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++ | |
how i get computer name with vb 6? any help will be appreciated thanks :) Software Development visual-basic | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
.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 | |
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++ | |
[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++ | |
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++ | |
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 | |
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 | |
[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 … | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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(){} … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 = … | |
how i can move a picture in vb Software Development visual-basic |
The End.