189 Discussion / Question Topics
Remove Filter I am using C/C++. I am using geany for editing my codes. I want to use beecrypt in my programs. But ofcourse, it is not included by defualt. I have downloaded beecrypt library already but don't know how to use it with my programs. I have put my program in … | |
Main.cpp #include <iostream.h> #include "functions.h" int main(){ print_hello(); cout << endl; cout << "The factorial of 5 is " << factorial(5) << endl; return 0; } hello.cpp #include <iostream.h> #include "functions.h" void print_hello(){ cout << "Hello World!"; } factorial.cpp #include "functions.h" int factorial(int n){ if(n!=1){ return(n * factorial(n-1)); } else … | |
I have considered 3 laptops till now: first is: i5 4th gen/ 4GB RAM/ 500GB hard disk/ 1 GB graphic /Windows 8/ 45k INR Second: i5 4th gen/ 4GB RAM/ 1TB hard disk/ no dedicated graphic/Ubuntu/ 41k INR Third is: i5 4th gen/ 6GB RAM/ 1TB hard disk/ 2 GB … | |
I want to buy a laptop with the following requirements: 1. Daily use 2. 1 TB Hard-disk 3. 4-6 GB RAM 4. i5(4th gen) processor 5. 1GB graphic card 6. Windows 7 Basic 7. <= 50,000 INR Which company laptop should I buy? Lenovo, HP, SONY, DELL or what? and … | |
I am new to parsers. I want to extract/parse the HTML documents. I have heard of this HTML DOM using PHP. Can ypu tell me some links or some basic introduction to start with? How can I use it to extract info from HTML document? Thanks in advance. | |
Actually, I am working on a project. I want to extract all the reviews from a website which has reviews related to movies, for example. I want to make an automated system which can extract the content of the website and save it to a file. That will be my … | |
hi, Can anyone suggest me the approach for finding the lcm of the n numbers? my approach: find the max of the n numbers and start dividing it by all numbers , if all are dividing it then print it, else take next multiple of the max number and repaet … | |
I am a Computer Science student. I have to select my final year project as soon as possible. I am confused how I should select my project. Can you help me by telling me the strategies for the same? I am interested in C++, Java, Web development, Recommender Systems. Actually, … | |
I want to buy my first guitar and I don't want to spend much money in the very beginning as I don't know how to handle it and all those things. I want to buy an acoustic one. So, can you suggest me any good and cheap guitar on which … | |
hello everybody, actually I want to work on some open-source project. I want to learn something new and something interesting related to computer science. I can work for 4-5 months on project and even more than that. if not open-source, still if you have something in my mind, you can … | |
I have started two courses on : 1. Intro to Recommender systems 2. An Introduction to Interactive Programming in Python From [cousera.org](https://www.coursera.org/) these days. I am in week 1 of python and week 4 of recommender systems. So are these good courses which i am doing ? Or i can … | |
hey,today someone asked me one question in my class that what is the fastest way to multiply a number by 7 ? I said yes you can use bit-wise operators. the code which i gave him is : int n=10; // for example n = (n<<3)-n; then he aksed me … | |
How many of you are entrepreneur here? Can you explain your idea which you have thought and can you give some tips to others who are also seeking in this direction ? I know Dani is one of them. If she feels , she can also share her experience. This … | |
Is there any alternative for clrscr() and gotoxy in gcc ? I am using system("cls"); to clear screen but it doesn't identify cls as a valid command whereas in cmd cls is working perfectly on windows? can anyone please help ? i am using gcc as my compiler and using … | |
hello, I have started learning python these days. Although i am following a course on coursera.org for learning it , but that course is going very very slow. Also, I don't know if that course contains all things which is need to build codes in python. I have very good … | |
import sys i=0; def func1(i): print "i am in function func1" if i<5: i=i+1 func1(i) else: return return def main(): print "beginnning the function\n" func1(i) print "hello Daniweb" s='aman' print "hahha" main() it is giving me syntax error in print "hahha" statement. WHat is that ? According to me, it … | |
any one is there who has knowledge and interest in cross-domain recommender systems ? If yes, then reply so that I can discuss few points with you. thanks in advance. | |
When you wake up early in the morning and rushed for college or office and after reaching over there , you came to know that it is off due to some reasons. did it happen with you at any time ? If yes, then what had you done after that … | |
Actually, I am working on project and specifications are : * using windows 7 ultimate * using Java language to develop project * using IntelliJ IDE for project now, When i run my project it give me output in the section at the bottom in the IDE itself. But, i … | |
I am doing a course in recommender systems on coursera.org. I have got an assignment in that. They have told us to use IntelliJ IDE and Lenskit to use. I am very good at C, C++, but not that well in Java. So finding it difficiult to get up these … | |
my office is solved somehow. i don't know how i have done that. one more arises now. that when i click on say "micosoft powerpoint", then it opens calmly and without any problem. but along with that, (after few seconds), confiferation progress starts and then after few minutes , that … | |
If i use macros as functions , then at compilation time , that macros will me be written as function code. so is it better than inline functions and then why don't we use macro always to write the functions as it will speed up our execution. so writing macro … | |
Actually, I have a .csv file which has (userID,movieID,rating) seprated by commas. now, I have to read it and also make another .csv in the output. Can anyone tell me how to read a .csv file and take that data in integer (as userid , rating etc are integers). from … | |
I have a map like this : map<int,map<int,int> > m; in this, I can insert value like a 2-D array. like this, m[i][j]=3; so, now i want to iterate all the values in a particluar row of map. for ex. if m is like this : m["user-id"]["movie-id"], then i want … | |
what are your views for : 1.Google India 2.Google US can we have pros and cons as compared to other good companies providing software developer profile ? thanks :-) any help will be appreciated. | |
can anyone tell me the reliable and good source from where I can keep track of all the vacancies in the companies like Amazon, Microsoft, Yahoo etc ? thanks if you can help me. source that is reliable and on which i can be somewhat "dependent". thanks. | |
Like in India and many other countries, value of their currency is going down and down. What can be the possible reasons for this ? I am not a economics student, still want to know what exactly is there behind the screen ? thanks. ;) | |
int a=3; cout<<a++<<" "<<++a; what is the expected output of this problem ? It is undefined behaviour as it is updating value of "a" once more than once in a sequence point ? Correct me if i am wrong at any point. thanks if you can help me. | |
Can we discuss some points on this ? Is it a good job for the freshers ? Some people may have some points in his/her knowledge regarding this. than please share it here. thanks in advance. :) | |
how can i keep track of new users to my website. for ex: X is visiting my web-site regularly, so for per week count, i have to count him only once and if Y has visited as new user, then up the count by one. so how can i keep … ![]() | |
Actually, I have learnt C++ much till now . Atleast which i need for my work purposes. I have thought of a project-- desktop calculator. I want to have all these functionalities in it. 1. mathematical functions, 2. prime number checker(will apply primality checking algos), 3. all error handlers (zero … | |
when i visit C or any other section, i see those scrap pictures in the boxes of the persons who don't have their pics uploaded. it always give me feel that website is not loaded properly, so i again refresh it. i am old user of daniweb, so that's why … | |
can you please explain me what exactly it is ? i have read from my book, wiki link and 1 more link. i got some basic things, can you tell me how exactly this helps process and OS ? how this thing help us to implement cache ? i think … | |
today is "Rakshabandhan". I don't think many of you have heard of this. in this, sisters tie a band type something on their brother's wrist and in return brother gove gifts to them and they pray for long life of each other. we eat sweets and dance and we have … | |
actually, i am demotivated with the rejections. i have got 3 rejections yet in directi (second-last round), AMZON(last round) and facebook (first round). how to make myself confident ? can you all help me in this also. this is totally different from computer science, but i think you all have … | |
when i click my any microsoft office's product then it start geetting installing. it is installed from 4-5 years and was wroking fine. it happened 10 days before. now i cant open my word, excel or any other file. when i try to unsitall it , it says "this product … | |
can we discuss the things like : what should we do , how should we behave , what not to do , what to do , how to feel comfortable in interview ? can we discuss these things ? what not to ask interviewers ? | |
actually, this is an interview question of a company which deals with adds on mobile phones. can anyone give me hint on this ? what can be the answer of this ? it is therotical question though.thanks. | |
#include main() { int ret; ret=fork();ret=fork();ret=fork();ret=fork(); if(!ret) printf("sun"); else printf("solaris"); } how many times sun will be printed and how many times solaris will be printed ? and reason also. i know the fundamentals of fork() but still not able to catch the o/p here. thanks. | |
int ** foo(int row) { int *arr[100]; for(int i=0;i<10;i++) { arr[i]=malloc(sizeof(int)*10); } int **p=(int**)arr; return p; } what is the problem with this code snippet ? it is not a homework. it is my interview question. | |
Declare an array of function pointers that return a pointer to a func that in turn return a pointer to a char array. can you helpme in this . i have doubt in the last thing. if at the last it is "return a pointer to char", then i can … | |
actually, i am quite tensed these days. all companies are going to shower next month. i am preparing since last 2 months. C, C++, DS, ALgos, DBMS, OS, OOP, networking, projects etc which i have done and which am still doing. but lacking confidence. feeling as if i will not … | |
Code 1 : for(i=0; i<1000; i++) for(j=0; j<100; j++) x = y; Code 2 : for(i=0; i<100; i++) for(j=0; j<1000; j++) x = y; thanks. | |
class A { public: protected: int i; }; class B : public A { friend void f(A*, B*); void g(A*); }; void f(A* pa, B* pb) { // pa->i = 1; pb->i = 2; // int A::* point_i = &A::i; int A::* point_i2 = &B::i; } void B::g(A* pa) { … | |
actually, I was reading C++ from some time , but here i want to learn and imprve my OOPS concepts. IF you have some good links or some e-books or some good book name , please help me here. i have learnt from wiki, my one C book in which … | |
I was looking for the find and replace algorithm which editor softwares are using. for ex: notepad. when i search something and then when i replace it , how exactly it works. I am aware of rabin-karp and KMP algos. but i am wondering if they are most efficient ? … | |
my algo : 1.Construct a max(min) heap from first element of all array, 2. extract a max(min) value from the heap and write to output 3. get one more element from array which the value extracted step 2 was in. 4. repeat until heap is not empty can anyone tell … | |
int main() { printf("%u %s",&"hello",&"hello"); return 0; } can you please explain that how "hello" is working here ? i know it is string constant ? so it is acting as a pointer to a char like i do char *s= "daniweb"; so, if it is the case, then why … | |
An algorithm runs a given input size n.If n is 4096,the run time is 512 ms .If n is 16384 the run time is 2048 ms .what is the complexity of the algorithm in big-o notaion ? a)o(n^1/2) b)o(n) c)o(nlogn) d)o(n^2) o() is big-oh! is it logical ? I have … | |
can you please tell me how rand () is implemented ? i know it is library implementaion dependent. but still can you tell me the way in which it is mostly implemented ? i have searched on google, but didn't get anything which make me clear about my question. i … |
The End.