comp.lang.c++
  Home FAQ Contact Sign in
comp.lang.c++ only
 
Advanced search
December 2007
motuwethfrsasuw
     12 48
3456789 49
10111213141516 50
17181920212223 51
24252627282930 52
31       1
2007
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.c++ Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  What will it do?         


Author: Xohaib
Date: Dec 2, 2007 23:44

Let i have a 2d character array.

=====================
char array[5][25];
array[2]="\0";
for (int i=0; i<5; i++)
{
cout<<"Enter the value ";
cin>>array[i];
}
for (int j=0; j<5; j++)
{
cout< }

=======================
will it get input in array[2] ?

i have done this but it gave me error to debug....

please help;

and how can i sort more than one 2D arrays??
Show full article (0.55Kb)
2 Comments
  Very beautiful girls and many useful resources and more,please check it out         


Author: boom
Date: Dec 2, 2007 23:14

Very beautiful girls and many useful resources and more,please check
it out
http://groups.google.com/group/all-good-things/web/beautiful-girls-and-ladies
no comments
  Dealing with string encodings         


Author: Stephan Rose
Date: Dec 2, 2007 15:49

Question everyone,

I may be slightly off-topic with this but I'm not really sure where else
to go with this.

what's the "best/easiest" ways to deal with string encodings?

Right now, I'm using wstring for all my string operations outside the GUI
and this works really well. Also using it for file io.

Problem is this though: It's defined as wchar_t which inherently isn't a
problem, except that wchar_t is 32-bit under linux and 16-bit under
windows.

That difference right there is going to break my file IO code as I target
both platforms.

utf-8 is another option but I don't terribly like it much due to the fact
that each character can have a different width in bytes.

That is one of the things I like the most about 32-bit wchar_t. No matter
what, each character will always be *one* wchar_t. Makes indexing into a
string simple and painless.

But still, with one platform/compiler (not sure on which level the
difference is) having wchar_t 32-bit and the other 16-bit, this is slowly
turning into a nightmare.
Show full article (1.22Kb)
2 Comments
  Passing a parameter to a thread (boost)         


Author: JackC
Date: Dec 2, 2007 14:15

Hi,

I create my threads like this:

for(int j = 0; j < 5; j++)
{
boost::thread *thr = new boost::thread(worker_func);
threads.add_thread(thr);
}

How would i go about passing a parameter into the worker function? If
possible i would like to pass a structure in.

Thanks for any help,

Jack
2 Comments
  Array of Radio Buttons         


Author: crow
Date: Dec 2, 2007 12:56

Hi All,

I need to create an array of radio buttons and position them on the
screen from the code dynamically, in VC++.
Is this possible ? Also is it possible to group all of these
together ?

Basically I am displaying a number of images and I need the user to
select an image using the radio button. Of course there may be a way
to make the image itself click able. Is there ?

Any help would be greatly appreciated.

Thanks in Advance
Crow
1 Comment
  how libraries work on different platforms         


Author: hmaher15
Date: Dec 2, 2007 08:56

Hello I am starter in this amazing language and in programming in
general and I am wondering how the stream library for example works
fine on many platforms
(Windows,Linux etc.) does the compiler come with different versions
of this library on each platform or the implementation of the library
works on all platforms.
5 Comments
  c ++ basics         


Author: jim
Date: Dec 2, 2007 08:27

no comments
  reading data type         


Author: Adam Chapman
Date: Dec 2, 2007 08:22

Hi,

Im completely new to c++ and I am trying to interface some c++ source
code with matlab. Mt question is:

I there a way to find the data type of a variable other than searching
through the code to see where it was defined?

What I would like to do is use a printf statement to show the type of
a certain variable.

Thanks for any help offered.

Adam
2 Comments
  Suggest me a good laptop...         


Author: nikki
Date: Dec 2, 2007 06:50

I want to buy laptop but confused due to many varieties sin the market
which one is good...Lenvo, Compaq, LG, HCL and Toshiba..etc..
Please, can any one suggest me batter in quality and color.
Thanks!
4 Comments
  What can pointers do that other things can't do?         


Author: Michael Bell
Date: Dec 2, 2007 06:07

I am trying to put my learning effort into the most useful things.
What do pointers do that other things can't?

Michael Bell

--
13 Comments
1 2