Thank you very much john.c! It is very helpful.
Type: Posts; User: Micko
Thank you very much john.c! It is very helpful.
Thank you, I managed to figure out the most of it, but I'm not sure whether there are any nested loop here.
For example:
m = n+k;
for j=n:-1:1
D = 0;
for i=1:m
...
Hello C experts,
I have found Fortran code that I need for my research (it is about mathematical triangular matrix factorizations). I have never seen Fortran code in my life and would greatly...
Hello to all,
I've lost touch with C programming for almost 3 years, so I forgot some subtle details.
I was solving one problem by writing C program and was surprised to learn that this code:
...
Hmm, I'm still having problems:
I'm using Dev-Cpp in which I have created C project with the following files:
Header Test_Cpp.h:
#ifndef TEST_CPP_H
#define TEST_CPP_H
extern "C" int...
Hello people,
it's been a long since last time I worked with C and C++. Is it possible to link Cpp code in C?
What I mean is this:
In basics, it comes to this...
I have two files:
Test_cpp.h...
Thanks, I made it just like that. I introduced a special command using which user must enter server's IP and it works OK.
But I'm curious, how this is done in "real world". For example mIRC. When I...
Thank you people, very helpful...
Of course, it makes sense now.
Thanks laserlight
Hello,
please, I need to have a list of objects that are frequently inserted and removed.
That's why I decided to use STL list.
However, I have problems removing elements from the list.
For...
Hello people,
I'm making simple client server program. I have done this before.
I have two computers in home LAN and want to test it.
Computer A on which server program is located has 192.168.0.2...
I'm glad you made it yourself. It's the best way to learn.
You define functions to expect pointers and not integer numbers.
In line:
sum = count_sum(numbers[10]);
you're sending numbers[10] to function, which is 11-th element of array "number", which is...
Thanks for replying Mario.
I changed line
friend Int<T> operator +(const Int<T>&, const Int<T>&);
to
template <typename TT>
Hello people,
I didn't write any C++ code and became little rusty.
I cannot figure why the following code:
#include <iostream>
using namespace std;
template <typename T>
You could easily write your own copy function. Is there any reason not to write it?
I would do something like this:
#include <string>
#include <iostream>
#include <cstring>
using namespace...
Thank you, but I would also like to learn why restarts are happening only when try to watch movies and not when playing games.
Hello people,
I need your opinions about following problem.
I have bought new graphics card. In its documentation I found that it requires 400 W power supply. My power supply unit is about 350 W....
Yes, as vart suggested, you need to pack it in some kind of class.
Other solution woud be to use vector of vectors of type int.
Look at http://www.cppreference.com/cppvector/index.html.
If you're...
That explains things. Thank you!
How to explain this:
#include <iostream>
#include <vector>
using namespace std;
class Test
{
True, but in C# (.NET) is much easier and faster to make program with GUI than in C++ with all standard libraries...
In college, I wrote simple GUI application in C# using visual Studio .Net (2002). It was very convinient working with it and making GUI by just simply placing controls on wndows form. I wondered...
Well, if you used find member function of string then I suggest something like this:
void set_intersection(string stringSet, string otherset)
{
for(int i = 0; i < otherset.length(); i++)
...
Here's one more thing you can read