565 Posted Topics

Member Avatar for Frank_5

If you have any problems please post your questions. If you just want to contribute to DaniWeb with Sample codes, please post your code in a Code Snippet thread format.

Member Avatar for surajsokasane
0
10K
Member Avatar for ddanbe

Here's a small Linq example: public static IEnumerable<string[]> Read(string path) { return from line in File.ReadLines(path) select line.Split(new [] {','}); }

Member Avatar for deceptikon
0
3K
Member Avatar for MidiMagic

Search for this line when you edit your profile: Disable Ads? (Please consider a small [donation](http://www.daniweb.com/home/donate) if you disable ads). If you do check that box, make sure you check that donation link too.

Member Avatar for Areyankscruel
0
236
Member Avatar for jvasher

Here, take a look at this simple example, maybe it will help you understand how smart pointers can work: #include <iostream> #include <vector> #include <memory> using namespace std; #define SIZE 10 class Test { int* nr, curElem; public: Test() { cout<<"Object created\n"; nr = new int [SIZE]; curElem = 0; …

Member Avatar for Lucaci Andrew
0
247
Member Avatar for davenie.neymar

Our member rules (on which you agreed upon registration) state this: *Do provide evidence of having done some work yourself if posting questions from school or work assignments.* We won't do your homework. Provide us with an actual problem over your code, and we might be able to help you. …

Member Avatar for Lucaci Andrew
0
203
Member Avatar for GeekPlease

As of a quick search on Daniweb I got this: [Click Here](http://www.daniweb.com/software-development/cpp/threads/67312/connecting-c-to-ms-access) which contains other links to this: [Linking MS Acess to C++](http://reydacoco.blogspot.ro/2011/10/linking-to-ms-access-data-source-using.html) [Developing Access Solutions to native C/C++ from MSDN](http://msdn.microsoft.com/en-us/library/cc811599.aspx)

Member Avatar for Ancient Dragon
0
481
Member Avatar for new_developer

**NOTE:** this should be in the C++ forum thread. You need after each input operation to increase the size of the array. Your constructor definition is good, initializing the data, but you must have another function, let's call it `extendArray()` which increases your array size. For example: void extendArray(){ string …

Member Avatar for new_developer
0
318
Member Avatar for pritaeas

Just logged in. This new layout... totally blew my eyes off. Will take some time to adjust, but I see you put a lot of effort in it. I hope others appreciate it. :)

Member Avatar for diafol
0
1K
Member Avatar for son jo

Daniweb rules state this: **Do** provide evidence of having done some work yourself if posting questions from school or work assignments. Show us what you have so far.

Member Avatar for Lucaci Andrew
-4
114
Member Avatar for irtza

Static arrays are allocated on the stack and they have fixed sized, e.g. their size cannot be changed, either shortened or expanded. Dynamic arrays are allocated on the heap. You set their size and than even change it, making them "dynamic". In order to use these kinds of arrays you'll …

Member Avatar for vijayan121
0
4K
Member Avatar for jayreis

I love how Dani was giggling almost all the interview. Immediately thought of this, I don't know why: ![5eb813f0ed7f403817d1bca3123c0072](/attachments/small/3/5eb813f0ed7f403817d1bca3123c0072.jpg "align-left")

Member Avatar for Dani
6
407
Member Avatar for Dani

Well it depends. Where I work, Daniweb is kinda slow, but when I go home (which is near the city, ~15 km away), Daniweb is ultra fast... So depends on the ISP I guess.

Member Avatar for james.lu.75491856
0
499
Member Avatar for Meir David

This is a video-driver-related problem. Check for updates on your video driver, see if anything changes. Google the error message: it will yield a lot of good links, such as this one: [Click Here](http://www.tomshardware.co.uk/forum/32085-63-display-driver-stopped-responding-successfully-recovered)

Member Avatar for Ketsuekiame
0
103
Member Avatar for Rahul47

First of all, it's int main() not void main() 2nd, line 22 sum=sum+(rem*rem*rem); should be sum=sum+pow(rem, numberOfDigits); How to get that `numberOfDigits`? Easy, apply `log10` over it: #include <math.h> #include <stdio.h> int main(){ //don't forget this!!! //code goes here //get your range for int len = (int)log10(num)+1; //get the number …

Member Avatar for Rahul47
-1
198
Member Avatar for cudawella

Search the website first, then post your question: [Click Here](http://www.daniweb.com/software-development/cpp/threads/455587/loops#post1979476)

Member Avatar for Echo89
0
124
Member Avatar for Violet_82

1. If you think that the problem at hand is not that hard, you can only sketch it and start writing code (for larger projects a deeper analysis is required). 2. Since you have to compute the carbon footprint of each of those objects, and you have the formulas, I'm …

Member Avatar for Violet_82
0
6K
Member Avatar for subash sonar

> I m new in programming languge and using turbo c . Get a moder C++ compiler first. >If u kindly give me the above said code, i will be remain thankful to you. Our member rules state this: **Do provide evidence of having done some work yourself if posting …

Member Avatar for Lucaci Andrew
0
179
Member Avatar for Petranilla

Need more info and the code that you think has to do that... See if you assigned to your menu item the jpopmenu object.

Member Avatar for Petranilla
0
162
Member Avatar for Mak!zZz
Member Avatar for RLS0812

1st, it's `int main()` and not `void main()` 2nd, You were actually doing a pointer aritmetic by this line: xx+= x + ", "; In your case, `", "` is a pointer to a sequence of characters. When you add an integer to that sequence, you are using pointer arithmetic. …

Member Avatar for Lucaci Andrew
0
163
Member Avatar for Abhinisha

Still, you could've formatted the code a bit. **nullptr**'s example points out very well the use of a default constructor. For multiple elements to be initialized, you could go the plain old fashion way of: class Foo{ int a, b, c, d; float e, f, g, h; public: Foo() { …

Member Avatar for Lucaci Andrew
0
123
Member Avatar for Petranilla

Here's a small example. You can use the `getButton()` function from `MouseEvent`. final JLabel lblRightClickMe = new JLabel("Right click me"); //create a label lblRightClickMe.setBounds(152, 119, 94, 14); final JPopupMenu jpm = new JPopupMenu("Hello"); //create a JPopupMenu jpm.add("Right");jpm.add("Clicked");jpm.add("On"); //add some elements jpm.add("This");jpm.add("Label"); lblRightClickMe.setComponentPopupMenu(jpm); //set jpm as this label's popup menu lblRightClickMe.addMouseListener(new …

Member Avatar for Petranilla
0
10K
Member Avatar for mahesh113

For a better understanding of this output, I suggest this code to run in the `main()` function: int main() { Base obj; cout<<" 1st - initialization.\n"; int b = obj+6; cout<<" 2nd - get the int via the int() conversion operator\n"; obj = b; cout<<" 3rd - create a new …

Member Avatar for Lucaci Andrew
0
153
Member Avatar for ef_mag

Try using a csv file [Click Here](http://viralpatel.net/blogs/java-read-write-csv-file/).

Member Avatar for jalpesh_007
0
154
Member Avatar for islam.fci.3

It's kinda hard for us to figure out your problems since you didn't share them with us.

Member Avatar for tinstaafl
0
271
Member Avatar for shahinalam07

Wrong thread. Post it here [Click Here](http://www.daniweb.com/software-development/python/114).

Member Avatar for stbuchok
0
102
Member Avatar for liliafan

**Abhinisha** if you have a specific question please start your own thread. Our member rules state this: *Do not hijack old forum threads by posting a new question as a reply to an old one*. This thread is 9 years old. I doubt they're still looking for answers.

Member Avatar for Lucaci Andrew
0
214
Member Avatar for rash_13

Maybe this link will share some light over this situation: [Click Here](http://tartarus.org/martin/PorterStemmer/)(never heard of it too).

Member Avatar for Lucaci Andrew
0
125
Member Avatar for abra_ka_dabra

Usually Java has some tutorials on this over their website: [Click Here](http://docs.oracle.com/javase/tutorial/essential/io/buffers.html) Full tutorial: [Click Here](http://docs.oracle.com/javase/tutorial/essential/io/index.html)

Member Avatar for abra_ka_dabra
0
179
Member Avatar for new_developer

Your problem lies in line 17: name = ""; Your `name` attribute is initialized to a read only memory having `name` to point to that memory location, but any writing is illigal, thus your error. If you would initialize `name` as this: name = new char[200]; you would allocate memory …

Member Avatar for rubberman
0
418

The End.