15,300 Posted Topics

Member Avatar for seacraft

Scroll up to the top of the page and click on the link [b]Private Messages[/b], there you will see a list of the messages you have received. Just click the links.

Member Avatar for Ancient Dragon
0
33
Member Avatar for debuggit

I can't get the code you posted to compile. First is line 17. What's that supposed to be ?

Member Avatar for debuggit
-1
101
Member Avatar for Tinemelk

>>give me a clue what to do next.. like replacing [URL="http://www.gidnetwork.com/b-66.html"]void main() with int main()[/URL] ?

Member Avatar for Ancient Dragon
0
134
Member Avatar for slayman89

Your program as posted compiles without error for me. using VC++ 2008 Express. Looks like a logic error though -- you need more brackets around that last while loop (lines 14-18).

Member Avatar for Ancient Dragon
0
83
Member Avatar for shakti_c
Member Avatar for jbennet
0
27
Member Avatar for pete21

Hello Pete, welcome to DaniWeb. >>my son who knows more than me Kids always think they know more than their parents :)

Member Avatar for jbennet
0
62
Member Avatar for tlkolrod

Welcome to DaniWeb. Dam -- I didn't see catweazle. Any chance of getting it on DVD?

Member Avatar for jbennet
0
60
Member Avatar for Jboy05

There's only one way I know of [icode]D = MyFunction(B, I);[/icode] I suppose you could do something like this too, but it seems sort of silly. [code] D = Myfunc(false, I); D = MyFunc(true,I); [/code]

Member Avatar for Jboy05
0
100
Member Avatar for ghost_squad7

Welcome to DaniWeb. Please don't hijack someone's thread to ask your question. Giving you a freebe this time because this is your first post :) You probably need to create another thread for that timer to run in so that it will execute independently of the scanf() function. Exactly how …

Member Avatar for WaltP
0
469
Member Avatar for manzoor

Start by figuring out how to get the 3, 5, 6 and 9. If you know how to do that them its easy to find all those numbers below 1000. If you can't do it in your head then write it out with pencil & paper. Think about the process …

Member Avatar for manzoor
0
113
Member Avatar for Jennifer84
Member Avatar for Jennifer84
0
185
Member Avatar for maydhyam

Welcome to DaniWeb -- glad to see that you found us :) >>but it can be challanging at times... It always is challenging. Getting that degree only gave you the tools you need to start, now the real learning will begin, and its a life-long effort. :)

Member Avatar for maydhyam
0
119
Member Avatar for ! !

[QUOTE=niek_e;538443]I think it's too late for smokers to avoid smoking :)[/QUOTE] Naw -- if I can do it after 42 years of heavy smoking then anyone can do it too. It just takes a lot of willpower and support from family/friends. [edit]Ohhh. After rereading I think I understand you comment. …

Member Avatar for jbennet
0
438
Member Avatar for jesseb07

[QUOTE=jesseb07;543846]hi, this should be a fairly simple question to answer. I have a function in my program that takes the content of a text file and populates an array with all the information. First it has to see how many lines the file has (as it can change) so it …

Member Avatar for jesseb07
0
6K
Member Avatar for gabs

[URL="http://www.winprog.org/tutorial/"]Here[/URL] is a very good introduction to win32 api programming. Its only a brief introduction to get you started.

Member Avatar for reddy_rajesh100
0
77
Member Avatar for angellove40

Q1 and Q1 are not that difficult -- try to write them yourself. Have no clue what Q3 is supposed to be. The trailing periods have no meaning. Q1: create an array of 5 ints, initialize them to 0. Then use ifstream object to read the file one int at …

Member Avatar for vmanes
-1
125
Member Avatar for tones1986

>>employee_list[numEmployees].setName(firstName, lastName); Hummm -- is numEployees the max number of rows in the employee_list array? If yes then that is array overrun problem. My guess is it should be this: [icode]employee_list[numEmployees-1].setName(firstName, lastName);[/icode] to access the 0 based element of the array. To call the Name class, assuming Name is the …

Member Avatar for tones1986
0
159
Member Avatar for kylcrow

line 68 shopping.cc: using an uninitialized variable. Would you post the test code you have written to test that class? e.g. the *.cc file that contains main()

Member Avatar for Ancient Dragon
0
317
Member Avatar for wonder_laptop

>>how do we divide by shifting to the right use the >> shift operator [icode]x >>= 2;[/icode] will shift the value of x right 2 and store the result back in x

Member Avatar for wonder_laptop
0
90
Member Avatar for Jboy05

Vijay: The second suggestion won't work because the function return values are not consistent with parameter expectations.

Member Avatar for vijayan121
0
118
Member Avatar for xceed

>>Please answer only if you are sure Normall I don't answer polls, but in your case I'll make an exception. I don't have the slightest idea what the answer is.

Member Avatar for tiger86
-1
137
Member Avatar for Nemoticchigga

Its not necessary because the array can be treated either way in most cases. Post an example of what you are not sure about.

Member Avatar for Nemoticchigga
0
121
Member Avatar for Barbarrosa

First, the array you declared has only ONE element in each of the two dimensions. If you want them to have two elements then declare it like this: [icode]int array[2][2];[/icode] >> Ive tried changing it to array[1,0] That doesn't work in C or C++.

Member Avatar for Ancient Dragon
0
111
Member Avatar for forumdude123

I've tried Norton, McAffee and Avast 4.7. I hate McAfee because the buttons are not visible with the somewhat low display resolution that I use, so I tossed it into the bit bucket. I sent them an email about it but never got a response. Norton worked ok, but required …

Member Avatar for ian_422
0
150
Member Avatar for behnaz

