132,726 Archived Topics
Remove Filter ![]() | |
What do you think would be the best way to write this structure [code=python] if testA: actionA() if testB: actionB() if textC: actionC() else: actionDefault() else: actionDefault() else: actionDefault() [/code] if I want to write only one call to actionDefault() ? Software Development python | |
Hey Everyone, So, I'm having an issue with a compiler error (C3861 to be exact). I'm creating a Binary Search Tree for my C++ course. The Binary Search Tree needs to overload the << operator & print the data in the tree inorder. My initial thought on solving this problem … Software Development c++ | |
I'm trying to write a program in C++ which writes characters into a file from 100 chars up to 120.000.000 chars in Linux. Would it be faster if I would try to use multithreading and if yes could you give me some advice some links to useful sites maybe some … Software Development c++ multithreading | |
I put together this little example to test my sanity, and it failed! [code] #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> using namespace std; /* Example.txt 23 test 4.5 */ int main(int argc, char *argv[]) { string Filename = argv[1]; cout << "Filename: " << Filename << … Software Development c++ | |
i need to input a password but it should be printed as a special character..how can i possibly do that? thanks in advance for the answer and im sorry for the disturbance..im just starting studying this kinds of stuff..again..thank you in advance..good day.. Software Development c++ | |
heyy i m makin a video splitter in VB 6.0...the problem is that wen i split a video file is 2 parts or more only ...the video gets splitted but only the first splitted video runs...others do not....i know the header wud not be present in other videos...now wat shud … Software Development video visual-basic | |
I have been trying to process some text about 10000 lines to upwards of 26000 lines of text. I wrote a program to search for text strings and copy the lines around them if they are found. It searches Line by Line. I need to improve this code speed so … | |
I have an inheritance heirarchy and I need to use polymorphism. I have some questions because i don't really understand it fully. What i have to do is create a vector of pointers (account) to 2 of my derived class objects, SavingsAccount and CheckingAccount. Then for each account in my … Software Development c++ | |
hi, i have one question: does anybody know how to end program. i have one function in whom i calculate two numbers. i want to end program if my number is to big for example 12345 + 91111=103456 but i don't want that my has 6 digits so i want … Software Development c++ | |
Im having trouble with my internet linking. I have a picture boc named [I][B]picq[/B][/I] that i want the user to be able to click to take them to a web page. i tried the following: picq.picture =(url) im new to this so bear with me Software Development visual-basic | |
Hi, I am trying to read first 6000 bytes from a webpage, using StreamReader.Read(buffer, offset, no_of_bytes_to_read) method and trying to close the connection. Because, the useful data I need is present in the first 6000 bytes of the webpage and webpage size is atleast 100Kb. And, I need to repeat … Software Development | |
I'm having a bit of trouble with this random number generation function. It's going to be part of a much larger program which requires lots of random numbers so I decided to use time as a seed. However I can't seem to get this to work. This code is virtually … Software Development c | |
hello! any ideas how i create users by username and password in c++? Software Development c++ | |
HI, Im 20f doing course on multimedia game development. Im very new to C++ and not familiar with the codes. Can someone helps assisting as my assignment due soon. I have only left this 1 task to complete.. My lecturere had covered some fstreams chapters, enum struct and string. Assignment … Software Development c c# c++ multimedia | |
is there any performance benefit of using constant pointer to constant variable like the following? [CODE]void doSome(const int * const param) { //do something ; }[/CODE] i know that making param constant is good for performance, how about making both constant? Software Development c++ | |
Dear Friends Please provide me solution code of this programme. A C++ program which contains a class named Time having three data members. • Hours • Minutes • Seconds The class must have • A default and parameterized constructor • show() method to display the time in proper format like … Software Development c++ | |
Can anybody tell me where should i pass sql statement in crystal report . suppose i want to pass these codes in crystal report.this would be greately appereciated. [code] RECORDSQL = "SELECT * From MR WHERE (((MR.Req_no)=" & Text12.Text & "));" rs.Open RECORDSQL, con, adOpenDynamic, adLockOptimistic [/code] Software Development visual-basic | |
Hi everyone, I'm new to this site and figured I could get some assistance here. I'm a college student with slight programming experience. Anyways... The program I need to create... needs to read a text file into an array of structures that are linked - hence a linked list. That … Software Development algorithm c++ linked-list windows-vista | |
hi there all , how do i loop this back to the main menu after i have used ctrl+d to give me the final total ...i looked everywhere and tried a few things but no success , my book doesnt say much either thanks . [code=cplusplus] #include <iostream> #include <cstdlib> … Software Development c++ | |
Hi When using java, for almost all the time i just use java.swing for my applications that i make, yet when using other programming languages i often find that the GUI toolkit that comes bundled with the download of the Development Kit, is not quite as good as some third … Software Development gui java java-swing | |
I am completly lost... I need to create a program displaying the following: Create an application with the ability to enter 5 student names. The information should be: - Student Id - Name - And final grade Print the information to the console in a tabular format with column headings … Software Development c++ | |
Hey Guys, I am a newb when it comes to bash scripting,but I am loving the learning so far. I am at a wall though. I have scoured for hours tryng to find an answer. Basically here is the pseudo code: 1. ask for users grade 3 times in using … Software Development shell-scripting | |
Hi, I read something like "\mkdir ${RESULT_DIR}". Just curious about why "\" is added before the command? Thanks for help! Software Development shell-scripting | |
Can anyone give me some good forums or advice on threadpools in C# ??? Thanks ...:D Software Development | |
i have 2 combo box country and state if i select any one of the countryin first combo box automatically partcular state shoudl display in second combo box ...can u tell me javascript coding for this ? Software Development java javascript | |
hi you all.. i want to flash the output message to the screen for a limited time. can you plz help me ? is there something in iomanip, or should i do something with system("pause") and system("clear").. although the latest dont seem to me like a good solution .. | |
Hi everyone, I am trying to insert a image into the jtextpane using the html document as the default document for the jtextpane. It seems that nothing happens when i try to insert the image from disk. htmldoc - an instance of the HTMLDocument class TextPane1 - an instance of … | |
I am writing a browser program in C++ Builder 6 that loads a web page using the following code: [code]void __fastcall TForm1::ToolButton1Click(TObject *Sender) { wchar_t buff[100]; MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, "http://www.daniweb.com", -1, buff, sizeof(buff)); CppWebBrowser1->Navigate(buff, 0, 0, 0, 0); }[/code] To include the address bar implementation, I need a temporary string derived … Software Development c++ web-browser | |
Hi Guys, I was wondering if you guys could please give me some good project ideas. Projects should be real world problems related and should be of the level of a Masters Student (latter is not that important). Please let me know if you guys have any great project ideas. Software Development c++ | |
I have a program that needs to be looped continuously until the user inputs an X. I am not really sure how to go about doing that. Can I make the whole program one giant while() loop? Here is the code for the program: [code] // prog1.cpp : Defines the … Software Development c++ | |
hello everyone =) can someone help me please to solve somthing..? I have difficulties in my calculator program. I am using the 2005/2008 edition of vb express. I created a calculator with only one textbox, and i can't figure it out how to insert 2 values and make the arithmetic … Software Development vb.net | |
I'm trying to pass a character as parameter into a function. I will then get the user's input( characters and numbers etc), the function then will return all the input characters excluding everything else. I've gotten the sorting the characters from everything else figured out, but returning the array back … Software Development c++ | |
to make the programs more efficient, do i need to free variables which are declared locally in the functions? Are they not disposed when the function ends? Software Development c | |
Hi all, I have little problem when reading a file char by char and when i tried to make a check at the end of file. I am making a check through '\n' but its not working. Please have a look in the following Program and let me know yours … Software Development c++ file-system | |
I am doing a homework assignment in which we have to get an undetermained amount of numbers from the user. I was wondering how to tell when the user is done entering numbers and wants to exit the loop, such as perhaps a blank space or a word like 'quit'. … Software Development c++ | |
![]() | <code> Hi Guys, I am new in perl. I have this file:- 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 BCDE MS08-001 Works Suite 2005 (KB943973) 2009-01-09 09:29:19 FFFF MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-002 Works Suite … Software Development file-system perl ![]() |
VB 2005, XP Pro SP2 Again, I am plagued with this vague MS program of clr20r3 invalidoperationexception on a client's machine. It works fine from the development machine and from a brand new XP machine. How do you determine what the problem is????? What is strange is that the App … Software Development vb.net | |
Wel, I have discovered, how to copy one text file to another,yet. (See code bellow). However, I really need to Cap every word in the source text file and copy the text that way to the second file. But I'm desperate. I tried few ways to make it (via Character.toUpperCase()) … Software Development file-system java | |
Can anyone help me out with the code. I'm getting the Null Reference Object Exception at the following line textFile1_Paras[paraNumber] = line; I'm trying to separate paragraphs from a text file into string array [code] int paraNumber = 0; string[] lines = File.ReadAllLines(filePath1); foreach (string line in lines) { while … Software Development | |
Hi guys (again), Another exercise in Turbo Pascal about linked lists. [COLOR="Green"][B] Write a program that merges 2 linked lists and sorts elements from the lowest to the greatest. let suppose the list has this elements list = ^pointer; pointer = record value:integer; next:list; end;[/B][/COLOR] Please help, I have an … Software Development linked-list pascal | |
| |
hi I'm trying to use this code that i found to send an email message using c# application. i have an iis service running on my computer and the smtp server is configured as my providers smtp server. the problem is that when i try to send mail i get … Software Development client-server | |
I have an assignment about the String Class overload function and operator. Here is the problem i face: Need an append() function to construct the String. So the String constructor is: [ICODE]String::String(char *s) { init(); append(s); }[/ICODE] [ICODE]String& String::append(char *other) { String temp; temp.m_length=strlen(other)+strlen(temp.m_buffer)+1; temp.m_buffer=new char[] m_length; if(!m_length) { strcpy(temp.m_buffer,other); … Software Development c++ | |
Hi, I have a question regarding fscanf. In my program I call [icode]fscanf(fp, "%15[^,],%d,%315[^;];", anum, &bal, cust)[/icode]. Everything works fine and there is no problem with the syntax, the only trouble I am having is that I need to copy the ';' as well into cust and use it as … Software Development c | |
I am having trouble using cin.getline and classes. Here is the code[CODE] #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <fstream> using namespace std; class RememberPlans { public: string date; string subject; string resources; string description; }; RememberPlans nds; // Function Prototypes bool enterPlans(RememberPlans& nds); void exportData(RememberPlans& nds); void … Software Development c++ ios visual-studio | |
Hi all, I'm researching how to move data from a C#.Net web program into our accounting MAS90 database and back. I can do this manually, what I want to attempt to figure out is how to make the system do it without me having to hit a button. I'm hearing … Software Development | |
I will be starting working on perl and java soon.. Can anyone please help, form where to start so that i get the confidence of working on it and i can do hands on. | |
A University has decided to computerize its exam grading. They have a standard paper that contains 25 multiple choice questions each with four choices. All the answers by students are entered in a file. You are to read the file and calculate if the student passed or failed (60% or … Software Development c++ |
The End.