Search Results

Showing results 1 to 40 of 54
Search took 0.01 seconds.
Search: Posts Made By: AutoC ; Forum: C++ and child forums
Forum: C++ Oct 6th, 2009
Replies: 2
Views: 185
Posted By AutoC
Hi,

I'm not clear as to when memory is allocated from the stack, free store or data area.Can someone please elaborate?
Forum: C++ Apr 26th, 2009
Replies: 3
Views: 275
Posted By AutoC
ok...It was the return value! thanks a lot! memory leaf fixed :P
Forum: C++ Apr 26th, 2009
Replies: 3
Views: 275
Posted By AutoC
Hi,
Here's my code

#include<iostream>
#include<fstream>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
Forum: C++ Apr 24th, 2009
Replies: 1
Views: 304
Posted By AutoC
Hi,
I'm implementing kd trees and have pseudo code for most of the functions but the delete operation.Its quite complicated and I have no idea how to implement it.Any help is appreciated
Forum: C++ Feb 7th, 2009
Replies: 2
Solved: sprintf Issue
Views: 257
Posted By AutoC
2. no..theyre messed up.
it says -52,0,0

1. BRILLIANT!

i used a temp variable for the sprint f and it worked!!!!!!!! thanks a ton!
Forum: C++ Feb 7th, 2009
Replies: 2
Solved: sprintf Issue
Views: 257
Posted By AutoC
I have a code snippet that strangely works one way on a fedora 6 machine and another way on a fedora 8 machine.


