132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dexter1984

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++
Member Avatar for JRM
0
203
Member Avatar for Villanmac

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 …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
97
Member Avatar for sasdap

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
Member Avatar for vegaseat
0
221
Member Avatar for jonathanasdf

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
Member Avatar for jonathanasdf
0
141
Member Avatar for ganbree

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++
Member Avatar for zhelih
0
95
Member Avatar for guitarrick

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++
Member Avatar for guitarrick
0
189
Member Avatar for jase_5254

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
Member Avatar for philhodgkins
0
1K
Member Avatar for prakash.kudreka

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
Member Avatar for Salem
0
91
Member Avatar for kux

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
Member Avatar for kux
0
109
Member Avatar for preston_naidoo

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
Member Avatar for darkagn
0
63
Member Avatar for dier02

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
Member Avatar for Jx_Man
0
80
Member Avatar for lerkei

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
Member Avatar for Jx_Man
0
105
Member Avatar for sasdap

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
Member Avatar for sasdap
0
206
Member Avatar for JoBe

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, …

Software Development c++ ios
Member Avatar for JoBe
0
143
Member Avatar for dragonheart

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
Member Avatar for dragonheart
0
105
Member Avatar for loushou

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++
Member Avatar for Salem
0
273
Member Avatar for mauro21pl

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
Member Avatar for WaltP
0
93
Member Avatar for umar7001

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++
Member Avatar for umar7001
0
74
Member Avatar for dallaseve

[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++
Member Avatar for dallaseve
0
103
Member Avatar for kv79

Hi all. I need to copy file (like C:\home.exe to C:\windows) I need to do it for C or C++ compiler so i do not know the command . I was looking in the reference but i did not find anything about this. Thank you all for reading . I …

Software Development c
Member Avatar for Ancient Dragon
0
86
Member Avatar for rite2bobby

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.

Software Development c c# c++
Member Avatar for JRM
0
120
Member Avatar for ssakhamuri
Member Avatar for vegaseat
0
267
Member Avatar for rajachi

I want some functions of one class in another class how can i acess that functions

Software Development c++
Member Avatar for zhelih
0
101
Member Avatar for dbwalters

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++
Member Avatar for dbwalters
0
150
Member Avatar for baheddad

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
Member Avatar for baheddad
0
148
Member Avatar for Demond

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
Member Avatar for jonesc5
0
3K
Member Avatar for mramrit

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> …

Software Development apache java java-jsp oracle xml
Member Avatar for jwenting
0
113
Member Avatar for k2k

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++
Member Avatar for Salem
0
139
Member Avatar for number87

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++
Member Avatar for jonesc5
0
179
Member Avatar for Pareshja

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
Member Avatar for cutepinkbunnies
0
100
Member Avatar for rcadble

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
Member Avatar for Narue
0
169
Member Avatar for k2k

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++
Member Avatar for brk235
0
138
Member Avatar for Thew

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
Member Avatar for Thew
0
124
Member Avatar for zaibitreg
Member Avatar for jwenting
0
99
Member Avatar for jonathanasdf

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++
Member Avatar for jonathanasdf
0
218
Member Avatar for pickachu

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) = "" …

Software Development dataset vb.net
Member Avatar for ericstenson
0
105
Member Avatar for Ekta Midha

As we call easily Dll in ASP similarly , Is there any way to call Jar file in ASP Application ?

Software Development asp java
Member Avatar for Andryanus
0
52
Member Avatar for olams

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++
Member Avatar for olams
0
105
Member Avatar for mrynit

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 …

Software Development java storage
Member Avatar for mrynit
0
142
Member Avatar for jalo3030

[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++
Member Avatar for JRM
0
306
Member Avatar for rkavinash

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++
Member Avatar for Salem
0
117
Member Avatar for arunpawar

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 …

Software Development api java
Member Avatar for jwenting
0
450
Member Avatar for rp90

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
Member Avatar for rp90
0
93
Member Avatar for Tom Tolleson

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). …

Software Development c c# c++
Member Avatar for Narue
0
87
Member Avatar for cms271828

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
Member Avatar for cms271828
0
91
Member Avatar for olams

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++
Member Avatar for olams
0
187
Member Avatar for majestic0110

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
Member Avatar for majestic0110
0
124
Member Avatar for nnobakht

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
Member Avatar for Salem
0
93
Member Avatar for curls

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++
Member Avatar for curls
0
193
Member Avatar for xoron123

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
Member Avatar for xoron123
0
137

The End.