Also, please don't capatilize every word in the sentences -- it looks silly and makes it a little more difficult to read.

Member Avatar for Duoas
0
160
Member Avatar for CoolGamer48

yes. That function can also be called by any *.cpp function that includes file.h. You find this all the time, such as standard header files supplied by your compiler. [code] // file.h int foo(); // function prototype [/code] [code] // file.spp int main() { foo(); return 0; } int foo() …

Member Avatar for Ancient Dragon
0
179
Member Avatar for cosmos22

1. if you're using ifstream (meaning input stream) why did you name it [b]outfile[/b] instead of [b]infile[/b]? 2. what do you mean by "it doesn't work" ? The only reason I know of why your code will not open the file is if there is no such file as "1.1.jpg" …

Member Avatar for Ancient Dragon
0
213
Member Avatar for behnaz
Re: file

Those are C, not C++ header files. You don't use any of them in c++ programs. Some very old Borland compilers such as Turbo C will use graphics.h, but it is not supported by any other compiler.

Member Avatar for Ancient Dragon
0
106
Member Avatar for cosmos22

Get a list of the files by calling one of the os-specific api functions. MS-Wndows its FindFirstFile() and FindNextFile(). *nix its opendir() and readdir().

Member Avatar for Ancient Dragon
0
64
Member Avatar for look@me

looks like you are attempting to find the minimum value after the array has been cleared.

Member Avatar for Ancient Dragon
0
94
Member Avatar for tonyaim83

There is no "bold part". Please refer to the line numbers of the code you posted. The way I create and use DLLs is to use a macro to determine whether to use __dllimport or __dllexport [code] #ifdef MYDLL #define MYAPI __declspec(__dllexport) #else #define MYAPI __declspec(__dllexport) #endif MYAPI void HelloWorld(); …

Member Avatar for Ancient Dragon
0
128
Member Avatar for invincible_king
Member Avatar for sgw

>>even when a program is very simple and absolutely correct >>t shows "Fatal error... can't find path...." Two completly contridctory statements. >>what's the reason? Your program has one or more bugs. Post code because I have a hard time seeing your monitor from my home :) Also what Operating system …

Member Avatar for mitrmkar
0
112
Member Avatar for Iqbal_h_a

does your program ever call munmap() to release the memory back to the os? If not then maybe your program is just simply running out of memory. Also about ftruncate() -- maybe you already know this. [quote]If it <the file length> was previously shorter than length, it is unspecified whether …

Member Avatar for Nick Evan
0
119
Member Avatar for nurulshidanoni

>>I want to do like this, but how to open the file to read the examid? Not sure what you want? This maybe: [icode]ifstream in("filename");[/icode]

Member Avatar for nurulshidanoni
0
374
Member Avatar for sam1
Member Avatar for micah1983

Why did you start a new thread? You should have just added to your existing thread so that people would know what in the world you are talking about.

Member Avatar for carnage
0
118
Member Avatar for rmrookie

>>If anyone knows where and how to place adds let me know Check out all the [b]Sight Management[/b] forums. Otherwise, advertising is strictly forbidden on DaniWeb. You can, if you want, put your link(s) in a signature available in the Control Panel, link at the top of the page. Ads …

Member Avatar for zandiago
0
121
Member Avatar for mayank24

So what got you "stuck" ? >>Can anybody tell me what condition I have to use here? Sorry but I'm having trouble seeing the code on your computer. Please post on DaniWeb.

Member Avatar for mayank24
0
67
Member Avatar for thecraig

>>hopefully this is an easy question Ok, I'm not a mind reader so please state the question. delete stdlib.h and conio.h because they are not needed in c++.

Member Avatar for thecraig
0
102
Member Avatar for Lardmeister
Member Avatar for vegaseat
0
117
Member Avatar for Marwa El_shawi

see [URL="http://www.exegesis.uklinux.net/gandalf/winsock/"]Windows socket tutorial[/URL]

Member Avatar for Ancient Dragon
0
30
Member Avatar for Ajuddy
Member Avatar for venomlash
0
95
Member Avatar for Jennifer84

you are looking for a [URL="http://msdn2.microsoft.com/en-us/library/11405hcf(VS.71).aspx"]masked edit control[/URL]

Member Avatar for Jennifer84
0
91
Member Avatar for zandiago

[b]Ancient Dragon[/b] comes from the Dungeons & Dragons role playing game that I started playing some 10-15 years (or more) ago. I still like to play [b]Diablo LOD[/b] computer game.

Member Avatar for jbennet
0
364
Member Avatar for chopficaro

line 8: void main() main NEVER EVER returns void. It always returns an integer. line 15: unrecognized escape character "\(" as well as "\)" and "\:". You can't escape those characters, just delete the "\" character. Those same errors appear several more times in your code. Correct them and the …

Member Avatar for chopficaro
0
510
Member Avatar for hawashafiq
Member Avatar for Serunson
0
31
Member Avatar for farrhad

Welcome to DaniWeb. Sorry but I had to remove the URL you posted because its against DaniWeb Rules to post them except in a very select vew places here.

Member Avatar for Serunson
0
26
Member Avatar for MrOlsen

OMG almost 30 years old with a wife and kid, and still living with mom & dad :'( You need to grow up, get a job, and start taking care of your own family because mom & dad aren't going to be here forever for you. If you were my …

Member Avatar for Serunson
0
146
Member Avatar for jeffige

Google should be the first place to ask questions because it can often get you the answers very quickly. And we've had that same question asked here on DaniWeb a billion times -- once just this morning that I know of.

Member Avatar for Ancient Dragon
0
134

The End.