void Form1::SendToApp()
{
vector<int> isciistream;
vector<int> fontstream;...
Forum: C++ Nov 30th, 2008
Replies: 2
Views: 314
Posted By AutoC
I have a c++ program that performs a functionality.
generate.h

struct code
{
bool out;
bool *reg;
};

class Cyclic
Forum: C++ Nov 25th, 2008
Replies: 4
Views: 332
Posted By AutoC
still need help with this :(
Forum: C++ Nov 22nd, 2008
Replies: 4
Views: 332
Posted By AutoC
Thats what I'm saying too.Let me explain bit erasure.

Lets say I transmit 01001101
theoretically, I recieve 01?01?01
ie. I dont know those bit values...though I'm in doubt now how thats even...
Forum: C++ Nov 22nd, 2008
Replies: 4
Views: 332
Posted By AutoC
Hi,
In an assignment I'm supposed to introduce packet errors and bit erasures in the packets.packet errors I can do.Bit erasures mean we have no idea if its a 1 or a 0.how can I introduce something...
Forum: C++ Nov 22nd, 2008
Replies: 5
Views: 1,177
Posted By AutoC
Forum: C++ Nov 22nd, 2008
Replies: 5
Views: 1,177
Posted By AutoC
hey..I need to convert a 8 value bool array to char.How can I do this?
Forum: C++ Nov 15th, 2008
Replies: 1
Views: 387
Posted By AutoC
Hi,

I need help with implementing cyclic codes.Its much like crc.I've found a lot of software implementations for crc but havent understood them.I've looked at a crc guide which gave,

So to...
Forum: C++ Nov 10th, 2008
Replies: 1
Views: 3,055
Posted By AutoC
I wrote the server and client programs.I'm sending data from server to client.

Server

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>...
Forum: C++ Nov 10th, 2008
Replies: 1
Views: 3,055
Posted By AutoC
Hi,

I want to transfer a file as it is via a socket...not read the file contents and send it.How can I do this?
Forum: C++ Nov 6th, 2008
Replies: 5
Views: 499
Posted By AutoC
expression parser that handles polynomials?
Forum: C++ Nov 6th, 2008
Replies: 5
Views: 499
Posted By AutoC
I'm actually implementing something similar to a CRC..I need to use one of the factors to divide a message and get the remainder...any help with this is appreciated
Forum: C++ Nov 6th, 2008
Replies: 5
Views: 499
Posted By AutoC
Hi,

I need to write C++ code to find the factors of a polynomial.For eg. X^2-1 should return x-1 and x+1...anyone have any ideas on how to do this?
Forum: C++ Nov 3rd, 2008
Replies: 1
Views: 294
Posted By AutoC
Hi,

I'm implementing linear block coding and need some ideas on how to go about storing the cosets.

i.e.
If i have an alphabet C={000,101,010,111}
I need to perform
C+000={000,101,010,111}...
Forum: C++ Nov 3rd, 2008
Replies: 2
Views: 1,212
Posted By AutoC
Hi,

I've got a program that I wish to run in a powerful server so that it can run on several cores simultaneously and work faster.I need to do client server programming for this.That is, I recieve...
Forum: C++ Oct 20th, 2008
Replies: 1
Views: 352
Posted By AutoC
Hi,

We are doing some audio data collection.So I need to write a program which when run would generate a beep and record from a microphone until the next beep and save it as a wave file.This...
Forum: C++ Oct 7th, 2008
Replies: 1
Views: 633
Posted By AutoC
Hi,

Thanks to everyone I was able to submit my huffman coding assignment successfully.Now I've got to do arithmetic coding and it seems really confusing.I've looked at arturo campos's page ...
Forum: C++ Sep 26th, 2008
Replies: 1
Views: 881
Posted By AutoC
I'm reading a file and I'd like to get short,int etc. apart from the usual char because I want to read 16 bit values...is there a way?
Forum: C++ Sep 26th, 2008
Replies: 4
Views: 2,589
Posted By AutoC
Its solved...it had to do with a declaration..thanks
Forum: C++ Sep 26th, 2008
Replies: 4
Views: 2,589
Posted By AutoC
I only use new and delete and Im not freeing anywhere else except my destructors...which I commented and I still get the error...what other possibilities exist?
Forum: C++ Sep 26th, 2008
Replies: 4
Views: 2,589
Posted By AutoC
I'm getting this error at the end of my program...

*** glibc detected *** ./a.out: free(): invalid pointer: 0x00617ca0 ***
======= Backtrace: =========
/lib/libc.so.6[0x684ac1]...
Forum: C++ Sep 26th, 2008
Replies: 1
Views: 693
Posted By AutoC
Hi,

Whenever a user types ./a.out with the wrong number of arguments I want my program to output something like
Usage: ./a.out <-e/-d> <FIlename> <Value>

how can I do this?
Forum: C++ Sep 25th, 2008
Replies: 4
Views: 603
Posted By AutoC
passed the file pointer..the seg faults stopped :)

thanks
Forum: C++ Sep 25th, 2008
Replies: 4
Views: 603
Posted By AutoC
Hi,

In a function of my program, I open and close the file once every recursion...and the recursion is very large....I've made sure im not writing when its closed or not opening when its open or...
Forum: C++ Sep 25th, 2008
Replies: 6
Views: 570
Posted By AutoC
yes...everything else is ok...only this character is being skipped
Forum: C++ Sep 24th, 2008
Replies: 6
Views: 570
Posted By AutoC
I'm coding pdf files...and its appearing within the file...not at eof
Forum: C++ Sep 24th, 2008
Replies: 6
Views: 570
Posted By AutoC
I'm sorry..i mis read my files...its actually skipping a "ÿ" from the input files...and ÿ is not in my tree
Forum: C++ Sep 24th, 2008
Replies: 6
Views: 570
Posted By AutoC
hi,
I've completed huffman coding..but there is one small issue...in my decoded file the character "ÿ" keeps appearing at random places...I checked the problem and a second parse of the input file...
Forum: C++ Sep 22nd, 2008
Replies: 5
Views: 525
Posted By AutoC
yes..but how do i represent it..what do i write for its value
Forum: C++ Sep 22nd, 2008
Replies: 5
Views: 525
Posted By AutoC
no..a pseudo eof is a character you add so that you can stop before eof
Forum: C++ Sep 22nd, 2008
Replies: 5
Views: 525
Posted By AutoC
hi,

This is a doubt about the pseudo-eof.If i have an 8 bit system, Then the pseudo eof has to be above 8 bits...so should i allocate 16 bits for every character just so that my eof can exist?..if...
Forum: C++ Sep 19th, 2008
Replies: 3
Views: 861
Posted By AutoC
draw the binary tree?..get its structure so that I can traverse it etc.?
Forum: C++ Sep 18th, 2008
Replies: 3
Views: 861
Posted By AutoC
Hi,
Lets assume my preorder traversal gives me a unique tree.How do I get the tree from the preorder traversal?

Any help is appreciated
Forum: C++ Sep 15th, 2008
Replies: 9
Views: 1,042
Posted By AutoC
Awesome! I've finished encoding.About the pseudo eof, it cant be 8-bit.So, I'm using the first 9 bit character which is 256.Do i need to assign an additional 8 bits(a byte) to each node just so that...
Forum: C++ Sep 14th, 2008
Replies: 9
Views: 1,042
Posted By AutoC
The packing in reverse is not clear to me.Let me see if I got this right.When we are writing a bit stream, the bit endianness is little so we write from least significant bit to most significant bit?...
Showing results 1 to 40 of 54

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC