132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for peter brown

I have a problem, I want to create a program in C++. A simple program displaying all even number between 1 and 100, (such as 2, 4, 6, 8 etc.) in an out put. Can you tell me what wrong. Something like this. #include <iostream.h> int main() { int num1=1; …

Software Development c++
Member Avatar for Akill10
1
1K
Member Avatar for Peter_morley

I am trying to finish up my homework but I don't really understand the question Consider the array temps that the following statements define: typedef double WeekType[DAY_PER_WEEK]; typedef WeekType YearType[WEEKS_PER_YEAR]; YearType temps; temps[12] is a one-dimensional array of seven real numbers. Suppose that you want to compute the average of …

Software Development c++
Member Avatar for Fbody
1
192
Member Avatar for Micko

Hi people, when starting many of us were warn not to use gets() function. We know it's unsafe and it might easily crah program. On many boards there is FAQ in which there are advices not to use gets(). I wonder why such function exist in standard library and why …

Software Development c
Member Avatar for Narue
1
141
Member Avatar for User4699

I'm having a problem getting my buffer(string) to print out everything that the user inputs. When I run my code the buffer only prints out the last thing that is inputted. I've tried just about everything and I really do not know what else to do. I'm new to c++ …

Software Development c c# c++
Member Avatar for Ancient Dragon
1
165
Member Avatar for Takeshi91k

This is my first post here on Daniweb and I intend to do things right. I actually did read the "READ THIS FIRST" thread and instead of posting 500 lines of code I whipped up a test program I aptly titled test.cpp First I will walk you through my problem. …

Software Development c++ oop
Member Avatar for Takeshi91k
1
139
Member Avatar for jamesgreaves

In the past I have been able to simply read the physical pinouts on the: Games Port (DB15) (using PEEKS and POKES) . . . . . . . . . . . . . . . Parallel Port (DB25) (also using PEEK and POKES(888)) . . . . . …

Software Development audio vb.net
Member Avatar for setherith
1
132
Member Avatar for jsburkdc

I have a homework assignment that requires the user to input two equations from the keyboard. The user can enter any letter of the alphabet but each equation can only have a total of 26 letters. I created a class for the equations and I was able to validate the …

Software Development c++
Member Avatar for prvnkmr449
1
450
Member Avatar for lionaneesh

[B][I][U]Introduction[/U][/I][/B] Hey guys today I am writing a tutorial on Lists and tuples in Python.... So lets get started... [B][I][U] Layout:- [/U][/I][/B] 1.What are data sturctures? 2.What are tuples? 3.What are lists? 4.inbuilt functions on lists and tupples [B][I][I][U] What are Data structure?[/U][/I][/I][/B] Anybody familiar with programming or Actually Computers. …

Software Development data-structure python
Member Avatar for redyugi
1
3K
Member Avatar for hell_tej

Hi Frends, I m creating an project. In this project i need to store image in oracle database. I don't know how to store image in Oracle Using VB6 i want to add image by add Dilogbox How can it is possible? Please Send me answare and Coad if needed. …

Software Development image oracle visual-basic
Member Avatar for tmdeeps
1
159
Member Avatar for The Shadows

Hi, I have to write an address book using structs for a class. I have 90% of the code done, but I am having trouble ordering it. It is supposed to read in 10 entries from a file and then sort them by last name. All the information also has …

Software Development algorithm c c# c++ microsoft
Member Avatar for bonethugs
1
418
Member Avatar for daudiam

