51,593 Topics
![]() | |
I need help so bad. I don't understand enum and I have tried to take the code below and change it from the Switch to using an enum & an array to supposedly make it easier. I don't know how to take the user input that is string and put … | |
Is the common language runtime the only way to develop graphical user interfaces in c++? That had been what I thought until I read a gaming thread( how to develop board games in c++ ). A dll, which i have to use, refuses to work with the clr (i am … | |
Hi, everybody. The question is : if the user input a set of numbers, you don't know how long the set is, like 1, 2, 3, 4, 5, 5, 5, 6, 1, 3, -1, -12141, 123, -1...., you are asked to find the dumplicate numbers in this set. I mean … | |
Hi all ! what is the difference between Dll and process ??? amit | |
How to make my Pocket PC Application run in background such that when some event occurs it displays a notification and if i click on it, the applcn window should show. | |
i want to calculate the running time of my program in C++ compilier TC300, please explain each point | |
SO I am trying to write a program in C++ that take in Grades 1-5 and how many cans they collect. This program needs to add the cans they collect then print them. I am very new to C++ and I am better at writing Pseudocode than actual C++ languange … | |
I have to write a program for class and it is suppose to read in an unknown number of employee records from a text file and each employee string has 47 characters, which includes name, employee number and hours worked, rate, overtime, and a few other variables. The problem I … ![]() | |
Hi all, I already know 60% of the BASIC syntax of c++. I would like to experiment with creating a GUI application however I have no clue were to start. Could you kindly provide me with a name of a good book which focuses on Simple GUI creation and simple … | |
i wrote this program to input 12 intigers (mustuse linked lists), sort it while its being inserted, then take the average, then take out the numbers that are greater then the average and make a new lists, then take a second list of 12 intigers, then lastly merge those 2 … | |
I am trying to make a program that already have a picture in it(picturebox) and finds the brightest pixel and labels them(label) I am programming in Microsoft Visual C++ Express edition if that helps at all | |
They seemed to make sense to me, until I read somewhere than an example of a constructor is [code] std::ifstream myFile("filename.txt"); [/code] ..the author went on to say that (obviously, in this example) they can be called after an object is instantiated, ie: [code] std::ifstream myFile; // some code here … | |
Ok I am wanting to [URL="http://www.daniweb.com/forums/thread81491.html#"]download[/URL] the newest version of the gcc compiler and emacs or gedit to run with PowerShell. I was hoping that someone could give me detailed instructions on how to do so. I am using Windows XP. I believe this is the right place to ask … | |
My work uses Powershell, I was wondering if someone can explain to me how to write c++ with it, if I even can, also what compiler to get for it, and where I can get it. Thanks -kylcrow | |
Hello, Please do anyone among you know about c software execution optimization.. thanks | |
im making a timer program. that when a user dont input something in a specific time. the program will go to another menu so far in my research. threads would be the solution to this. but in my current status right now as a c++ programmer. i dont think im … | |
I'm trying to solidify my understanding of some vector concepts. 1) interators are "smart access" in that they can keep track of the array position and size. 2) the access element operator [] is the "dumb" access to the vector. Also, I was experimenting with ways to dump the contents … | |
Guys I'm trying to see if I can use DEV to write plugins (DLL) for my animation program Maya. I'm having a little bit of trouble getting started. Once I create the DLL project I tried doing a build to see what I would get just with on empty project … | |
How can I execute a command like for example using system(); but execute so the program does not need to wait until the function returns before it continues. Also when executing a command using system(); can you make it so that the console window does not pop up onto the … | |
I'm studying C++ beginner book for a while and now I'm learning a function call by reference. I understand how but I don't understand why.... I solved the problem which is in my book. Problem: Create a void function called round() that rounds the value of its double argument to … | |
Hi guys and Gals, Have some trouble digesting some facts about Casting in C++. 1). Why can't we use a static_cast for safe downcasting on a polymorphic class? 2).Consider this snippet.. [code] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] A {};[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]class[/COLOR][COLOR=green] B { public: B (A a) {} };[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]A a;[/COLOR][/COLOR][/COLOR] [COLOR=green][COLOR=green][COLOR=green]B b=a;[/COLOR] [/COLOR][/COLOR][/code] [COLOR=green]How … | |
Is it possible in C++ to have a function that returns a 2-D or indeed an X-D array from a function, with a specified type such as.. [code=c] char [][] myFunction() { char a[][]; //Do something with array here return a; } [/code] Also, if this can be done, can … ![]() | |
Hi im using switch to access some member functions through object [U]s1[/U] of that class [code]switch(choice) { case 1: s1.Now(); break; case 2: s1.create(); break; case 3: s1.display(); break; case 4: s1.change(); break;}[/code] Is there a way to change/use only a part of a function? For example for case 2 … | |
Hello... I would like to know if C++ is actually used in games development... I understand it's to create or update the game engine, such as say unreal, though is t used for more? thanks | |
I 've read Narue's answers in another game thread but there are still some things I would like to ask. what kind of c++ works best for games? can one use any kind. the main reason for using c++ is, i assume, to take up as little space as possible … | |
Hi all - First time posting so please bear with me. I'm in the last week of a C++ class and cannot figure out how to do this assignment. I need to evaluate each character of a string and process using a switch statement. The CASE processing I have no … | |
Hi all, I was reading about some stuff about References in C++ and got into a debatable topic.. Is references same as a constant pointer to a variable or not. I got some info. to support the topic [URL="http://www.codeproject.com/useritems/References_in_c__.asp"]here[/URL]. At the same time, something that says otherwise [URL="http://www.cprogramming.com/tutorial/references.html"]here[/URL]. Can you … | |
What i have to create is a program that establishes 2 structs with arrays of CD Albums and then search the arrays for album names and display the album name, Artist or group, songs and their track numbers. My question is; [COLOR="red"]have i missed something in the code?[/COLOR], because it … | |
Hello there, anyone here knows what is the function or library in Linux that corresponds to the win32 functions/library given bellow. library - #include <Windows.h> functions - GetDiskFreeSpaceEx()、GetFileAttribute()、GetModuleFileName()、GetFileVersionInfoSize()、GetFileVersion( ) Thank you! | |
I basically need to write a program that will display all images in a directory, sequentially, and either create or open an existing corresponding text file, and allow a user to write/dictate into it. (e.g. So working in a directory containing one.tif, two.tif and three.tif, the program will open/create one.txt, … | |
Ok, say im using the cmd prompt version of MSVC++(or the windows app type), how do i post a project on daniweb, HTML, or any other website(or like a quick luanch desktop icon)? | |
I want the program to have the user select either Y or N to display the list of albums in the array, if the user entered Y to display the list of albums then have the user enter a name for an album from the list to search the array … | |
Hello you guys. I'm very excited since I'm so close to finishing my project. However before I'm totally done I am kind of stuck on this error message when compiling. It says "[COLOR=red]cannot find -lobjc[/COLOR]." Have anyone seen this before? [U]What does it mean?[/U] I've added my entire code if … | |
Hello guys, I'm using John Smiley's Learn to program in C++ as a self study guide to this language along with the free Borland compiler ver 5.5. It's unique in that he's teaching the basics of the language, at the same time developing a single program and not jumping all … | |
Basically I'm writing a function to change all the '|' characters in a string passed as a parameter to '\n' characters. Seems simple enough to do, but I get one of those "Application has encountered a problem and needs to close. We are sorry for the inconvenience." messages. [code=c] char … | |
on start of windows xp i get an error message: c:\WINDOWS\system32\kmggucmt.dll - the specific module could not be found, i hijacked this and my log file is: Logfile of HijackThis v1.99.1 Scan saved at 17:01:21, on 12/06/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16441) Running processes: … | |
+ adding component to the editor: button, textbox, textarea, listbox, checkbox, radiobutton, hyperlink. thanks a lot!!! | |
i have a form which i have to protect with a password. this form is called from a user form which does not have any passwords on it. which means anyone can access it. in order to accomplish the security i placed a password in an access database but the … | |
So Im trying to write some code that takes a chunk of text, splits it up into words, then puts these words into an array. What I have is: [code] string buf; stringstream ss(database); // database is my chunk of text while (ss >> buf) // Tokenize when whitespace met … | |
Could you please give some info regarding - What are basically linked lists . I know that they can be used as arrays and stacks and queues. But confused a bit about FIFO and LIFO CONCEPTS. I cant understand how do we always access the stack from top.It is just … | |
ok i have a problem, like you can see in the code i already create a bidimesional array step by step..... ok i want to eliminate that, and instead of that i want to load the array from a .txt like this> 0-0-6-0-0-0-6-0-0-0 0-0-8-4-0-0-0-0-0-0 6-8-0-0-0-0-0-0-0-0 0-4-0-0-2-0-0-0-0-0 0-0-0-2-0-4-0-0-0-0 0-0-0-0-4-0-0-1-0-0 6-0-0-0-0-0-0-0-0-5 0-0-0-0-0-1-0-0-7-0 … | |
Here is a snippet from an example on C++.com. They use what looks like a do loop. I tried putting it into their search, but nothing came back for "do". As far as I can tell it forces the loop intially, otherwise the while statement would cause it drop through … | |
Hi Guys; Im doing a BNC, and I need to change the resolution of the capture from 32 bits to 256 colors. Do anyone knows how to do that? Is there any function that changes it? Thanks | |
I am a beginner that is learning C++. I would like to now how everyone else learnt C++. | |
What is the difference between "\n" and '\n'.? Also what is the difference between " " and ' '?? | |
HELLO THIS IS MY FIRST POST. I WISHED IF ANY ONE COULD HELP IN EXTRACTING WORDS FROM A CHAR ARRAY -STRING LIKE IF THE SENTENCE INPUTTED BY USER - [B]JACK WENT UP [/B] THEN I NEED TO PRINT THESE WORDS SEPARATELY ON FRESH LINES OUTPUT- JACK WENT UP [B] I … | |
Why does this not work, and are there other alternatives? This will eventually be used in a loop of sorts.. the different fileName's will be determined by the program in real time.. [code=cplusplus] #include <fstream> #include <iostream> int main (int argc, char** argv) { std::string fileName; fileName = "testFile.txt"; // … | |
anyone know how to convert C++ DLL to be compatible with C#? | |
int x=10; string y; How do I bring about this conversion y=x; with a single statement? should I use typecasting, somebody pls guide me. I dont know how to do it. itoa is so complex | |
[code=cplusplus] void CLine::Draw(CDC *pDC) { pDC->MoveTo(m_ptFrom); pDC->LineTo(m_ptTo); } [/code] 'void CLine::Draw(CDC *)' : overloaded member function not found in 'CLine' |
The End.