132,726 Archived Topics
Remove Filter ![]() | |
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++ | |
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++ | |
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 | |
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++ … | |
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. … | |
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)) . . . . . … | |
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++ | |
[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 | |
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 | |
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 … | |
[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 | |
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++ | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
May I know how to split a word into individual characters (letters)? For example, AUGC into A U G C Software Development java | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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++ | |
![]() | 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 ![]() |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 … | |
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 | |
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++ | |
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++ | |
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 | |
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: … | |
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 | |
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 | |
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++ | |
[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 |
The End.