49,761 Topics
| |
[QUOTE=abrou;542794]save the file as a .txt file or a .CSV (comma separated value) file. I disagree that this is the easiest though, but that's a matter of opinion.[/QUOTE] What would you do? I'm building a application that evaluates data comming out of an excel sheet. there is no other way … | |
Anyone know a good, simple set of classes to do thing like cartesian to spherical conversion, coordinate system transformations, etc? I wrote some of this stuff, but my code keeps breaking because of "special cases" that I have not handled. I just want to be able to use this stuff … | |
I have python 2.6 portable and would pop error when I import wx. After some search, I found The prementioned package missing in the XP system. I downloaded and Installed and went fine. My Question is : Is there any way to add vcredist_x86.exe's missing DLL direct to wxpython directory … | |
[code=cplusplus] #include <iostream> using namespace std; int main () { int choice,num1,num2,answer; cout<<"This is a caculator program which will do math for you\n"; cout<<"Please Choose From one of 4 math operators\n"; cout<<"1 +\n"; cout<<"2 *\n"; cout<<"3 -\n"; cout<<"4 \\n"; cin>>choice; if (choice==1) { cout<<"please enter in two numbers to add" … | |
Was wondering about Null pointers , do they really point to location zero in memory and does that location got all the bits zero. Does this mean a NULL pointer points to itself? [CODE] Node<Type> *A = 0; A = Find_Node(Position-1)->R_Link; [/CODE] I have this code , where "Find_Node" function … | |
Hello Everyone; I made a USB to RS232 converter but I need to do something else. The device is shown under device management in My Computer but I have to show "a new device found" baloon when every connection to my computer like a flash disk connected. How can I … | |
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 … | |
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 … | |
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 << … | |
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.. | |
I want to know how to capture the output screen of C++. It includes graphics and output uses only full screen mode. Printscreen is not working . Is there any special key combination to capture the screen and paste in word | |
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 … | |
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 … | |
hello! any ideas how i create users by username and password in 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 … | |
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? | |
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 … | |
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 … | |
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> … | |
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 … | |
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 .. | |
hey guys.. yaar i m very new in c++.. i need some help actually not some really big help:'( .. plz send me the code for a very simple text editor,, help me.. plz plz.. i expect the answers really thick and fast.. plz plz just a very simple text … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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'. … | |
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); … |
The End.