15,300 Posted Topics

Member Avatar for Dani

[b]Post Since Last Visit[/b] I don't think works correctly. I was here this morning, left for about 30 minutes, came back and that link shows posts made 2 hours ago.

Member Avatar for Ancient Dragon
0
210
Member Avatar for Mrclean8586
Member Avatar for degamer106

If you don't post your code there is nothing anyone can do for you, except maybe give you a little sympathy.

Member Avatar for Ancient Dragon
0
180
Member Avatar for ziman
Member Avatar for meshia

Hello Meshia -- welcome to DaniWeb. Hope to see you around soon.

Member Avatar for cecil.vera
0
24
Member Avatar for mattyd

are you seeing double? :cheesy: I don't see anything unusual in those threads.

Member Avatar for mattyd
0
128
Member Avatar for GreenDay2001

gotoxy() was NEVER EVER a standard c or c++ function, but it was a Borland-specific function that started with Turbo C. No other compiler that I know of implemented that function. See [URL="http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=258&MsgID=353965&Setting=A9999F0001"]this[/URL] to implement the function yourself

Member Avatar for GreenDay2001
0
486
Member Avatar for cusado

[QUOTE=cusado;314814]well i used fout = fopen("%s.txt", "w"); but how do i represet "%s.txt" as the user's input? [/QUOTE] you already posted the answer to that question in your post #5. Just use variable filename [code=c] sprintf(filename,"%s.txt",line); // <<< from your previous post fout = fopen(filename, "w"); [/code]

Member Avatar for Lazaro Claiborn
0
244
Member Avatar for scru

I don't know about phthon but I know that can be done in C or C++ using sockets. Computers attached to a LAN (Local Area Network) do not require internet service provider but others do.

Member Avatar for scru
0
112
Member Avatar for SamY

why do that in assembly language? Its a whole lot easier in one of the higher-level languages such as C, C++ and basic. And how to communicate with those depends on the operating system and the hardware manufacturer-- there is no standard way of doing it.

Member Avatar for Ancient Dragon
0
73
Member Avatar for oolatin79

This works, its essentially the same you had though. I added code to flush the keyboard buffer after each integer input. That may have been your problem. [code=c] #include <string> #include <vector> #include <iostream> using namespace std; class dt { public: int month,day,year; dt() {month = day = year = …

Member Avatar for Ancient Dragon
0
131
Member Avatar for adsxvii

1. Yes its possible to do. 2. Your posting in C/C++ board so why would you not want to use that language? (other languages are also possible) 3. Time consuming for who? Depends on the experience of the person writing the program. 4. Probably not.

Member Avatar for Ancient Dragon
0
125
Member Avatar for degamer106

1. The problem is that, just like all other objects, tempState is destroyed when it goes out of scope and fillDatabase() runction returns to whoever called it. If you do not expicitely code the destructor c++ will write one for you. Why do you want tempState to live outside the …

Member Avatar for degamer106
0
376
Member Avatar for raydogg57

Lerner: A couple problems with the code you posted: >> 1. int numberstrings == 0; you need to use the assignment operator = instead of boolean operator ==.:mrgreen: >>5. store_string(char*string) This is a function prototype, not a function call

Member Avatar for WaltP
0
554
Member Avatar for Rickenbacker360

use paper & pencil to do this problem. Final answer should be [code] a = 2 b = 1 c = 3 d = 5 [/code]

Member Avatar for Rickenbacker360
0
120
Member Avatar for n.aggel

The portable way is to use the functions in time.h. 1. get current time using time() function, which returns the number of seconds since some pre-determined data, normally 1 Jun 1970. ' 2. call localtime() to get a pointer to struct tm, which contains each element of date/time as integers. …

Member Avatar for n.aggel
0
155
Member Avatar for Duki

how much education do you have already? Have you completed an MS, MA or MBA program? After another 10 years or so full-time experience in the work force you will probably have a good idea what you want to major in the Ph.D. program. Frankly, a Ph.D. isn't worth the …

