Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: iProgrammer
Forum: C++ May 24th, 2010, 10:32 PM
Replies: 5
Views: 245
Posted By iProgrammer
Re: What STL data structure should I use?

Thanks for the response, Sane.

Thinking about it, I think you are right. I don't need to worry about optimizing right now for what I am doing.
Forum: C++ May 24th, 2010, 9:32 PM
Replies: 5
Views: 245
Posted By iProgrammer
What STL data structure should I use?

Hi,

I am storing data in a class, but I am not sure how many objects I will be storing.
Currently, I am using a vector, but I was thinking this is less efficient because the program has to...
Forum: C++ Apr 28th, 2010, 2:54 PM
Replies: 12
Views: 518
Posted By iProgrammer
Re: Intellisense Problem

Hi, I get the same message in VS2008 (express) when I try to open the same project in 2 different windows. VS2008 locks access to the .ncb file, but not the .sln so you can still open the project...
Forum: C++ Apr 28th, 2010, 2:51 PM
Replies: 13
Views: 687
Posted By iProgrammer
Re: psudocode ... does this sound right?

Looks fine to me. Just rename 'x' to 'largest' and 'y' to 'smallest' to make it easier.
Forum: C++ Apr 23rd, 2010, 9:17 PM
Replies: 2
Views: 233
Posted By iProgrammer
Re: Library / Open Source For "abstract math"?

Although I have never used it, I would suggest looking at Boost Math (http://www.boost.org/doc/libs/1_42_0/libs/math/doc/html/index.html).
Forum: C++ Mar 22nd, 2010, 3:40 PM
Replies: 4
Views: 173
Posted By iProgrammer
Re: Grant Acess to only protected, not private?

Okay, thanks for the confirmation and quick response!
Forum: C++ Mar 21st, 2010, 7:28 PM
Replies: 4
Views: 173
Posted By iProgrammer
Re: Grant Acess to only protected, not private?

Thanks for the response, but will using friend class son help at all? It grants access to both private and protected, but I want to block access to private members.
Forum: C++ Mar 21st, 2010, 4:55 PM
Replies: 4
Views: 173
Posted By iProgrammer
Grant Acess to only protected, not private?

Hi,

I was wondering how I could grant a non-inherited class access to only the protected members of a certain class, but not the private members.
I am trying to write some code that would benefit a...
Forum: C++ Mar 16th, 2010, 12:31 AM
Replies: 19
Views: 873
Posted By iProgrammer
Re: Random number always 41.

If it made anyone laugh, it did what I wanted it to do :D
Forum: C++ Mar 15th, 2010, 10:25 AM
Replies: 7
Views: 292
Posted By iProgrammer
Re: Data caching for vector of bits vs bytes?

Thanks for the responses.

I guess 8 bits per pixel is faster because the loading time will probably be a very large factor (as I don't plan on accessing many pixels more than once).
Forum: C++ Mar 15th, 2010, 10:21 AM
Replies: 19
Views: 873
Posted By iProgrammer
Re: Random number always 41.

Just having some fun. Forgot to add a "return temp" line in the random() function.

But, it works, no?
Forum: C++ Mar 15th, 2010, 12:29 AM
Replies: 19
Views: 873
Posted By iProgrammer
Re: Random number always 41.

Here is my random solution:
#include <iostream>
#include <cstdlib>
#include <ctime>

int main()
{
srand(time(0));
int random_number = random();
cout << random_number << " is random!\n";
Forum: C++ Mar 14th, 2010, 12:05 PM
Replies: 7
Views: 292
Posted By iProgrammer
Re: Data caching for vector of bits vs bytes?

Thanks, but I am not sure what you mean :confused:

The 8000 bytes/1000 bytes are just an example. Images can go well over 30MB each in memory and I plan to do batch processing, so yeah.
Forum: C++ Mar 13th, 2010, 9:04 PM
Replies: 7
Views: 292
Posted By iProgrammer
Re: Data caching for vector of bits vs bytes?

Thanks for the response.

My concern is speed.
I kind of understand the part with the 2 operations, but I am not sure how data caching and memory processing work. I really don't how these things...
Forum: C++ Mar 13th, 2010, 7:01 PM
Replies: 7
Views: 292
Posted By iProgrammer
Data caching for vector of bits vs bytes?

Hi,

I am wondering what is more efficient:
1. Sequentially determining the truth or false of each bit in a 1000 bytes (8000 bits) large char* string
2. Sequentially determining the truth or false of...
Forum: Coder's Corner Lounge Feb 14th, 2010, 10:28 AM
Replies: 0
Views: 150
Posted By iProgrammer
Virtualize using partitions?

Hi,

I want to use virtualize to have Windows XP, Windows 7, Windows Vista, and Ubuntu all on at the same time. Vista is the host operating system.

Can I make 4 different partitions and install each...
Forum: C++ Jan 17th, 2010, 3:51 PM
Replies: 10
Views: 420
Posted By iProgrammer
Re: #define inside structure?

Okay, thank you for the help!
Forum: C++ Jan 17th, 2010, 3:20 PM
Replies: 10
Views: 420
Posted By iProgrammer
Re: #define inside structure?

First thanks for the information about enum, L7Sqr and Patrick.


Actually, I want speed optimization, so data can be written and read quickly from the structure. I was thinking that less bytes meant...
Forum: C++ Jan 17th, 2010, 2:50 PM
Replies: 10
Views: 420
Posted By iProgrammer
Re: #define inside structure?

Thanks Patrick.

I will look into enum.
Will enum only use 1 byte if I put less than 256 values? Memory consumption is a possible concern for me.
Forum: C++ Jan 17th, 2010, 2:17 PM
Replies: 10
Views: 420
Posted By iProgrammer
Question #define inside structure?

Hi,

I have been trying to do something like this:
struct person
{
#define paul 0
#define sam 1
#define patty 2

int name;
Forum: C++ Jan 11th, 2010, 4:40 PM
Replies: 1
Views: 156
Posted By iProgrammer
Re: How do I use GraphicsMagick with C++?

Nevermind, I am looking at CImg now.
Forum: C++ Jan 11th, 2010, 4:23 PM
Replies: 1
Views: 156
Posted By iProgrammer
How do I use GraphicsMagick with C++?

Hi,

I want to use GraphicsMagick within a C++ program. For example, I load a .tiff file into a .bmp image class. I found http://www.imagemagick.org/Magick++/

I don't have it installed, but I am...
Showing results 1 to 22 of 22

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:17 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC