473,811 Members | 3,924 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
0
351
thread by: felipecpc | last post Mar 8 '06 by: felipecpc
Hi .... I need some help. Actualy i´m develop a plugin for a USB Telephone. These phone is connected with a USB port in computer. My problem is , when the softphone receive a call, my plugin have to detect, and inform to the phone for the ring on. The softphone which i work , don´t have any API to help. For solve the problem i think i have...
5
1,511
thread by: Freyr | last post Mar 8 '06 by: Freyr
For some reason, my program won't kill itself when Pull == 'n' or the counter is equal to zero. I tried two different ways: #include <iostream> #include <cstdlib> #include <ctime> using namespace std;
8
2,376
thread by: sonu | last post Mar 8 '06 by: A. Sinan Unur
main() { char *ptr1,*ptr2; ptr1=(char*)malloc(sizeof(ptr1)); gets(ptr1); ptr2=(char*)malloc(sizeof(ptr2)); gets(ptr2);
17
5,828
thread by: Yuri CHUANG | last post Mar 8 '06 by: Richard Heathfield
Hi, I'm the beginner of the CPL.I write a program about the problem of Ring of Josephus,using DoubleLinkList data structure. I'm very confused that I think there is really no error in my code.But,the compiler sometimes show some strange errors,sometimes can pass through with an unknown trouble when it is running,and no result.So,could anyone...
8
2,141
thread by: cdg | last post Mar 8 '06 by: benben
Could anyone tell me how to correctly assign a variable name to the return of the function call in this example program. I needed to convert a integer to a string, using stringstream. However after returning the string I am not sure how to assign a variable name to it. #include <iostream> #include <sstream> using namespace std; string...
2
1,547
thread by: swl | last post Mar 8 '06 by: werasm
I just developed a server side programm. I compiled it using VC++ 6.0 in Windows XP. It run well in Windows XP. But in windows 2000 it got a runtime error. Can I need to compile it in Windows 2000 again? Thanks in advanced.
4
2,568
thread by: Hiten | last post Mar 8 '06 by: Keith Thompson
hi all, this is my 1st message. i am a beginner in C. can anyone help me out with the following Turbo C problem. i am unable to complile my programs. i.e. instead of compiling my program the s/w compliles something else (tc\inclde\iostream....something of this sort of a file pops up). i tried hard to get out of this but to no avail. any...
4
2,352
thread by: sudhir | last post Mar 8 '06 by: sudhir
Q 1. I defined a class with 10 functions . It contains declaration of 5 functions and 5 functions are declared and defined. Is this class is said to a abstract class ? Q 2. Which one is correct? If a class contains a virtual class then it is said to a abstract class ? Or a abstract class always contains a virtual function ?
34
3,708
thread by: Asfand Yar Qazi | last post Mar 8 '06 by: werasm
Hi, I'm creating a library where several classes are intertwined rather tightly. I'm thinking of making them all use pimpls, so that these circular dependancies can be avoided easily, and I'm thinking of making all these pimpl class declarations public. Reasoning is that since only the code within the ..cc file will need to ever access...
3
1,572
thread by: qazinor | last post Mar 8 '06 by: qazinor
Hello, I have a C little program wich takes some text as input and process it. I would like to make a friendly user interface. I thought i could do it with tcl/tk, but it turns out that it is not as easy as it looks(or...). I just need to take the user input(text) and send it over the c program for treatement. I'm not quite sure if tcl/tk...
6
2,069
thread by: Beih | last post Mar 8 '06 by: Gernot Frisch
Hey.. If you won't mind... I have this certain assignment in c++ programming where in we are asked to prepare a menu and everything that will be keyed in will be summed up. Thanks. :) Really in dire need of your help... :) If its okay, please email me atleats the algorithm for the said program... ü Graciàs!
9
18,483
thread by: aaron | last post Mar 8 '06 by: aaron
I have a few documents in which I need to get a total word count. Can anyone help? I'd like to create this program so I can get the result after entering the filename, and have the option to enter another filename and get results again... enter quit to end program.
2
2,548
thread by: Jack | last post Mar 8 '06 by: Jack
I have a chunk of code that loads a few dozen function pointers into global variables. I'm concerned with unused memory consumption. What if the client only needs to use one or two functions? Then there's quite a few function pointers consuming memory and going to waste. Here's little example: // mycode.cpp or mycode.c typedef int (*PFN)...
4
1,563
thread by: m_schellens | last post Mar 8 '06 by: m_schellens
I want to sort dome output from a routine which writes to an ostream. Following is what I am doing now and it works, but it looks overyly complicated to me. I assume that there is an easier way (avoiding any char buffer). Any suggestions? Thanks, Marc
2
1,958
thread by: cmk128 | last post Mar 8 '06 by: Andre Kostur
Hi The following code have a compile error: printf_format.cpp: In function `void print(int, char*, ...)': printf_format.cpp:6: invalid conversion from `const char*' to `int' printf_format.cpp:6: invalid conversion from `int' to `char*' I am using gcc 3.4, please HELP #include <stdio.h> #include <stdlib.h>
0
1,410
thread by: sudhir | last post Mar 8 '06 by: sudhir
Please give the solution for QT designer in fedora core 1: How to compile a c++ program and how to execute using QT designer ?
4
6,956
thread by: msolem | last post Mar 8 '06 by: msolem
I have some code where there are a set of functions that return pointers to each other. I'm having a bit of a hard time figuring out the correct type to use to do that. The code below works but I'm defining the functions as void*, and then casting when I use them. This code is going into a general purpose framework, and it would be much...
4
5,249
thread by: Jeff | last post Mar 8 '06 by: Peter_Julian
The derived class below passes a reference to an object in its own class to its base calss constructor. The code compiles and will run successfully as long as the base class constructor does not attempt to access the object -- since m_object is not actually created and initizialized until after the base constructor has been called. Any...
0
1,492
thread by: maaveerar_pingpong | last post Mar 8 '06 by: maaveerar_pingpong
Hello all, I am using GCC version 3.4.3 on a Linux 2.6 Kernel based machine. I have a library of classes in an partially (incremenally?) built object file, i.e. linked using -Ur option. I link this to a shared library. One of classes in the object library, has an inline fuction which is called from the shared lib as shown below. This...
34
2,096
thread by: Spidey | last post Mar 8 '06 by: David Holland
What kind of formating can be done with %p in printf
2
9,012
thread by: Michele Moccia | last post Mar 8 '06 by: Kai-Uwe Bux
How can I implement a "time critical" fifo in c++ ? I just have to manage sequences of raw bytes, no user defined types. An std::queue<unsigned char> or std::deque<unsigned char> seems to be slow. I've compared that to a platform depended solution (i tried to use a MS Window pipe in the same process to create a fifo and it's very faster). ...
3
2,987
thread by: Nitin | last post Mar 8 '06 by: Keith Thompson
Hi all How to pass a 3-D array from the main program and access it in the subroutine. for example void main() { .....
1
1,460
thread by: vivekian | last post Mar 8 '06 by: Thomas Tutone
Hi, I have not used much of exception handling in C++ and was wondering what are the right situations to do so . Coming from a C background , error handling seems to take care of most things. When should one decide to throw an exception and when should one try to stick to error handling ? Thanks in advance, vivekian
2
7,008
thread by: Steven T. Hatton | last post Mar 8 '06 by: Steven T. Hatton
What is the best way to read data from a file into a fixed size array of unsigned char? This is a file holding only a SHA1 digest. What I would really like to do is initialize the ifstream with the buffer allocated to hold the data, seekg(ios_base::end) and magically have the data appear in the buffer. I believe something close to this can...
1
2,074
thread by: k_baum217 | last post Mar 8 '06 by: A. Sinan Unur
I'm new to fortran 90 and I need a code which will read the number of rows and columns of a matrix of dimensions n x m. I understand how to get the number of rows, but can't figure out how to find the number of columns. This is part of the program which will find the number of rows, n: DO READ(13,*, iostat = error) IF (error == -1) EXIT

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.