Member Avatar for Pink-Lipz
0
62
Member Avatar for TheNNS
Member Avatar for TheNNS
0
56
Member Avatar for blackjack

you can do this: [inlinecode]char* ptr = const_cast<char*>(param;)[/inlinecode], but that defeats the purpose of using const in the first place. Casting out the const should be avoided whenever possible.

Member Avatar for John A
0
115
Member Avatar for Chaky

I saw that yesterday too using IE6. And I saw a couple problems (?) just now on both IE7 and FireFox 2.0.0.1. There is some white space (rectangle) in the upper-left corner where an add probably belongs, and in the lower-right, just beneath "Todays Posts" (no posts listed)

Member Avatar for John A
0
148
Member Avatar for ajaytee

If you really wrote that program then it should not be all that difficult for you to complete the assignment. Just add two more variables to hold the highest and lowest values. If however you did not write that code, then you are committing plagiarism (claiming something is your work …

Member Avatar for Ancient Dragon
0
94
Member Avatar for sujuncai

[QUOTE=Duki;313613]I would critique one thing... Typing in all caps, i.e., HIGHLY EXPERIENCED JAVA PROGRAMMER, does two things to your resume'... 1) Typing in caps makes the paper harder to read. We remember where we are in reading by the rise and fall in characters. Typing in all caps eliminates these; …

Member Avatar for Ancient Dragon
0
279
Member Avatar for mattyd

There are too many holidays and this one we can do without. One doesn't need a holiday to show how much you love someone.

Member Avatar for mattyd
0
291
Member Avatar for Elfshadow

stick with c++, the parts that are confusing now will eventually become clear to you. Nobody learns all that stuff over night.

Member Avatar for Elfshadow
0
131
Member Avatar for cusado

>>how do i make sure the student id becomes the output file name, using sprintf() to format the filename string [code] char filename[80]; sprintf(filename,"%d.txt", sudentID); [/code] >>and that the entered answers are printed into that specific file using fprintf() function. The second argument is the format string which tells fprintf() …

Member Avatar for Ancient Dragon
0
132
Member Avatar for revenge2

c++ is NOT a requirement but C (or some other language) is. People have been writing GUI programs for years and years with only C programs. c++ classes will make GUI programming a bit easier, but is not absolutely necessary. *nix GUI and MS-Windows GUI are completely different, but there …

Member Avatar for Ancient Dragon
0
122
Member Avatar for John A

I like that change -- now we can turn line numbers on and off as we please. Hope you keep this feature. :)

Member Avatar for MidiMagic
0
366
Member Avatar for abhinav.sharma

