26 Solved Topics

Remove Filter
Member Avatar for nitin1

Hi, I am facing an issue in string to const char pointer conversion. I am doing stuff in the fun() but here i am just giving my example. Here it the code: // Helper function string fun() { string abc = "Daniweb"; // print here #1 return abc; } // …

Member Avatar for AssertNull
0
3K
Member Avatar for nitin1

Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling this function from cpp code. I am accepting the result as jobject. 1. Added key as "key1" & value as …

Member Avatar for JamesCherrill
0
2K
Member Avatar for nitin1

Hi, I am stuck with a problem. I have two Date objects (util class objects). I want the difference between these two dates as the number of days between them? I am using Java 8. Can you please help me with this? Searched the web a lot. Some are saying …

Member Avatar for JamesCherrill
0
835
Member Avatar for nitin1

Hi, I was using booleans earlier in my class. --> isProductRestricted --> internal --> isProductGlobal I am using lombok too. So putting @Data at the top of class too. But, now I changed these boolean to Boolean variable. I got errors where ever `Object.isInternal()` was used. I am not getting …

Member Avatar for nitin1
0
367
Member Avatar for nitin1

/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; class Test{ public static void main(String args[]){ String Str = new String("WelcometoTutorialspoint.com-"); int i=0; System.out.println("Return Value :" ); for (String retval: Str.split("-", 2)){ System.out.println(retval); System.out.println(i); i++; } i=0; System.out.println(""); System.out.println("Return Value :" ); for (String …

Member Avatar for nitin1
0
169
Member Avatar for nitin1

I am using Eclipse and there is one strange error coming while building. In files, it is not showing any error but when I build it, it says **Description Resource Path Location Type Program "g++ -std=c++0x" not found in PATH test [Discovery Options] page in project properties C/C++ Problem ** …

Member Avatar for rayhaneh
0
114
Member Avatar for nitin1

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 …

Member Avatar for blackmiau
0
444
Member Avatar for nitin1

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 …

Member Avatar for theguitarist
0
254
Member Avatar for nitin1

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 …

Member Avatar for Lardmeister
0
263
Member Avatar for nitin1

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 …

Member Avatar for BigPaw
0
225
Member Avatar for nitin1

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 …

Member Avatar for deceptikon
0
1K
Member Avatar for nitin1

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 …

Member Avatar for nitin1
0
417
Member Avatar for nitin1

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 …

Member Avatar for nitin1
0
206
Member Avatar for nitin1

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 …

Member Avatar for Mike Askew
0
212
Member Avatar for nitin1

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.

Member Avatar for jwenting
-3
1K
Member Avatar for nitin1

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.

Member Avatar for stultuske
-1
220
Member Avatar for nitin1

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. ;)

Member Avatar for vegaseat
0
245
Member Avatar for nitin1

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. :)

Member Avatar for IIM
-2
136
Member Avatar for nitin1

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 …

Member Avatar for nitin1
-1
509
Member Avatar for nitin1

Wouldn't it be nice if we have a notification system ? I mean i will get notifications of only those threads on which i have replied at least once or the threads which are started by me ? It is going to help me alot if i have a beep …

Member Avatar for Dani
0
200
Member Avatar for nitin1

actually, i deleted my one account on daniweb some time back, but i wana look at the posts ,whatever i have asked, comments by experts here and everything. i know i can see the posts, but i have to go very far away from today so as to look each …

Member Avatar for happygeek
0
792
Member Avatar for nitin1

actually, I just want the idea here. I have a server, a client . client will request to display the files names in its directory(server's current directory). server will send the list. my thinking : system command will be used here. when clinet enter "-ls" then server will have system() …

Member Avatar for L7Sqr
0
162
Member Avatar for nitin1

#include<stdio.h> int main() { char a[60][60],b[60][60],i=0,n1,m1,n2,m2; int x,y; int j=0; char c; int p=-1,q=-1,f=-1,g=-1; scanf("%d%d",&n1,&m1); for(i=1;i<=n1;i++) scanf(" %s",a[i]); scanf("%d%d",&n2,&m2); for(i=1;i<=n2;i++) scanf(" %s",b[i]); for(i=1;i<=n1;i++) { for(j=1;j<=m1;j++) { if(a[i][j]=='1') { p=i; q=j; break; } } if(p>0 || q>0) break; } for(i=1;i<=n2;i++) { for(j=1;j<=m2;j++) { if(b[i][j]=='1') { f=i; g=j; break; } } if(g!=-1 …

Member Avatar for np complete
0
131
Member Avatar for nitin1

let's now discuss the ways that can give you sweet sweet and sugar plum like infraction points ? ;) lol

Member Avatar for nitin1
-2
212
Member Avatar for nitin1

I am using Daniweb from around 2 years(although was not a good user from that time). But i never come to know how daiwb earns money ? Is daniweb just a forumn or is it a company ? people working on this forumn who are adminsitrators, moderators , team colleague …

Member Avatar for nitin1
0
245
Member Avatar for nitin1

it is request to whole daniweb that please give me infraction points as much as you can. if you all don't want me to live here, then give 6 more then i will be lost. just for a small 1 thing, 2 points. so keep giving me points dude! thanks …

Member Avatar for nitin1
-7
191