132,726 Archived Topics
Remove Filter ![]() | |
As you can see below, I am working on making a macro that compares the time in one column on a page to another on a page. However, in the if statement where I'm trying to round the numbers with time values in it (because I need the numbers to … Software Development visual-basic | |
Hi there, I'm becoming increasingly confused trying to implement an array of pointers, that themselves point to nodes in a linked list. Basically my problem is that I need to sort through an existing linked list per element, over all other elements (which works fine) based on a particular criterion, … Software Development algorithm c linked-list | |
I am not able to understand the following points in regard to difference between C and C++, 1.The comma operator can result in an "l-value" (a quantity that can be used for the left-hand side of an assignment) in C++, but not in C. 2.Enumeration constants (enum values) are always … Software Development c++ | |
[code] #include <iostream> using namespace std; int fib(int n); int main() { int n, answer; cout << "Enter number to find: "; cin >> n; cout << "\n\n"; answer = fib(n); cout << answer << " is the " << n << "th Fibonacci number\n"; system("PAUSE"); return 0; } int … Software Development c++ | |
Given the example of a car that has a color, weight, and can go forward, stop, reverse all at a speed that can be set as well as displayed. Give the names of what the instance variables would be and the methods with what return types and parameters. Also explain … Software Development java | |
I have a coming back problem that I dont know how to get out from. If you put this code in the event handler for a richtextBox control and write this on the First line: [COLOR="Red"]1234567890 [/COLOR]//This will turn red when you press 0 If you instead right away press … Software Development c++ | |
So below is my simple code for my simple program, now I have to "Use 2 functions for this program in addition to the main program. The first function should ask for the hours and returns them to the main program. The second function should receive the hours from the … Software Development python | |
Hi, Here I developed Instant Messenger Program. but in ClientTests.java is giving some runtime error. can anybody help me plz. Here I am listing all my four programs. 1. Server.java [code=java]package com.app; import java.io.EOFException; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.ServerSocket; import java.net.Socket; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; … Software Development client-server java java-swing | |
there're input1.txt command1.txt given files subject asking for create a result1.txt file with the data from the given files. there's no any bug while compile, but when running the program windows system pop out error report that: ***.exe has encountered a problem and needs to close. We are sorry for … Software Development c++ | |
Could you guys please help me to solve this pathOk function, the code is: [code=cplusplus] // graph.h #include <iostream> #include <vector> #include <queue> template <typename ItemType> class Graph { public: Graph(){ }; ~Graph() { Clear(); } void AddVertex(const ItemType& theItem); void AddEdge(int n, int m); bool Empty() const; bool EdgeExists(int … | |
I have a confusion : Is there any specific advantage of using int main() over void main() in c++ programs. Can anybody solve it ? Software Development c++ | |
hello, Can any one tell me how to print the patter [CODE] * *** * for n =1 ** **** **** ** for n = 2 *** ***** ***** ***** *** for n = 3 [/CODE] the code i am having is [CODE] for(i=0;i<=n;i++) { for(j=1;j<n-i;j++) putchar(' '); for(k=0;k<=i;k++) printf('* … Software Development c | |
Hi, Recently I have a text file which contain a bunch of numbers :- 1,0,0,1,0................ 1,0,1,1,1................ I would like to read these numbers line by line and stored into an array. However, I get seg fault for this. [code=c] char filename[5000]; char dump; strcpy(filename,argv[2]); while(!feof(tfPtr)) { for (i=0; i<16; i++) … Software Development c | |
I'm new in this site ^__^ and I really love it ^.* ammmmm ... I have some problem with my assignment ... could any one help me ?? ( sorry but me english weak a little bet).. Software Development c++ | |
Hi, I want to do image processing with real-time image and I’m using C#. I got to grab the image from webcam and it runs smoothly. However, I got some error when I attach with other code for image processing. I cannot run more than one time in one execution … Software Development webcam | |
I integrat program to be GUI using Tkinter I try browser direction as you can see [CODE]# a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, # ctrl+v to paste, and ctrl+/ to select all # count words in a text and … | |
Hi all, I was trying to create an example WindowsCe device application, and i needed to use the Microsoft.WindowsCE.Forms but the .Net (that i have installed ) intellisence is not supporting this namespace... i.e. using Microsoft.WindowsCE.Forms is not being supported in the .Net IDE that i am using. Well if … | |
I'm trying to construct a semi simple dice rolling project. I have two classes, onedie and threedice. The threedice class looks like this: [code] class threedice { public: void rollem(); int getsumFaces(); private: onedie die1; onedie die2; onedie die3; }; [/code] Now, when I try to code the two functions … Software Development c++ | |
This is a connect four game and I'm trying to show the counter falling. What I have so far is this which is in a for loop: [code] while(fallingCounter == true && x[j][i] < playerTurn) { //Move the counter vertically down the grid's rows appearing to fall fallingCounter(); g.setColor(counterColour); //counterWidth … Software Development java | |
Hi, I've followed the example in my lecture notes and it doesn't work! I want to add an image to a label and then add that label to my sub north panel. I want to do this with creating a new class...I'm not sure if I need an "image loader" … | |
My aim is to get this value. [IMG]http://aycu40.webshots.com/image/46759/2005193521074775269_rs.jpg[/IMG] What is the best approch to do so ? Do i create a text box ? and place it in the (1,1) (Row, Column). When do i want this number to appear ? When the calculate button is hit. [IMG]http://aycu39.webshots.com/image/49638/2005162900054054381_rs.jpg[/IMG] So i … Software Development user-interface vb.net | |
I'm trying to figure out how to write an int (as a record number) and a string (up to 12 characters) into a binary file. So in one project the binary file is created with all 5 records written to it, with blank data, eg string is empty. In the … Software Development c++ file-system | |
Hi Friends, I am new to VB.Net 2005.I need to create a program which will store data from text files,word documents,excel files,xml files to a database.Can anyone help me.it is urgent.Thank you. | |
After I Prompt the user to get an integer from the keyboard, display the number on screen if it is an even number how do I write the number into a file in A:\ drive under the name OddFile.txt. if its odd. [CODE=cplusplus] #include <iostream> #include <fstream> #include <cstdlib> using … Software Development c++ | |
Hi, I am trying to do my project but I am stuck. It looks like a big project but it is not. here is the question : I am given sample output of rectangles and some code. I need to add few free functions to make the outout like that … Software Development c++ | |
Heres my code: [code]#include <cstdlib> #include <iostream> using namespace std; //Function prototypes char GetTaxCode(void); int GetProductId(void); int GetQuantity(void); float GetProductPrice(void); char InvoiceInitilization(void); int main(int argc, char *argv[]) { //Variable declarations float gSt = .01; float pSt = .02; int productId; int quantity; char taxCode; float taxAmt; float productPrice; int shippingFee … Software Development c++ | |
I've tried use a program which is will work in sqrt(n),but it got TLE.,please help me [url]http://acm.pku.edu.cn/JudgeOnline/problem?id=1811[/url] Software Development c++ | |
I just finished an exam that I bombed pretty hard. I just dont know where to begin on this stuff and would love some guidance. Below is the details of the exam. - Write a program that asks a user to enter their full name. Their name including spaces must … Software Development c++ | |
I'm seeming to have some difficulties with a few things. I don't quite know how to get my program to add interest and charges to the balance, and I keep getting the message in Borland C++ Builder 6, "Unresolved external 'Interest(int)' referenced from C:\Documents and Settings......etc etc." and I'm also … Software Development c++ | |
Hi guys, I'm working on a program that has to do with Goldbach's second conjecture (any even number larger than 5 can be expressed as the sum of three prime numbers). I have to write a program that takes integer [I]n[/I] (larger than or equal to 6) and finds three … Software Development c++ | |
Is it possible to know what key on the keyboard that was pressed through any of these syntax in any way. [I]textBox->KeyPress textBox->KeyUp textBox->KeyDown[/I] I like to find an if statement that says something like this, though I know this is wrong: [code] if ( textBox-> KeyPress != BackSpace) { … Software Development c++ | |
Hi guys, I've almost finished my assignment but the last question is kind of a curve ball (for me). She wants us to create function that accepts a list of words and then returns the longest word in the list. This is what I've come up with: [code] def longestWord(wordlist): … Software Development python | |
here's what i have so far. I don't understand where exactly to put the (valid = MY_FALSE;) and the (badInput = MY_TRUE;) and the (valid = MY_TRUE;). [I]The directions state that:[/I] [B]Declare a contant for true, use 1 (MY-TRUE) Declare a contant for false, use 0 (MY-FALSE) Declare the integer … Software Development c | |
Thanks for your help earlier with the file input everyone...I have another question to ask of you. I am trying to check two vectors against each other to see if the "timeanddate" match up. Then try to output the ones that do match. I am getting errors from the if … Software Development c++ | |
Say i ask a user to input a number, which will be the return value of one of my class members. How do i make it so that it would redirect me another class member, depending on the number input? Software Development c++ | |
This program is using setw() and setfill() it supposed to output the stars I have included the sample output at the end of my project I hope u gona be able to read the code cause my coding does not print the stars the way they have to be instead … Software Development c++ | |
firstly id like to thank people for helping me with my earlier problems. anyway, for this program im working on, i want the user to be able to select between two patterns. eg. pattern1 makes x=1 and y=0 pattern2 makes x=0 and y=0 i tried using if statements, but it … Software Development c++ | |
I'm trying to put all the buttons (and their icons) into a single class. However, when I try to draw just one button in a frame, it doesn't show up. I can get it to be displayed if I instantiate the button in the same class as the Frame, but … Software Development java java-swing | |
hello all, for few days i have been trying to connect with my oracle 9i database with visual studio 2005 using c#. i tried all the processes that i found in internet. but i fail to connect with my oracle database. i have service named GLOBAL USERNAME: first password: first … Software Development c# oracle visual-studio | |
Do you see anything wrong with this if so let me know [code=cplusplus] #include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main () { int num; ifstream AFile; AFile.open('a:\\OddFile.txt'); AFile << "Enter an integer number please: "; cin >> num; If (num % 2 = 0) AFile << … Software Development c++ | |
Anyhelp with the ostringstream and datastream line would be appreciated. Can't seem to get the data to actually write to the text file...No data in results.txt, but the file is created by the program when I run it... [CODE] ofstream DataFile3("results.txt"); cout<<"Writing...Please wait...."<<endl; for (a=0; a<Search.size(); a++) { cout<<Search[a].date<<" "<<Search[a].time<<" … Software Development c++ | |
I have a wondering. I have put this code in the richTextBox1 event handler. What happens is when you have written 11 characters, the 10 previous characters turns blue. What I wonder is that this code selects and deselects these characters wich can result of "blinking" in the textbox sometimes … Software Development c++ | |
this isnt working, i think it has something to do with the natural exponential, its a calculation of the sigmoid function. it basically should read 1/(1 + e^-((W1A*pix1)+(W2A*pix2))) this is what ive coded [CODE] OUTA = 1/(1 + exp -((W1A * pix1) + (W2A * pix2))); [/CODE] please help me. Software Development c++ | |
Need a recommendation on how to proceed with this task...I am starting new in C++ (after taking it in high school 11 years ago it has been forgotten and has changed alot). I have put the code I have below and some sample lines of data...any recommendations on how to … Software Development c++ data-structure | |
i am trying to create a windows service,in the config file i will list out various ports and their numbers,i want to monitor these ports and record the ports starting time,process id, end time whenever any request is coming for those ports listed in config file. can anyone tell how … Software Development | |
Hi all, I am contemplating moving from c# to VB and wondered what might be the greatest obstacles to overcome. I guess what I would really like to know is, if I am quite knowledgable in c#, will vb be easy to pick up? Something else that is bothering me … | |
if anyone can help me i need to create a JFrame that displays two text areas (JTextArea) in a grid layout (1 row, 2 columns), am not asking someone to do it for me but if anyone can help me with basics of JFrame that would be helpful thx | |
I have been trying to write simple return statements and print the result of the return. I have read books such as O-Reily and have used examples but find that the examples don't work either so I guess I just need human communication!! First I have tried this return method … Software Development java ![]() | |
I have an upcoming assignment, in which I have already completed. But I was just curious if anyone could look it over and give me some input on it. I am pretty confident that I have done it correctly. But I think I have became particularly attached to this assignment … Software Development c++ |
The End.