Forum: DaniWeb Community Feedback 1 Hour Ago |
| Replies: 6 Views: 52 |
Forum: DaniWeb Community Feedback 6 Hours Ago |
| Replies: 6 Views: 52 Re: I can't see mod menues This must be the same issue as this thread (http://www.daniweb.com/forums thread144234.html) because I just downloaded Firefox 3 and the menus appear normally. |
Forum: DaniWeb Community Feedback 7 Hours Ago |
| Replies: 6 Views: 52 I can't see mod menues I had to change computers because my other one bit the dust a couple days ago (64-bit Vista/IE7). Now when I log into DaniWeb I can't see the mod menus in Coffee House -- see thumbnail. |
Forum: C++ 16 Hours Ago |
| Replies: 1 Views: 44 Re: Inventory program Yes, we can HELP you but we will not write it for you. You have to write the program then post questions about what you don't understand.
I believe the first thing you need to do is design the... |
Forum: C++ 23 Hours Ago |
| Replies: 6 Views: 55 Re: connecting to an SQL DB I just finished compiling and linking with Dev-C++ with no problems after adding the libraries.
Posted this before I saw your previous post (solution) |
Forum: C++ 23 Hours Ago |
| Replies: 6 Views: 55 Re: connecting to an SQL DB I just compiled/linked with VC++ 2008 Express without a problem.
What was the exact error message? What you quoted was only an indication that one or more errors occurred. |
Forum: C++ 1 Day Ago |
| Replies: 3 Views: 73 Re: stray pointer Because the pointer has not been initialized to anything. It just points to some random location in memory, which your program may, but probably does not, own. Before using a pointer you must... |
Forum: C++ 2 Days Ago |
| Replies: 5 Views: 111 Re: Compile-time printing? flush is a function so you need to use () cout.flush()
Try this macro
#define PRINT(x) (cout << x << "\n" ) |
Forum: C++ 3 Days Ago |
| Replies: 1 Views: 49 Re: C++ sequential file / array >> what would I name my file or doesn't it make any difference?
It doesn't matter -- name it whatever you want. Text files normally have *.txt extension, not *.dat.
>>So how do I have to call out... |
Forum: C++ 3 Days Ago |
| Replies: 5 Views: 95 Re: FunEditor Difficulties That should tell you that nobody uses that editor. My advice is to scrap it and use something else to write your program. |
Forum: C++ 3 Days Ago |
| Replies: 4 Views: 79 Re: help needed The reason is because entering numbers leaves the '\n' (Enter key) in the keyboard buffer. cin.ignore() will just remove the '\n'. So you either need another cin.ignore() or do what you did and use... |
Forum: C++ 3 Days Ago |
| Replies: 1 Views: 79 Re: Timer I suppose you could use the time functions in time.h
time_t t1, t2;
t1 = time(0);
t2 = t1
while( (t2 - t1) < 1) // one second
t2 = time(0);
You might also check the Boost time functions... |
Forum: Geeks' Lounge 3 Days Ago |
| Replies: 11 Views: 179 Re: North American Thoughts That is very funny, but I hope you realize that Canadians and Mexicans are also Americans. America refers to the North American continent, not the USA. |
Forum: C 3 Days Ago |
| Replies: 2 Views: 94 Re: How to write enter in text file how was the file opened? as text or binary? If binary then the next line character(s) depends on the operating system. In MS-Windows/MS-DOS you need "\r\n". *nix just "\n" and MAC "\r". If the... |
Forum: C++ 3 Days Ago |
| Replies: 1 Views: 62 |
Forum: C++ 3 Days Ago |
| Replies: 5 Views: 104 |
Forum: C++ 3 Days Ago |
| Replies: 1 Views: 71 |
Forum: C++ 3 Days Ago |
| Replies: 2 Views: 92 Re: "warning: NULL used in arithmetic" http://www.cppreference.com/cppstack/top.html
It does not return NULL, but returns a reference to the first object in the stack. Checking for NULL is not a valid thing to do. |
Forum: C 4 Days Ago |
| Replies: 3 Views: 74 |
Forum: C++ 4 Days Ago |
| Replies: 5 Views: 95 Re: FunEditor Difficulties No I can't because I know nothing about that editor. Go back to where you got it and see if they have a user's group or forum where you can ask questions. My pure guess is that you failed to... |
Forum: C 4 Days Ago |
| Replies: 3 Views: 74 Re: Parent context for swapcontext func What operating system? Is it something that you are writing ? I did something similar in MS-DOS 6.X (a program with multiple context threads). In that program I had a kernel function (kernel to my... |
Forum: C 4 Days Ago |
| Replies: 1 Views: 51 |
Forum: Community Introductions 4 Days Ago |
| Replies: 1 Views: 76 |
Forum: C++ 4 Days Ago |
| Replies: 2 Views: 77 Re: get fonts EnumFonts() (http://msdn.microsoft.com/en-us/library/ms533964(VS.85).aspx) |
Forum: C++ 4 Days Ago |
| Replies: 5 Views: 107 |
Forum: C++ 4 Days Ago |
| Replies: 8 Views: 140 Re: general advice on programming pratices >>are STL containers faster then c-style arrays?
No. you can't get any faster access than c style arrays. But that isn't the point -- c++ STL eliminate many of the problems with c style arrays,... |
Forum: C 4 Days Ago |
| Replies: 2 Views: 76 Re: Question on File write you can use either sprintf() or strcat() to format the output file name. Example:
char outname[255];
char inputname[255];
char* ptr;
printf("Enter a file... |
Forum: C 4 Days Ago |
| Replies: 4 Views: 100 |
Forum: C++ 4 Days Ago |
| Replies: 5 Views: 95 Re: FunEditor Difficulties The error message is pretty clear about what is wrong, and the solution sould be obvious: where did you declare MUSHROOM_END ??? |
Forum: C++ 4 Days Ago |
| Replies: 8 Views: 140 Re: general advice on programming pratices 1) 2) and 3). Very little, if any, performance gain. Those are not areas to optimize because the compiler will do that.
4) You talking about c++ classes? vertual class methods are extremly... |
Forum: C++ 5 Days Ago |
| Replies: 4 Views: 88 Re: open with: win xp all c and c++ programs have a main() function, and it has two optional arguments.
int main(int argc, char* argv[])
argc is the number of command-line arguments (deliminated with spaces). argc is... |
Forum: C++ 5 Days Ago |
| Replies: 1 Views: 52 Re: .in file confusion That information is not in a *.ini file. Its in a database, such as MySQL and Microsoft SQL Server (there are lots of others too). The simplest kind of database is a plain text file. *.ini files... |
Forum: C++ 5 Days Ago |
| Replies: 8 Views: 181 Re: string.size and accentuated words I don't have ubantu, but Microsoft VC++ 2008 Express reports 1 for the program that jamthwee posted. The compiler stored -61 in that byte. crappy *nix :)
>>I'm sorry, but I'm a beginner C++... |
Forum: C++ 5 Days Ago |
| Replies: 8 Views: 181 |
Forum: C++ 5 Days Ago |
| Replies: 6 Views: 119 |
Forum: C++ 5 Days Ago |
| Replies: 5 Views: 135 Re: int *array[10] to dynamic array equivalent? >>function(int *&head)
That is not a function that takes a 2d array. What you have there is a reference to a 1d array. They are not the same thing.
void functijon(int **array)
{
array[0][1] =... |
Forum: C++ 5 Days Ago |
| Replies: 6 Views: 119 |
Forum: Geeks' Lounge 5 Days Ago |
| Replies: 142 Views: 5,186 Re: 2008 US Presidential Poll Part 2 Many of the now-old rich farts actually inhereted their wealth from their parents. The Rockefellers and Hiltons are just two of many such examples. On the otherhand, the richest man in the world... |
Forum: C++ 5 Days Ago |
| Replies: 6 Views: 119 |
Forum: Geeks' Lounge 5 Days Ago |
| Replies: 142 Views: 5,186 Re: 2008 US Presidential Poll Part 2 McInsain didn't earn his money -- he married it. And do did John Kerry for that matter.
BTW: Only 64 days left until election day. I might just vote for McInsain because of his female vp, who... |