49,761 Topics

Member Avatar for
Member Avatar for JRM

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 …

Member Avatar for Narue
0
227
Member Avatar for nottoshabi

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 …

Member Avatar for Killer_Typo
0
93
Member Avatar for bops

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 …

Member Avatar for thekashyap
0
2K
Member Avatar for doraemon

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 …

Member Avatar for doraemon
0
133
Member Avatar for bala24

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 …

Member Avatar for thekashyap
0
115
Member Avatar for bops

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 …

Member Avatar for iamthwee
0
805
Member Avatar for machine

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 …

Member Avatar for machine
0
77
Member Avatar for ss339

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

Member Avatar for Salem
0
99
Member Avatar for quintoncoert

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 …

Member Avatar for Narue
0
142
Member Avatar for Teresa_Hall

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 …

Member Avatar for Narue
0
232
Member Avatar for bala24

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 …

Member Avatar for bala24
0
120
Member Avatar for kpillsb39

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 …

Member Avatar for hinduengg
0
222
Member Avatar for jaepi

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!

Member Avatar for jaepi
0
705
Member Avatar for phalaris_trip

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, …

Member Avatar for phalaris_trip
0
175
Member Avatar for lotsofsloths

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)?

Member Avatar for ~s.o.s~
0
321
Member Avatar for kpillsb39

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 …

Member Avatar for ~s.o.s~
0
96
Member Avatar for sadaka

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 …

Member Avatar for Ancient Dragon
0
139
Member Avatar for vidal80

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 …

Member Avatar for Narue
0
81
Member Avatar for bops

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 …

Member Avatar for Narue
0
115
Member Avatar for mankichi

+ adding component to the editor: button, textbox, textarea, listbox, checkbox, radiobutton, hyperlink. thanks a lot!!!

Member Avatar for thekashyap
0
44
Member Avatar for quintoncoert

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 …

Member Avatar for quintoncoert
0
91
Member Avatar for hbweb500

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 …

Member Avatar for hbweb500
0
246
Member Avatar for hinduengg

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 …

Member Avatar for hinduengg
0
108
Member Avatar for fernando22

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 …

Member Avatar for fernando22
0
187
Member Avatar for JRM

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 …

Member Avatar for JRM
0
110
Member Avatar for Ruso1636

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

Member Avatar for Ruso1636
0
128
Member Avatar for pyapplico

I am a beginner that is learning C++. I would like to now how everyone else learnt C++.

Member Avatar for hinduengg
0
160
Member Avatar for doraemon

What is the difference between "\n" and '\n'.? Also what is the difference between " " and ' '??

Member Avatar for doraemon
0
85
Member Avatar for hinduengg

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 …

Member Avatar for Narue
0
3K
Member Avatar for phalaris_trip

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"; // …

Member Avatar for ~s.o.s~
0
193

The End.