49,761 Topics
| |
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 … | |
+ 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"; // … |
The End.