Forum: C May 3rd, 2008 |
| Replies: 0 Views: 462 Hello,
I am trying to determine the best possible solution to accomplish a simple, yet complex task. (Regarding: Socket Programming)
I've been working on a new project for quite some time and... |
Forum: Windows Software Dec 4th, 2006 |
| Replies: 5 Views: 3,639 Hey cscgal,
Thanks. I have certainly missed this place myself. I think it's time for me to poke around in the C/C++ section again. :)
Glad to see some familiar faces around! |
Forum: Windows Software Nov 29th, 2006 |
| Replies: 5 Views: 3,639 eFax Messenger Plus — What Really Happened?
To be honest, I don't know what really happened to the software. I recently discovered that eFax (www.efax.com) no longer supports the eFax Messenger... |
Forum: Viruses, Spyware and other Nasties May 10th, 2005 |
| Replies: 4 Views: 10,111 Hello crunchie-
Thanks for your help. Here is my new HJT log:
----------------------------------
Logfile of HijackThis v1.99.1
Scan saved at 10:33:19 AM, on 5/10/2005
Platform: Windows... |
Forum: Viruses, Spyware and other Nasties May 9th, 2005 |
| Replies: 4 Views: 10,111 Hello,
I beleive I found a suspicious file on my machine used as an explorer.exe shell. I've been trying to remove it all day, with no luck. Below is my HJT Log:
... |
Forum: C++ Mar 29th, 2005 |
| Replies: 45 Views: 43,867 Hello,
I see a problem with the following code:int main(void)
{
myfunction(argument1, argument2);
int argument1 = 4, argument2 = 5;
return 0;
}Simple. You create your variables after you... |
Forum: C++ Mar 11th, 2005 |
| Replies: 11 Views: 22,452 Hello,
You may want to try:// my first program in C++
#include <iostream>
using namespace std;
int main (void) {
// Display text
cout << "Hello World!" << endl; |
Forum: C++ Mar 10th, 2005 |
| Replies: 45 Views: 43,867 Hello,
» One aspect of C functions may be unfamiliar to programmers who are used to some other languages, particularly Fortran, is Call by Value. In C, all function arguments are passed "by... |
Forum: Shell Scripting Mar 10th, 2005 |
| Replies: 3 Views: 12,602 Hello,
I have not done TCL script programming before, though I do believe the following links can help you:
Practical Programming in Tcl and Tk (http://www.beedub.com/book/)
Tcl/Tk... |
Forum: C Mar 10th, 2005 |
| Replies: 13 Views: 4,229 Hello,
You're welcome. If you have any further questions regarding the information I provided, don't hesitate to ask.
- Stack Overflow |
Forum: C++ Mar 10th, 2005 |
| Replies: 11 Views: 22,452 Hello,
I would recommend Bloodshed Dev-C++ (http://www.bloodshed.net/devcpp.html) for C++ programming.
If you want to compile C code, I would suggest using a C compiler such as GCC. I'm... |
Forum: C Mar 10th, 2005 |
| Replies: 13 Views: 4,229 Hello,
Keep in mind if the space cannot be allocated, a null pointer is returned. If you try to write to the NULL block of memory, it will cause a segmentation fault. It's best to test for NULL... |
Forum: C Mar 10th, 2005 |
| Replies: 13 Views: 4,229 Hello,
In addition, you may find this short tutorial on Segmentation Faults handy: Locating a Segmentation Fault (http://cboard.cprogramming.com/showthread.php?t=59721#post421421)
Or if you... |
Forum: C Mar 10th, 2005 |
| Replies: 13 Views: 4,229 Hello,
Indeed it should. Each call to malloc will be subsequently freed during each loop iteration.
I'm not entirely sure. I don't have any hard evidence or facts at the moment, though I have... |
Forum: C++ Mar 10th, 2005 |
| Replies: 1 Views: 4,632 Hello,
I'm not very fluent in Win32 programming, though I might be able to point you in the right direction. Below are a list of links that may help you:
A checkbox tree control for use in... |
Forum: C Mar 10th, 2005 |
| Replies: 13 Views: 4,229 Hello,
If I am correct in my thinking, you will have lost allocated memory in your program. Your pointer, q, is a variable. Allocating memory to it 1000 times will cause a problem.
According... |
Forum: Community Introductions Mar 9th, 2005 |
| Replies: 3 Views: 1,906 Hello there Elmo! Welcome to DaniWeb. I'm sure Dani will be around to say hi soon. :D
So welcome and have fun.
- Stack Overflow |
Forum: C Mar 9th, 2005 |
| Replies: 18 Views: 6,225 Hello,
1) What I mean't by function scope is simple. All it knows is what is happening within the function, and it doesn't have a clue as to what is happening in the 'int main' part of the... |
Forum: C Mar 9th, 2005 |
| Replies: 18 Views: 6,225 Hello,
No problem. Let me answer this question by example:#include <stdio.h>
#include <stdlib.h>
void test(char **p) {
/* run test; view memory address */
printf("Function scope:... |
Forum: C Mar 9th, 2005 |
| Replies: 18 Views: 6,225 Hello,
When you call free, the memory pointed to by the passed pointer is freed, but the value of the pointer in the caller remains unchanged, because C's pass-by-value semantics mean that called... |
Forum: C Mar 9th, 2005 |
| Replies: 18 Views: 6,225 Hello,
Also, be sure to set your variable to NULL after you free the memory. Example:free(G); /* Dynamically allocated memory is freed */
G = NULL; /* This ensures that we point our pointer to... |
Forum: C Mar 9th, 2005 |
| Replies: 18 Views: 6,225 Hello,
When free() is called, a block of memory previously allocated by a call to malloc, calloc or realloc is freed:Graph G=malloc(sizeof *G); /* Memory is dynamically allocated */
if (G !=... |
Forum: C++ Mar 9th, 2005 |
| Replies: 9 Views: 3,251 Hello,
Attached is a modified version of your main file: main.cpp
My workspace contains 1 Source File, main.cpp, and 1 Header File, free_list.h.
- Stack Overflow |
Forum: C++ Mar 8th, 2005 |
| Replies: 9 Views: 3,251 Hello,
An unresolved external occurs when some code has a call to a function in another module and the linker can't find that function in any of the modules or libraries that you are currently... |
Forum: C++ Mar 8th, 2005 |
| Replies: 9 Views: 3,251 Hello,
I have viewed and compiled the source files without warnings or errors with Visual C++ .Net 2003. I did not see main() declared in either of your two files, as I added it manually during my... |
Forum: Shell Scripting Mar 8th, 2005 |
| Replies: 2 Views: 33,655 Hello,
If I understand correctly, you want to replace all space occurances to "\space" where space represents the space, ' ', character:sed -i 's/ /\\ /' file
To clarify:
sed — Is the program.... |
Forum: Shell Scripting Mar 8th, 2005 |
| Replies: 2 Views: 12,107 Hello,
You're on the right path, though your syntax is a bit off. We know that sed substitutes text using the s command. Suppose you wanted to change all occurrences of "Unix" in the text to... |
Forum: C Feb 23rd, 2005 |
| Replies: 3 Views: 5,762 Hello,
The switch statement is a multi-way decision that tests whether an expression matches one of a number of constant integer values, and branches accordingly. The break statment causes an... |
Forum: C++ Feb 23rd, 2005 |
| Replies: 8 Views: 5,374 Hello,
C provides the infinitely-abusable goto statement, and labels branch to. Formally, the goto statement is never necessary, and in practice it is almost always easy to write code without it.... |
Forum: C Feb 21st, 2005 |
| Replies: 3 Views: 1,843 Hello,
This is quite simple in fact. We will run one loop through 8 times for simplicity. Each loop around we will increase a single variable that will tell us where to stop. Here is our... |
Forum: C++ Feb 8th, 2005 |
| Replies: 0 Views: 1,695 Hello,
Brief Tutorial Revision: All examples can be compiled successfully in your compiler. Also, each example is compatable using the -Wall, -pedantic, -ansi, and -std=c89 GCC flags. Also, a few... |
Forum: Windows NT / 2000 / XP Feb 8th, 2005 |
| Replies: 3 Views: 6,981 Hello,
I am experiencing a slight problem managing user accounts in Windows XP Home Edition. When running in an existing account, non-administrative, I run into an IE script error and am unable to... |
Forum: C++ Dec 13th, 2004 |
| Replies: 8 Views: 2,837 Heh,
Very funny prog-bman. :)
As for you Nabs, the definition of your nick is intriguing: Apprehend
Google (http://www.google.com), not Giggle, is your friend believe it or not. Just do... |
Forum: DaniWeb Community Feedback Nov 12th, 2004 |
| Replies: 38 Views: 9,589 Were you in the red the two prior years you only had three advertisements on your site?
How much are you paying for your hosting services? Are you exceeding your bandwidth, and being charged a... |
Forum: DaniWeb Community Feedback Nov 12th, 2004 |
| Replies: 38 Views: 9,589 Ah, I'll see what I can do about the contests.
Maybe something a little simpler than my previous two contests ;)
- Stack Overflow |
Forum: Geeks' Lounge Nov 11th, 2004 |
| Replies: 39 Views: 8,499 |
Forum: C++ Nov 10th, 2004 |
| Replies: 2 Views: 1,536 Greetings,
There are a few syntatical errors in your program. Let's walk through them one step at a time.
Point A
First issue is the local variables themselves. Nothing major, it can be fixed.... |
Forum: C++ Nov 10th, 2004 |
| Replies: 2 Views: 2,502 Greetings,
A simple fix I saw. In your function gettemps() change:scanf("%f",temp[i]);To"scanf("%f",&temp[i]);if If you want to store the result of a scanf operation on a standard variable you... |
Forum: C++ Nov 9th, 2004 |
| Replies: 5 Views: 26,469 Greetings,
Thinking on the same line, lets walk along the string. Better yet, lets use a while loop to do so. By creating a seperate function to modify the string would probably be beneficial in... |
Forum: C++ Nov 3rd, 2004 |
| Replies: 36 Views: 11,583 Greetings,
Creating an inline function to return the average of a group of numbers is not difficult. In this case, we will take all the values of the array and average them. The algorithm to... |