Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
54% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
5
Posts with Downvotes
4
Downvoting Members
4
3 Commented Posts

42 Posted Topics

Member Avatar for prajwaludupa

system() command used here should generate desired output for dir, And i agree with Duoas as per output on console is concerned. Though to validate system call functionality, one can try to redirect the output to a file. [CODE] void main() { system("dir >>test_dir.lst"); getch(); } [/CODE] check 'test_dir.lst' for …

Member Avatar for sri.voma
0
680
Member Avatar for Jiggle

It largely depends on, What type of copyright it carries ? Can you share the copyright message.

Member Avatar for Gabriel_2
0
334
Member Avatar for tusharbhatia

Do you want place name from longitude and latitude ? Check this out for reference :- [URL="http://tajendrasengar.blogspot.com/2011/09/distance-between-two-locations-with.html"]Geocoder [/URL] Also check demo of it [URL="http://tajendrasengar.blogspot.com/2011/09/distance-google-map-api-demo.html"]here[/URL]

Member Avatar for Ravi_10
0
5K
Member Avatar for silvercats

Recently i got following site approve for adsense :- [snipped] Some point which are worth mentioning are :- 1) Do plan for an SEO session 2) Site with a defined purpose have more chances for approval. 3) Site with quality content always increases visitors loyalty rate. 4) Keep updating site …

Member Avatar for ProSence
0
358
Member Avatar for newbieha

for which code statement you have overloaded operator= ? can you also share the song class.

Member Avatar for raptr_dflo
0
184
Member Avatar for infantheartlyje

dumping of object directly into a file, will save member variables into stream. So the roll number, marks and name will be dumped. The memory layout of the object will get reflected in file also. So you can check memory view of object, in the same way it will be …

Member Avatar for WaltP
0
224
Member Avatar for gsingh2011
Member Avatar for tajendra
0
85
Member Avatar for hetaltbs

Submitting site multiple time to search engine will not actually increase your page rank, if you are talking about google. So try to drop as many backlinks you can, it will drive site growth into a very positive mode. Try to use webmaster tools to check the broken links and …

Member Avatar for aneechopper
0
306
Member Avatar for lolwaht

Try writing default case for switch case to get the information of unsupported case.

Member Avatar for tajendra
0
80
Member Avatar for tajendra

I am trying following code for changing css attributes with the help of javascript, But its not showing desired output. Here is the code (trying on Chrome Browser) :- [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> div { width:100px; height:100px; background:red; position:relative; animation:myfirst 5s; …

0
107
Member Avatar for D.M.

Context really matters here, best C++ compiler related to which view. like compiler which builds fast, compiler which helps code to execute fast and etc.. So the viewpoint really does matter.

Member Avatar for pseudorandom21
0
326
Member Avatar for tajendra

Working with dll i got into a situation where loading a dll can cause security threat. lets say for example when you load a DLL, it gets same access privilege as the calling process. So if calling process is running with Admin privilege the loaded dll gets the elevated privilege …

Member Avatar for vijayan121
0
153
Member Avatar for kutuup

I agree with Mike's view, below code is exception prone:- [QUOTE]this->hotspots[8] = NULL;[/QUOTE] Array limits works from 0 to n-1, where n is the size of array. keep this thing in mind. And you must also free all memory which got alloctaed dynamically.

Member Avatar for kutuup
0
269
Member Avatar for elmar01

One thought for it. Make an array of strings like strArrayStringNumber[10]; Which will have value {"zero","one", "two", "three", ..upto..."ten"} Then taking one digit at a time, pass it into array like if number is 213 take 2 first and call strArrayStringNumber[2], it will give corresponding string. So on for rest …

Member Avatar for WhiZTiM
0
157
Member Avatar for cheeseboy

Initialize all variables which you have used, before actually using them in code. It will help you in getting rid of the warning.

Member Avatar for mike_2000_17
0
544
Member Avatar for Zssffssz

can you clarify on the problem statement, it will be more useful in giving a thought over it. What kind of library and errors ?

Member Avatar for Zssffssz
0
92
Member Avatar for sasake

Some good SEO resource, follow it to read more on attracting traffic to your website. follow this link

Member Avatar for iamseo
0
265
Member Avatar for addision

Try placing below code , just after getline (myfile,line); [CODE]if(line.empty() == true) { cout<<"no data in file to read"; break; }[/CODE] it will help in you getting the garbage data in the end.

Member Avatar for Greywolf333
0
263
Member Avatar for HelpStudents

[CODE]cout << *p << endl;[/CODE] It will help you in getting the value of iterator , and in your case its an object of widget. So try calling widget methods on this; eg. (*p).getName()

Member Avatar for tajendra
0
113
Member Avatar for guccimane

small correction to sundip code [QUOTE]currentLocation = chars_read; [/QUOTE] It should be currentLocation = chars_read - 1; //since in while loop it is post incremented

Member Avatar for vijayan121
0
277
Member Avatar for TheNNS

Traverse the array and write that in a text file with extension .csv Write your 2d array entries in comma separated form ending with newline character. for example [CODE]cout<<TestArray[0][0]<<","<<TestArray[0][1]<<newline; cout<<TestArray[0][0]<<","<<TestArray[0][1]<<newline; [/CODE] I have provided just the format for you, for above task you can iterate complete array and write into …

Member Avatar for TheNNS
0
3K
Member Avatar for starkk

To get brief overview about them one can start with this link[snipped] One more good book adding to Narue is by Marl Allen Weiss 'data structure and algorithm analysis in C'

Member Avatar for tajendra
0
149
Member Avatar for owenransen

I agree with caligulaminus, that with ASCII it will not give problem. Since ASCII need 1 byte for its representation. But if you talk about UNICODE content, then its not advisable to do so. Because UNICODE may use multiple bytes for character representation.

Member Avatar for owenransen
0
3K
Member Avatar for valestrom

Can take help of fscanf function too, which will help in retrieving data as per the format. definition for it int fscanf ( FILE * stream, const char * format, ... ); [B]Read formatted data from stream[/B] Reads data from the stream and stores them according to the parameter format …

Member Avatar for mike_2000_17
0
241
Member Avatar for HelpStudents

[QUOTE]So right now I have the user enter in the information but what I suppose to do is to use the following list objects push_front pop_front front[/QUOTE] Above are the methods on STL, So when you ask about their usage. You first need to understand generic STL's like List , …

Member Avatar for tajendra
0
387
Member Avatar for murnesty

Yes it returns size_t, and i agree with Caligulaminus. If want to learn more about sizeof operator, check below link [URL="http://tajendrasengar.blogspot.com/2011/09/sizeof-operator-learning-with.html"]sizeof()[/URL]

Member Avatar for tajendra
0
137
Member Avatar for volkang
Member Avatar for volkang
0
409
Member Avatar for PythonNewbie2
Member Avatar for tajendra
0
150
Member Avatar for ravanan

[QUOTE=ravanan;1525769]can anyone explain me how to use the inline function in c++ code with example?[/QUOTE] Sharing one article for the same [URL="http://tajendrasengar.blogspot.com/2010/03/what-is-inline-function-in-cc.html"]inline article[/URL] Above article will help in getting much deeper understanding about it.

Member Avatar for tajendra
0
382
Member Avatar for Hajira Khanum

Move the declaration of int num,j,k=0,diag=0; out of the loop 'for(int cal=1;cal<=25;cal++)//print input' Because they are again and again getting reinitialized. I think this will solve your problem.

Member Avatar for tajendra
0
243
Member Avatar for narendra_kuma

Yes structure can be passed by reference. As firstPerson said you must take input in structure or you can initialize your structure with values a and b. [CODE] v1.a = a; v1.b = b; [/CODE] Write above code after declaration of var v1 and before calling function adD(v1);

Member Avatar for tajendra
0
103
Member Avatar for ThrasherK

I just modified your while loop to perform two purpose : 1) To take input from user. 2) At the same time calculating frequency of occurrence; [CODE]//Mark each number to its correspoding element. int placeholder = 0; while (number != 0) { //myList[placeholder] = number; //placeholder++; myList[number]++; cin >> number; …