[CODE]class Faltu { public static void main(String aa[]) { int a=4,b; if (a==4) b=5; System.out.println ("b="+b); } }[/CODE] Here it says : "variable b might not have been initialized", but in the following : [CODE] class Faltu { public static void main(String aa[]) { int a=4,b; if (true) b=5; System.out.println …

Software Development java
Member Avatar for daudiam
1
89
Member Avatar for totalwar235

this questions may be vague, but how many functions can you open up through function calls without ending the function. and example would be... [CODE] int FunctionOne(); int FunctionTwo(); int FunctionThree(); int FunctionFour(); int FunctionFive(); int main() { FunctionOne(); return 0; } int FunctionOne() { FunctionTwo; return 0; } int …

Software Development c++
Member Avatar for Duki
1
157
Member Avatar for Usmaan

Hi Folks, A couple of questions... If in a class I have a main which is obviously static, do I have to make every method in the same class static as well? What does static actually mean and how does it affect the program? Also.. When given a certain method …

Software Development
Member Avatar for Geekitygeek
1
150
Member Avatar for Beat_Slayer

Two litle functions to help on text slice and spliting. The code comments say it all. [CODE]# Slicer takes as arguments a tuple containing the string before, # the string after and the string to truncate. It returns the string # between the two given strings Slicer = lambda((b, a, …

Software Development python
Member Avatar for Beat_Slayer
1
570
Member Avatar for mike_2000_17

Hi experts! I have the following code which I use for dynamically creating objects in one module (executable or shared object (.so or .dll)) and be able to delete it from any other module while enforcing the call to the delete operator in the original module where the object was …

Software Development c++
1
152
Member Avatar for N3wbi3C0d3r

Ok, i get Quick Basic, all version (1.1, 3.0, 4.5, 7.1) all because 1.1 doesnt work, so i keep trying then notice, there all DOS executables, and Windows XP doesnt support DOS executables. So i tried Command Prompt, hat didnt work either, technicly im screwed ;P, any ideas on how …

Software Development windows-xp
Member Avatar for anu79
1
3K
Member Avatar for kimbula...

I want to open a PDF document when I click on a button. I know the way to open a word document but couldn't apply the same method to open a PDF document. If anyone can help me regarding this matter it would be a great help to me. Thank …

Software Development pdf vb.net
Member Avatar for asp.net_SoS
1
129
Member Avatar for judithSampathwa

hi there, how can i assign a calender control to datagrid view cell by C# code.(like assigning values to a combobox in C# codeas below) [CODE] DataGridViewComboBoxColumn combobox = (DataGridViewComboBoxColumn)dgvActions.Rows[r].Cells[3].OwningColumn; combobox.Items.Clear(); combobox.Items.AddRange(u.LoadUSEmp()); [/CODE] thankxxx

Software Development vb.net
Member Avatar for Geekitygeek
1
179
Member Avatar for chuck577

Hello, I asked this question in the c++ forums but I've since moved the small program that I was working on over to C# Forms. have a current file that I am opening. Each line of said file looks like this: D40001~10997~811~DANIWEB~555-555-5555~7.70~I~2111 There are around 5000 lines with different DXXXXX …

Software Development c c# c++ dns file-stream
Member Avatar for Geekitygeek
1
376
Member Avatar for mitchems

I thought it might be useful to show the special local matching variables that perl uses. Here they are: $1..$9 Contains the subpattern from the corresponding set of parentheses in the last pattern matched like \1..\9 $& Contains the string matched by the last pattern match $` The string preceding …

Software Development perl regex
Member Avatar for d5e5
1
174
Member Avatar for Simon180

hi, i was wondering if anyone new much about listviews because i been looking for a bit of code or a custim listview that supports paging abit like a website list were u can select pages 1 to 10 but with a listview so i can limit the items to …

Software Development delphi listview pascal
1
101
Member Avatar for vegaseat

If you bind a Tkinter widget to an event, normally only the event information is passed to the function responding to the specific event like a mouse click. Python allows you to expand the event handler to include any number of values to be passed on. Here is a typical …

Software Development python tkinter
Member Avatar for bvdet
1
1K
Member Avatar for lipton150786

I want to read content of pdf file when window openfiledialog appear.I use VB 2005 at winform. anybody know please help me!!!( show code

Software Development pdf vb.net
Member Avatar for trpsjt2008
1
98
Member Avatar for Sunshineserene

May I know how to split a word into individual characters (letters)? For example, AUGC into A U G C

Software Development java
Member Avatar for jon.kiparsky
1
528
Member Avatar for hegde84

I want to create External UI using C# for MSI package. I found very little document after googling for long time. Please help!

Software Development
Member Avatar for chaithra85
1
216
Member Avatar for vegaseat

This code sample shows how to represent employee data as a list of dictionaries. This list can be sorted and grouped by dictionary keys. In this particular example, I demonstrate how to calculate each department's average age from the data after sorting and grouping. The code is heavily commented to …

Software Development python
Member Avatar for shahjapan
1
6K
Member Avatar for new_programmer

Hi all, I have no idea about C#. I know that its a good language +****************************************************+ | I DON'T NEED ANY HYPERLINKS( EXCEPT:Good Sites) | +*****************************************************+ My questions are the following ------------------------------- 1. What is the difference between C#, C++,VB.NEt? 2. What is .Net , is C# and C++ .Net …

Software Development asp.net c c# c++
Member Avatar for Shilpakmthn
1
203
Member Avatar for hueberting

damath is look like DAMA but with a twist that contains BASIC MATHEMATICAL OPERATION... hu can give me links that can help to create an AI and also to create a BOARD i dont have any idea in making a game ... this is our thesis proposal pls help me …

Software Development algorithm visual-basic
Member Avatar for hueberting
1
188
Member Avatar for Luther von Wulf

This function reformats a numeric sequence to include grouping in the usual human readable format. "123456789" becomes "123,456,789", for example. The formatting is localized to the current running machine. In a German locale the previous example becomes "123.456.789". In a Hindi locale it becomes "12,34,56,789". Printing numbers for human consumption …

Software Development c
1
489
Member Avatar for Benjaminsen

Hi everyone This is my first post here, so sorry if I break the etiquette of the forum. Anyway I am a founder in a small Danish company producing tools and services that help developers build better games. Historically we have focused primarily on flash due to the ease of …

Software Development api c c# c++ flash
Member Avatar for Benjaminsen
1
342
Member Avatar for trippinz

I embedded a font to my winform application and the font showed up on my computer as well as many others. But for some wierd reason it shows up as blank buttons (I used the font on buttons) on some peoples computers. It is not the OS they use as …

Software Development c c# c++ windows-vista
Member Avatar for trippinz
1
279
Member Avatar for nullSpace

I have a FileSystemWatcher, that moves excel data to a database when ever an excel sheet is made. But it keeps closing on the second iteration, and I can't understand why. Can someone please help. Here is the code. [CODE] private void StartWatcher() { // Create a new FileSystemWatcher and …

Software Development microsoft-office open-source
Member Avatar for nullSpace
1
180
Member Avatar for nats01282

Hello i am after a piece of code that will change my ip address every 30 seconds, i have no idea were to start so any help will be appricated thank you

Software Development c++
Member Avatar for sundip
1
141
Member Avatar for nssltd

Hi well i posted a earlier thread but no one has replied in three days i have one reply, but it's not what i wanted. he cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my …

Software Development
Member Avatar for nssltd
1
364
Member Avatar for vegaseat

Do I have to spell it out for you? This short C code will do just that. It will spell out an integer number in English words. The banks do that on large checks, and it would be nice to get one of those every now and then.

Software Development c
Member Avatar for soulcandra44
1
527
Member Avatar for DaveTran

I have an array of strings. [CODE] string[] array = new string[] { "0", "1", "2", "3", "4", "5", "6" }; [/CODE] I would like to remove a string from the array above using a variable removeIndex, let's say it is equal to 3. [CODE] int removeIndex = 3; [/CODE] …

Software Development
Member Avatar for nick.crane
1
3K
Member Avatar for krishna_sun82

Hello everyone, I am getting ImportError when I tried to do pure embedding and call Python function from C. The Python code is named dummy.py given by: [CODE=python] def multiply(x, y): print x, y z = x * y return z; [/CODE] It is called by the c program "calldummy.c" …

Software Development python
Member Avatar for krishna_sun82
1
1K
Member Avatar for ssmg

Hello everyone; I'm trying to do something which I'm not sure if it is available in c++. Actually, I'm developing a game with functions.And to reset the game when the user presses a button or a certain event occurs, the program must start running from all over, say from the …

Software Development c++
Member Avatar for ssmg
1
12K
Member Avatar for judithSampathwa

Hi there, I am loading data to a datagridview from the database. How can I make the cells that were loaded from the database to only read only. I have a button in the interface so that I can add arrows to the same datagrid view. How can I make …

Software Development vb.net
Member Avatar for judithSampathwa
1
104
Member Avatar for cgcgames

Hi everyone I am currently learning C++ and i am writing lots of small bits of code to get praticed in coding in C++. i am working on a user system atm which takes a signup from the user and puts it in a text file so the user and …

Software Development c++ ios
Member Avatar for cgcgames
1
91
Member Avatar for louisdinh

I wrote the tic tac toe with minimax algorithm. However, there are some bugs that i cannot figure out why the computer cannot win the human. Please help me to fix it. Thanks. I upload a zip of all files for you to check it easier. I guarantee that it …

Software Development algorithm c++ legal
Member Avatar for louisdinh
1
2K
Member Avatar for yogesh21

Hi friends, I want to create setup file of a desktop application using vb.net. How could i do it? Thanks in advance

Software Development vb.net
Member Avatar for pkpbmt
1
133
Member Avatar for 2008macedonkon3

Hey all, i have been reading some c++ books and they talk about a variable type called float but they also mention another one named double and another one named long double but what i don't understand is the difference, the furthest i get is that they tell me float …

Software Development c++
Member Avatar for Kanoisa
1
2K
Member Avatar for Kanoisa

Hi guys, Im working through accelerated c++ book and in chapter 4 ex 2 i had to build a program that displayed the square of ints (i) 1->100 inclusive using setw() to align the results. this i did ok and it works fine like 3 lines of code. However in …

Software Development c++
Member Avatar for arkoenig
1
183
Member Avatar for DaveTran

If I have an interface for all poolable objects and I require each poolable object to have two delegated methods. [CODE] public delegate T CreateNewObjectGame(Game1 game); public delegate bool ValidateObject(T obj); [/CODE] How can I make sure they are always required when inheriting from an interface when an interface can't …

Software Development
Member Avatar for DaveTran
1
295
Member Avatar for superjacent

I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private: …

Software Development c++ ruby
Member Avatar for sheldonrobinson
1
59K
Member Avatar for XtremeDeveloper

Hi guys I have made an advanced vb webbrowser and I'm hoping for you comments its in beta stage do you have any suggestions/feedback. features I didn't list: 1. Non ie based webkit based 2. supports file downloads. 3. User Login based supports multiple user data configurations 4. Supports Theming …

Software Development vb.net web-browser
Member Avatar for Oxiegen
1
230
Member Avatar for prash.study

Hi All , Can you please explain me about the Java Design pattern as many Developers suggested me. What role it plays while programming. -Prashant

Software Development java web-design
Member Avatar for Zaad
1
142
Member Avatar for Ershad K

Dear all, I'm writing a small application in Linux using g++ compiler which asks for username and password. Could you please help me to mask the password entered by the user with * symbol? getch and _getch is not working. Please help. Thanks, Ershad

Software Development c++
Member Avatar for Ershad K
1
7K
Member Avatar for charat

[CODE]import java.util.Scanner; public class FutureInvestment { public static void main(String[] args) { // Display name System.out.println("Programmed by "); Scanner input = new Scanner(System.in); // Prompt user to input investment amount System.out.print("Enter an investment amount: "); double investment = input.nextInt(); // Prompt user to input interest amount System.out.print("Enter an interest rate: …

Software Development java
Member Avatar for WargRider
1
145

The End.