This is compiled and run with VC++ 2005 Express with no errors. [code] class A; class Base { private: int m_x; public: friend A; Base() {m_x = 1;} }; class A : public Base { public: A() {m_x = 2;} int getX() {return m_x;} }; int main() { A a; …

Member Avatar for abhinav.sharma
0
242
Member Avatar for gaurav seth

Your question has been asked before -- please read [URL="http://www.daniweb.com/techtalkforums/thread51744.html"]this thread[/URL].

Member Avatar for Ancient Dragon
0
84
Member Avatar for Mushy-pea

Reminds me of [b]The Planet of the Apes[/b] and Charlston Heston. >>I guess I just finds the idea of humanity "destroying" itself somewhat funny You can start laughing when Iran sends a nuke or two to Isreal. Iran is probably the only nation at the moment crazy enough to do …

Member Avatar for mattyd
0
210
Member Avatar for rwagnes

you have to add a function or class *.c or *.cpp to the library before the compiler will create the .lib file. Just putting the *.h in the project is not sufficient -- there must be some executable code. And you will find the .lib file in <project name/debug or …

Member Avatar for rwagnes
0
176
Member Avatar for suren23

why would you want to save folder shortcuts in a database table? When I delete the shortcut or folder it will just make the table obsolete.

Member Avatar for Ancient Dragon
0
43
Member Avatar for Coool Pinky

[QUOTE=campkev;192957]but it's NOT english. Exemplary is an adjective, not a noun. Anamemnis is a noun, not a verb.[/QUOTE] People should not try to get [b]cute[/b] with the English Language on boards that are read by many peoples around the world -- English is not the native language of many of …

Member Avatar for jbennet
0
199
Member Avatar for ulethgeek
Member Avatar for The Dude

Score 66%, average error 89 miles. never was all that great in geography.

Member Avatar for masijade
0
201
Member Avatar for Aia
Member Avatar for ~s.o.s~
6
136
Member Avatar for The Dude
Member Avatar for Riv3n
0
182
Member Avatar for WaltP

[quote=cscgal] Regarding color changes, threads used to look like this: [url]www.daniweb.com/techtalkforums/getdaily.html[/url] And now threads look like this: [url]www.daniweb.com/techtalkforums/forum8.html[/url] [/quote] I like the new color scheme better than the old one. But I don't like [URL="http://www.daniweb.com/techtalkforums/forum2.html"]this[/URL] change because it doesn't give me as much information as the older version.

Member Avatar for Dani
0
798
Member Avatar for Virii

If you can get a 4-year college degree, then do it. Computer programming is highly competetive so the more education you have the better off you will be.

Member Avatar for Ancient Dragon
0
88
Member Avatar for mladen17
Member Avatar for tradfreak

If you must do this in c++ then use MFC or some other GUI system as jamthwee mentioned. QT is another free one and portable between *nix and MS-Windows (probably MAC also). Note that none of these are trivial to learn -- MFC for example on average has about a …

Member Avatar for fesago90
0
110
Member Avatar for amishosh

C++ compilers for MS-Windows operating system can compile either console programs, which normally opens a DOS-like window, or a GUI window like you see with your VB compiler. The reason is that many c++ programs do not need GUI windows because they do things that do not require a GUI …

Member Avatar for fesago90
0
123
Member Avatar for loslos

>> ch = cin.get(); you should use infine, not cin [code] ch = infile.get(); [/code] And thanks for taking the time to read the board's rules to use code tags correctly. Not many first-time posters do that.

Member Avatar for loslos
1
115
Member Avatar for Ancient Dragon

Take [URL="http://www.daniweb.com/techtalkforums/thread68614.html"]this thread[/URL] as an example. I want to comment about it on this board instead of hijacking the original thread. How do all those obnoxious color codes get inserted into such posts? It looks like they were created by some other program then pasted into the post. That is …

Member Avatar for Dani
0
207
Member Avatar for nisrin

why store them in db? can't you just recreate the calendars whenever needed? If you want the calendars for storing other data in each date then you probably have a major table(s) design flaw.

Member Avatar for nisrin
0
141
Member Avatar for msamir

The problem might be the way your database makes string comparisons. Depending on what database you use you can probably set it to do either case sensitive or case insensitive comparisons. Also check the password that your program is actually sending to the db to make sure it has the …

Member Avatar for Ancient Dragon
0
74
Member Avatar for sonu2die4

[URL="http://msdn2.microsoft.com/en-us/library/ms682438.aspx"]Here[/URL] is information you need. After creating a semaphore your program calls one of the wait functions to gain access to it. When the ReleaseSemaphore() is canned another thread that is waiting will be released.

Member Avatar for Ancient Dragon
0
145
Member Avatar for Dani

[QUOTE=Infarction;309757] I guess I don't qualify as an old-timer... *whistles*[/QUOTE] neither do I, at 46,588

Member Avatar for ~s.o.s~
0
305
Member Avatar for Caped Sam

[URL="http://www.daniweb.com/techtalkforums/thread14186.html"]This[/URL] might help. This is for WinCE operating system and may, or may not, work on MS-Windows.

Member Avatar for Ancient Dragon
0
287
Member Avatar for KalebG

[QUOTE=akyprian;309773]And YOUR conclusion is: no matter what language you use or what code you write, final binaries will have the same speed ...[/quote] Not so -- bad compilers or unoptimized code will produce slower binaries. Different compilers will produce very different binaries (*.exe) even with the same source code. That …

Member Avatar for Purple Avenger
0
536

The End.