132,726 Archived Topics
Remove Filter ![]() | |
Hi, I need some help with an assignment. Got some problems with my while loop. Can't seem to figure out what's wrong with it. [code=cpp] #include <iostream> #include <string> #include <bitset> using namespace std; int last (int num) { int l; l = (num % 10); return (l); } int … Software Development c++ | |
Hi, i have been trying to do the following problem for homework, ialthough i have been able to input some code using the psuedocode given to me im am completely stuck now, and i was wondering if anyone could show me what i am missing? Question Use a single-subscripted array … | |
Hi frenz, Many of the programs are written in C/C++ language. I want to call a function in C/C++ from python program. Can anybody tell me how to do it? Software Development python | |
Hehe. I tried googling this, but all I've come up was Visual C++ results. How would I go about reading from a VERY VERY basic ini file in console C++ Using DevC++? The only things in the ini file are: b=65.0 c=1.5 k=1.65 I'm linking to this ini so that … Software Development c++ visual-basic | |
I'm trying to devise some base classes for a large system So why doesn't this work? [CODE=cpp] #include <iostream> using std::cout; using std::endl; #undef GetObject class IObject { public: IObject() { References = 0; } unsigned int GetRefCount() { return References; } private: protected: unsigned int References; friend class CHandle; … Software Development c++ | |
We are being introduced to ADT's with type LIST. I initially thought LIST was included in some C++ library with predefined functions such as .insert(), .retrieve(), .getLength(), isEmpty() and so on. I now suspect this is all created by the programmer with classes and header files........which we'll cover shortly. Confused … Software Development c++ | |
hey, im really struggling displaying the maximum value in this array, i have managed to get the average and etc but getting it to display the maximum and minimum value in the array is proving to be hard can anyone help? heres what i have so far Program arrayz; uses … Software Development pascal | |
Hello, Can anyone provide me the optimized and with low complexity program to remove the repeated elements in an single linked list program? Software Development c linked-list | |
ok, i have a question say i have a class that wraps all file accesing functions ( basicly opening, reading and closing ) all these file handling functions throw a FileException exception i have a try block in that i open, read and close my file using the above mentioned … Software Development c++ file-system | |
Hi everybody, i have got a java practical project due this year, though i want to use my previous years project and just build upon it. i am in my last year of high school, so it is a very basic program. i dont know if anybody would help me … Software Development java | |
I have three comboboxes. I want to be able to select from the first one and have the other two show the related data. For example in the first I pick a category - there are six categories. When I choose a category the second combo box now shows the … Software Development vb.net | |
can anyone give a sample code for applying sounds on vb.. thanks.. i already applied a code but it wont work.. Public MTime As Byte MMControl1.FileName = App.Path & "\music\Music.mid" Private Sub Timer4_Timer() MTime = MTime + 1 If MTime = 113 Then ShutYerNoise Play MTime = 0 End If … Software Development audio visual-basic | |
hi, what is the process going on when a command is given in command prompt? How the executables are called when a command is given? Can anybody tell in detail? Software Development python | |
Good evening ladies and gents, Had a question concerning this piece of code that I'm trying out from a book, it supposed to open a file, write text to it, close it, reopen it, append text to it and then write the text from the file to the console screen, … | |
i have to generate a reminder to the user alerting about payment due dates. i am doing it using a label control which is placed in the main page, so just after he logged in, the DB will be checked for due dates and if any date is nearing , … Software Development visual-basic | |
Here is my code: [CODE]int LoadVerts(char *s_fName, OURCUSTOMVERTEX *p_Verts, short *p_Indices) { long i_CountVerts; long i_CountInds; unsigned char buffer[sizeof(OURCUSTOMVERTEX)]; basic_ifstream<unsigned char> f_DataFile; f_DataFile.open(s_fName, std::ios_base::in | std::ios_base::binary); f_DataFile.read(buffer, sizeof(long)); memcpy(&i_CountVerts, buffer, sizeof(long)); f_DataFile.read(buffer, sizeof(long)); memcpy(&i_CountInds, buffer, sizeof(long)); if ((p_Verts = (OURCUSTOMVERTEX *)realloc(p_Verts, sizeof(OURCUSTOMVERTEX) * i_CountVerts)) == NULL) exit( 1 ); if … Software Development c++ | |
Hi to all. I need help. Quick and easy question. Is it possible to randomize and than delate stream of character pairs(one by one) from the input file? How can I do that? The input is a stream of character pairs that represent playing cards. For example: 2C, 3H, JH... … Software Development c c# c++ file-stream | |
Can anyone tell, how can i write that program in C++, its little bit Object oriented programming related... but i really need to develop logic in C++ Here is the statement: Write three classes names: circle, square and triangle, derived from class shape. Write down a function named intersect in … Software Development c++ | |
[CODE]#pragma once class Account { public: //default constructors Account(); //constructor Account(double newSavingsBalance); //Methods //double MonthlyInterestRate(); //double newBalance(); void getMonthlyInterestRate(); static double AnnualInterestRate(); static void ModifyInterestRate(double newAnnualInterestRate); void setSavingsBalance(double newSavingsBalance); double getSavingsBalance(); double getAnnualInterestRate(); public: ~Account(void); private: double SavingsBalance; //static double AnnualInterestRate; };[/CODE] [CODE] #include "StdAfx.h" #include "Account.h" Account::Account(void) { } … Software Development c++ | |
How do I write a C++ program that takes a string containg a full name, and outputs each part of the name seperately? const string fullname= "Horatio thadeous Hornblow" using only simple codes like length, size, adding, and subtracting. | |
can any one help me to create safearray in python Software Development python | |
I want some functions of one class in another class how can i acess that functions Software Development c++ | |
Hello, I am trying to create a program that will read the point-slope information for two lines and determine if they intersect or are parallel. Below is the code I have: [CODE=c++]/*Point_Slope.ccp Reads the point and slope information for two lines and * determines whether they intersect or are parallel. … Software Development c++ | |
hi .. plz anyone has an ideas for final projects that can i do it in java? and i hope in computer information system :idea: plezzzz Software Development java | |
Is it possible to change the button name? Like I have: [code]private void Button1_Click(object sender, EventArgs e) { this.Button1.Name = "Button2" } private void Button2_Click(object sender, EventArgs e) { this.Button2.Text = "Button2" } [/code] But when I do that and click the button again it doesn't do anything, am I … Software Development | |
friends i got problem in connection between oracle and jsp as given in cracking codes in j2me in following codes <?xml version="1.0"?> <jsp:root xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd"> <main> <title>Branch Info</title> <%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <%java.sql.connection db=java.sql.DriverManager.getConnecton("jdbc:odbc:master","sa","amrit");%> <%java.sql.Statement st=db.createStatement();%> <%java.sql.ResultSet rs;%> <%rs=st.executeQuery("select item_code,quantity,unit_price form stock_mast;");%> <%while(rs.next(()){%> <%String name=rs.getString("item_code");%> <%int aId=rs.getInt("quantity");%> <%int uPrice=rs.getInt("unit_price");%> <item_code><%=name%><quantity><%=aId%></quantity><unit_price><%=uPrice%></unit_price></item_code> <%} %> <%rs.close();%> </main> … | |
hi, I am trying delete an old txt file and rename the new modified txt file... i followed everything from the example. However, i can't successfully rename the file. deletion is ok though. thank you. [code=cpp] void save(Name inName[], int j) { ofstream writer; writer.open("save.txt"); for(int x=0; x<j; x++) { … Software Development c++ | |
im trying to make a counter to count the number of odd numbers in an integer entered by a user but somehow my loop doesnt seem to go on as i hoped it would...im trying practise using the while loop that some of u guys demonstrated on my other thread... … Software Development c++ | |
I created a DTS package in sql that exports a table into csv format. Is it possible to call this package from vb.net. Please help. Software Development vb.net | |
I'm trying to make a somewhat simple PHP ide for personal use, I'm not too skilled in VB.NET and would like to learn some things about controls I am unfamiliar with, including the treeview control. Docked to the left of the form is a treeview control, where I hope to … Software Development hard-drive ide vb.net | |
hi, My program created an object array containing 271 objects from the "names.txt", and each object has 3 private class variables, "id lastname and firstname "...... i know i can't use ofstream writer to write it to a new file like.... Name name; writer<<name[270]; Anyone please help me understanding how … Software Development c++ | |
![]() | Hi, I need to resolve this problem: Is there any way, how to replace currently runned application with a new version? Like through uninstallation, when uninstall.exe is removed by itself. I have dialog with AutoUpdate in my application. It's small application so I don't want to make another autoupdate.exe file. … Software Development file-system pascal ![]() |
coming now to the new edge of the techonolgy | |
Never mind. That question was solved by myself. anyhow, when I compile my code, I get an error. [CODE] #include <iostream> #include <windows.h> using namespace std; int main(){ for (int number=1; number<=6; number++;){ if (number == 1){ numbersuffix = "st";} else if (number == 2){ numbersuffix = "nd";} else if … Software Development c++ | |
Im having problems with my insertcommand using odbcadapter, it doesnt insert the information I needed.. But the selectcommand works fine, only the insertcommand that is having problems.. heres my code.. [code] Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLogin.Click a = Trim(txtStudNo.Text) If Trim(txtStudNo.Text) = "" … | |
As we call easily Dll in ASP similarly , Is there any way to call Jar file in ASP Application ? | |
hi, thank you for replying. i started a new thread because nobody took a look at the old one. i finally figured out a way to add two arrays and using eArray. i also wrote the fibonacci code. However, when i debug and print the fibonacci number, i get some … Software Development c++ | |
I need to get a string from the console that is given in hex form like this: 3e900000. Then I need to convert it into bit so I can do bit wise thigns too it to generate the following out put: [QUOTE]3e900000 ==> 2^-2(1 + 2^-3)[/QUOTE] The above is a … | |
[code=cpp]#include <iostream> #include <iomanip> using namespace std; const float originalPrice = 50; const float markedupRate = 10; const float cTaxRate = 4; int main() { cout << "Enter the original price: "; float originalPrice; cin >> originalPrice; cout << "Enter the marked up rate(percent) : "; float markedupRate; cin >> … Software Development c++ | |
See i have a program in c or c++.. this program has many functions like add(), mul(), div(), sub() etc.... now i want to call a function such that in main there should be only one call for that particular funtion that i have to be called... ie in runtime … Software Development c++ | |
I've found API Jfreechart for creating chart with java and Jcalendar for calendar purpose.I've downloaded them and i don't know how to use these external API packages into the program.I use Eclipse europa and sometime editpad as text editor. I want to know how to add such packages in my … | |
So I have a huge class hierarch I am working with. I would like to store the objects of these classes in a ListBox and have a certain attribute used for the ListBox text. So my plan is to make a User Control and inherit from the ListBox. Is there … Software Development vb.net | |
Hello! I'm a web developer and have not ventured outside of the AJAX threads. However, we're trying to take on a desktop application project here at work, and I'm wondering what language to specify it to be built in. We have programmers in C++ and Java (as well as C). … | |
Hi, I have an application, that has a JFrame. Added to the JFrame's contentPane is a JDesktopPane. I use JMenuItems in the JMenu (in JMenuBar) to add, and then remove a JInternalFrame inside the JDesktopPane. But now.. when I use any acclerator keys, to invoke JMenuItems, they don't work, its … Software Development java | |
Hi, i am getting frustrated with my code. please, please, please help me. i wrote a class eArray with different functions and i have all of them working but 2. for the first i am trying to get the nth fibonacci number. the second one, i am trying to add … Software Development c++ | |
Hi all, just wondering if you anybody could give me some pointers as to where I could find a Microsoft tipsheet/how-to tutorial in terms of UI [I]design [/I](I know how to code it). Many thanks Software Development | |
Hey guys, So im working on this project which is create a shell in C using fork() and execve() commands in POSIX. The main things is a read_command() functions and a main which just has a while loop with fork and execve with an if statement that takes out the … Software Development c | |
Hey. I'm having some trouble writing a program. I just begun C++ and don't know the language all that well. I've gotten a small start to the program and could really use some pointers. Here are the program descriptions: Read list of strings and store strings in array of strings. … Software Development c++ | |
hello i am an absolute noob to java...took me about a day to work out how to compile a .java file to a .class file now i cant run the .class file in DOS can anyone help me plz :( the error i get is "Exception in thread "main" java.lang.NoClassDefFoundError: … Software Development java |
The End.