Member Avatar for ThrasherK
0
211
Member Avatar for neil_mahaseth

I have removed your cost of calculating coins head up count totally, just have a look at it. Introduced one new variable nFalseCoinCount , to your code. It will account all your coins heads up count.:icon_biggrin: [CODE] #include<iostream> int main() { unsigned int N,Q,temp,op,A,B,count; scanf ("%u%u",&N,&Q); bool *coin=new bool [N]; …

Member Avatar for neil_mahaseth
0
143
Member Avatar for CreativeCoding

In C++ for reading some static data you can use .ini format file. Which is a format of configuration file. For saving data one can use custom format. And for limited data one can again use .ini format.

Member Avatar for WaltP
0
135
Member Avatar for tajendra

If i have process P1 which contain two thread T1 and T2, then is it good to bind whole process to core C1 or To bind thread T1 to core C1 and T2 thread to C2 core. Which will give more performance ? If we assume C1 thread can consume …

Member Avatar for Banfa
0
172
Member Avatar for tajendra

I am just looking for information about dump file created by windows on crash. Want to understand its working. Please share your knowledge about this topic, you can post to it or can give me reference links.

Member Avatar for ashishchoure
0
91
Member Avatar for tajendra

Code portability basically refers to making source code able to compile on different platform without making any changes in source code. While coding its very important to keep portability in mind.The best way to introduce code portability is while coding.Keeping certain things into account we can achieve code portability with …

Member Avatar for tajendra
0
468
Member Avatar for spetsnaz26

you are facing problem of memory corruption, problems can be:- 1) it may be array bound raed. (reading beyond buffer limit) 2) it may be array bound write. (writing beyond buffer limit) 3) it may be accessing free location. One method to debug such code is by doing code review …

Member Avatar for spetsnaz26
0
119
Member Avatar for ganesanronaldo

you said cant read the data from file, so the actual problem lies in reading a file or displaying output. Can you just explain your problem.

Member Avatar for ganesanronaldo
0
138
Member Avatar for tajendra

In c++ pre and post operator are used with variables where one need to just increment or decrement value by 1.For incrementing value ++ operator can be used and for decrementing -- operator can be used. Its use is very simple one can easily say ++i or i++, to increment …

0
233
Member Avatar for Stefano Mtangoo

I think you can use system() call in windows for that, with system() call one can easily supply dos based command. And as you want to switch off services related to internet. You can use "net start" and "net stop" command for enabling and disabling any system services. So there …

Member Avatar for Stefano Mtangoo
0
94
Member Avatar for tajendra

I read some time back that memory operation on stack is much faster than heap. With this information the first thing came into my mind was that if we get a way to allocate memory dynamically on stack it would surely help us to optimize memory operation cost. I started …

Member Avatar for tajendra
0
3K

The End.