No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
18 Posted Topics
Hi, I want some recommendation for libraries written in C/C++ that has iterative solvers like Jacobi, Gauss-Seidel or SOR, Does anybody have a recommendation? Thanks! | |
Hi, I have followed the tutorial in this link: http://www.cs.ucla.edu/~zhu/tutorial/Using_MS-MPI.pdf to use MPI on my local windows machine with vs. The simple Hello wold work as expected, I have 2 processors and I get the expected result. The problem is when I try a very simple send receive program I … | |
Hi, I have a problem understanding what is going on in this code: #include <iostream> #include <omp.h> using namespace std; class A { public: A() { cout<<"A created"<<endl; }; ~A() { cout << "A destroyed" << endl; } void printA( void ) { cout<<"ok"<<endl; } }; int main() { A … | |
Re: I didn't really read your code it's too long but I suppose from your question that you should creat a database for your clients where usernames and passwords are saved. It is a bit of work but I mean you have a simple case of just looking up a password … | |
Hi, I have faced a problem that I have a vector in my class which I would like to initialize using constructor initialization list with some thing like this std::vector<double>({1,4,5}) which is only allowed in c++11 which is not what I am looking for. I could only intialize it with … | |
Hi, I have a problem in evaluating a macro in this code: #include<iostream> #define _A_ some #define Func _A_Func using namespace std; int someFunc(int i) { return i; } int main() { cout<<Func(1); } I get an error: test.cpp: In function ‘int main()’: test.cpp:13:13: error: ‘_A_Func’ was not declared in … | |
Re: > while(i < MAX_GUESSES, PlayAgain) If you want to check on two or more conditions in c++ you use && or || while( (i < MAX_GUESSES) && PlayAgain) Edit: I am sorry but ur code is right, it was my first time to know that using of comma is allowed … | |
Hi, In the code below I have 2 nested loops, with the inner loop starts from the index of the outer loop till the end. You can think of it as I am trying to find ll the combinations. So if we have 'm' rows, we will have m(m+1)/2 possible … | |
Hi! when I try to run this code: struct Cand{ // 0 -> not a cand // 0.5 -> preCand // 1 -> cand float status; // Row position int PosX; // Col position int PosY; /* * and many other things * */ }; int rows = 1024; int … | |
Hello!, I know this my be slightly unrelated question but it's very simple questions and I know many of you will find it very easy. I want to pass several txt files to my c code using make file, but I can't make it right, so please help me in … | |
Hello, I have a problem in reading p5 PGM file: [CODE] ifstream::pos_type _Start, _End, _Size; ifstream::off_type _newStart; char * memblock; vector<vector<int> > initMatrix ; std::ifstream inf; inf.open("a.pmg", ios_base::in | ios_base::binary); if (inf) { std::string line; for (int i = 0; i<3 ;i++)//skip the first 3 lines that contain the info … | |
![]() | Re: I think you can do that: random=3200*(rand()%100); is this helpful or not? ![]() |
Hi!, I have a text file that contains a 2 dimensional matrix, and I will have to deal with many different files with different matrix dimensions, so I decided to use vector of vectors as they double their size automatically. the problem is that I don't know how to get … | |
hey! I have some questions regarding exceptions. concerning this code: [CODE]try 15 { 16 cout << " Function throwException throws an exception\n"; 17 throw exception(); // generate exception 18 } // end try 19 catch ( exception & ) // handle exception 20 { 21 cout << " Exception handled … | |
Re: ".I have to sort the names by linear seach and the rest by bubble sort and create an outfile with all the different orders" I can't understand it, what do you mean be "sort by linear search"!!, do you mean insertion sort or what? any way, have you thought about … | |
I was reading a book and i faced an issue here [CODE]39 template< typename NODETYPE > 40 void Tree< NODETYPE >::insertNode( const NODETYPE &value ) 41 { 42 insertNodeHelper( &rootPtr, value ); 43 } // end function insertNode 44 45 // utility function called by insertNode; receives a pointer 46 … | |
Hey All, this is my first post on the forum so I want to send my greetings to all of you :) . Actually I am studying biomedical engineering and I am moving to my last year in the school, and I have to search for a graduation project idea, … | |
hello all, i am salah el deen saleh , i am 20 years all and i live in cairo in egypt , i am studying biomedical engineering and i am addicted to software as well as hardware . |
The End.