Search Results - CodeGuru Forums
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: walkinginwater

Page 1 of 4 1

1. Thread: How to convert a 2D matrix into a 2D map intensity graph (color one)

by walkinginwater
Replies
5
Views
2,376

Re: How to convert a 2D matrix into a 2D map intensity graph (color one)

Thanks very much for the reply. Do I need to store x,y information. Because it's just a x,y are correspoding to the i and j of a[i][j] repsectively. And there is no negative values inside my matrix....
2. Thread: How to convert a 2D matrix into a 2D map intensity graph (color one)

by walkinginwater
Replies
5
Views
2,376

Re: How to convert a 2D matrix into a 2D map intensity graph (color one)

Nobody have ever ever done this? Or my question are just two stupid ?
3. Thread: How to convert a 2D matrix into a 2D map intensity graph (color one)

by walkinginwater
Replies
5
Views
2,376

How to convert a 2D matrix into a 2D map intensity graph (color one)

hi, guru:
I am now having a 2d matrix a[i][j], which has a size of 1024�256. the row number stands the x-axis infomration, the column number stands for the y-axis information and the value...
4. Thread: Input Excell worksheet(unknown columns and rows) to a 2d-dynamic array matrix?

by walkinginwater
Replies
4
Views
1,016

Re: Input Excell worksheet(unknown columns and rows) to a 2d-dynamic array matrix?

Thanks very much for laserlight, just one simple question, what kind of delimitor will the overloaded >> for the std::stringstream? Can we specify the delimitor or not?
5. Thread: Input Excell worksheet(unknown columns and rows) to a 2d-dynamic array matrix?

by walkinginwater
Replies
4
Views
1,016

Re: Input Excell worksheet(unknown columns and rows) to a 2d-dynamic array matrix?

Does any grurus can have a look over this post? Please, please!!
6. Thread: Input Excell worksheet(unknown columns and rows) to a 2d-dynamic array matrix?

by walkinginwater
Replies
4
Views
1,016

Input Excell worksheet(unknown columns and rows) to a 2d-dynamic array matrix?

Dear Gurus:
The problem is more exactly as how to know the end of a line from a txt file and determine how many data points are in a single line.
My experimental datas are recorded to the...
7. Thread: How to draw a polygon in the monitor?

by walkinginwater
Replies
6
Views
764

Re: How to draw a polygon in the monitor?

hi, bovinedragon:
As you already known, I am a newbie in OpenGL, I believe the website you mentioned is a nice one , but it contains too many information. Can you help me to point out more...
8. Thread: How to draw a polygon in the monitor?

by walkinginwater
Replies
6
Views
764

How to draw a polygon in the monitor?

dear respected gurus:
I want to draw spiral coil by c++ directly. First I use the following program to get the coordinates of the points on the spiral coil. Then I want to draw those...
9. Thread: How to Combine two WAV files with Cool Edit Pro 2?

by walkinginwater
Replies
1
Views
1,954

How to Combine two WAV files with Cool Edit Pro 2?

Now I have two songs with .WAV files, but one of them with Sample rate of 8000Hz, the other is with sample rate 22050. I want to combine these two, cn anybody tell me how to do this?
10. Thread: friend function-templates

by walkinginwater
Replies
4
Views
600

Re: friend function-templates

I think you should change the statement

template<class T> class Test;
template<class T> void aaa(Test<T>);

template <class T>
class Test {
11. Thread: How to make dynamic 2d array more safe

by walkinginwater
Replies
16
Views
1,629

Re: How to make dynamic 2d array more safe

Sorry Axter, I think your code will not do correct things, because now I am at home, and there is no compiler, but from your source code, I think you make no improvement on the idea of what I made...
12. Thread: How to make dynamic 2d array more safe

by walkinginwater
Replies
16
Views
1,629

Re: How to make dynamic 2d array more safe

In fact, I have an idea, in the head file of dynamic 2d array, we override the operator member function of std::vector<typename T> operator[](int i) , in the overrided version of member function we...
13. Thread: How to make dynamic 2d array more safe

by walkinginwater
Replies
16
Views
1,629

Re: How to make dynamic 2d array more safe

The following is the main code

int main(int argc, char* argv[])
{

int NumRow=21;
int NumColumn=21;
Dynamic_2d_Array<double> SamplePoints(NumRow,NumColumn);
...
14. Thread: How to make dynamic 2d array more safe

by walkinginwater
Replies
16
Views
1,629

How to make dynamic 2d array more safe

Hello, every respected gurus:
I have use a template dynamic 2d array header file like following , it is the same as pasted in the FAQ

#ifndef DYNAMIC_2D_ARRAY_H
#define...
15. Thread: Something about Monte Carlo Simulation of Radioactive decay of nuclei?

by walkinginwater
Replies
2
Views
1,926

Something about Monte Carlo Simulation of Radioactive decay of nuclei?

Hello,
I have met a problem, that I should use a Monte Carlo Simulation to simulate a radioactive decay of nuclei, n(t)=N*exp(-kt); , I know how to generate a distribution like...
16. Thread: Why strings cannot be initialized with single characters

by walkinginwater
Replies
1
Views
403

Why strings cannot be initialized with single characters

In c++, we just allow initilizing a string with a number of copies of a single character, for example:

string s1(5,'a');

and another question, if we declare s2 as following

string s2(5,"a") ...
17. Thread: how to open a header file in a specified location

by walkinginwater
Replies
8
Views
553

Re: how to open a header file in a specified location

I have make a try about <filename.h> but it don't work
18. Thread: how to open a header file in a specified location

by walkinginwater
Replies
8
Views
553

Re: how to open a header file in a specified location

If i add the following statement to my source code , it can work
#include "E\BaseDirectory\SubDirectory\FileName.h"

hoever if i do like the following ,

I do something like that , but it...
19. Thread: how to open a header file in a specified location

by walkinginwater
Replies
8
Views
553

how to open a header file in a specified location

Now I have a problem, Now one of my project want to use an header file , but this header file is not in the directory of the project, how can i made the #include statement

something like this ...
20. Thread: Can anybody recommendate a good "C++ coding standard"

by walkinginwater
Replies
9
Views
764

Re: Can anybody recommendate a good "C++ coding standard"

I know this book, but you know I am now in germany , i cannot order that from Amozon, this is rather a pity
21. Thread: Can anybody recommendate a good "C++ coding standard"

by walkinginwater
Replies
9
Views
764

Can anybody recommendate a good "C++ coding standard"

There are lots of c++ coding standard online for example
# www.codingstandard.com/
# cdfsga.fnal.gov/computing/coding_guidelines/CodingGuidelines.html
# www.nfra.nl/~seg/cppStdDoc.html
#...
22. Thread: At what time i should use cout.flush()

by walkinginwater
Replies
7
Views
1,697

Re: At what time i should use cout.flush()

Hello,exterminator, after wildfrog's explain, i understand the function of flush. But i am not sure about your explanation about the situation that needs flush, can you have a look over my...
23. Thread: At what time i should use cout.flush()

by walkinginwater
Replies
7
Views
1,697

At what time i should use cout.flush()

my respected gurus:
I am reading some source code, in them the statement cout.flush() appears several times. In the book, I find such explanation "cout.flush() will puts all the...
24. Thread: 2d dynamic array, but the element of this array is a resizable array

by walkinginwater
Replies
49
Views
2,782

Re: 2d dynamic array, but the element of this array is a resizable array

Go to See Numerical recipes in c chapter 8
25. Thread: I need help

by walkinginwater
Replies
12
Views
688

Re: I need help

for (int i=1;i<=NumColumn)
{
for(int j=0;j<=i+1;++j)
{
cout<<j;
}
for(int k=i-1;k>0;++k)
{
cout<<k;
}
Results 1 to 25 of 93
Page 1 of 4 1

Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.

Featured