473,748 Members | 2,563 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.
7
1,853
thread by: David Lindauer | last post Mar 4 '06 by: David Lindauer
If I do this: struct aa { int r,s,t; aa(); aa(const aa& t); }; int tt()
7
2,358
thread by: changs | last post Mar 4 '06 by: Ben Pfaff
Hi, all I have a asm code, I suspect it sort of socket programming. Can anyone here give some instructions on how to determine the function or give the psudo-code in C? Thanks in advance! Tony
6
1,340
thread by: Thomas Barth | last post Mar 4 '06 by: Randy Howard
Hi, I am just looking for a complete reference to C, but I only can find books teaching C. Other programming languages have got websites to look up functions and other informations. Do you know a list of all C functions with their appropriate header files? Regards, Thomas
7
4,375
thread by: Uwe Grawert | last post Mar 4 '06 by: Default User
Hello, a C-function expects me to give a pointer to a function as parameter. i want to give this function a pointer to a member function of a class but the compiler gives me an error: void (MyClass::*)(void*, void*) can not be converted to void (*)(void*, void*) i declared the function as protected. Is it not possible to give
8
1,635
thread by: fff | last post Mar 4 '06 by: Default User
Write a program that will process a financial transaction on an unspecified number of accounts. The program will read the account number, the balance, the transaction type and the amount from the user. It will then apply the specified transaction to the balance of the relevant account and write the account number and the updated balance into...
3
1,600
thread by: vaasu | last post Mar 4 '06 by: Default User
What is the difference between a Structured Programming Language and Procedural Language. Which one is procedural and structured.... either C or C++.
4
18,270
thread by: inkexit | last post Mar 4 '06 by: Jacek Dziedzic
I'm writing a basic piece of software that will tell me how many shares of stock I can buy if the shares cost X each and I have Y to spend. I have it coded as: int main() { float price, investment;
4
4,746
thread by: KL | last post Mar 4 '06 by: TB
Hello again, I am still working on this homework assignment and have hit a wall. I have a list that I want to fill with all occurences of img tags from a big string of html code. So I have a string called str which holds the html code and I want to find the string str1 which would be <img and then write to the list an item that contains...
3
1,604
thread by: g | last post Mar 4 '06 by: g
#ifndef SERVICE_HANDLER_H_ #define SERVICE_HANDLER_H_ #include <string> #include <map> class Services; class Service_Handler { public:
3
1,658
thread by: Paul Miller | last post Mar 4 '06 by: Paul Miller
I'm looking for an appropriate newsgroup to ask for input about designing and implementing a good multi-threading system for a consumer/producer-type user interface. Does such a specialized group exist, or should I just ask here? I'm also looking for recommendations on books about designing multi-threaded applications.
1
1,833
thread by: raniyesudas | last post Mar 4 '06 by: Ben Pope
In our project we have to use pop up menu to cut,copy,paste items to linked list. the items of the list are displayed in the list control.Hence by clicking on the item in the list control we should be able to copy the item in the cell of list control and paste it into any cell. this should also make proper changes to the linked list too.
5
1,501
thread by: Tomás | last post Mar 4 '06 by: Tomás
char (&) GetArray() { static char hello = "hello"; return array; } int main() { char (&hello) = GetArray();
1
3,393
thread by: raniyesudas | last post Mar 4 '06 by: TB
In our project we have to use pop up menu to cut,copy,paste items to linked list. the items of the list are displayed in the list control.Hence by clicking on the item in the list control we should be able to copy the item in the cell of list control and paste it into any cell. this should also make proper changes to the linked list too.
8
3,439
thread by: Protoman | last post Mar 4 '06 by: Dietmar Kuehl
Is there any way I can improve this bounded array class? What other ops should I overload? How do I use operator() to make multiple subscripts? Here's the code: class OutOfBounds{}; template <class T, unsigned long long Size> class BArray { public:
0
260
thread by: raniyesudas | last post Mar 4 '06 by: raniyesudas
In our project we have to use pop up menu to cut,copy,paste items to linked list. the items of the list are displayed in the list control.Hence by clicking on the item in the list control we should be able to copy the item in the cell of list control and paste it into any cell. this should also make proper changes to the linked list too.
0
303
thread by: raniyesudas | last post Mar 4 '06 by: raniyesudas
In our project we have to use pop up menu to cut,copy,paste items to linked list. the items of the list are displayed in the list control.Hence by clicking on the item in the list control we should be able to copy the item in the cell of list control and paste it into any cell. this should also make proper changes to the linked list too.
0
324
thread by: raniyesudas | last post Mar 4 '06 by: raniyesudas
In our project we have to use pop up menu to cut,copy,paste items to linked list. the items of the list are displayed in the list control.Hence by clicking on the item in the list control we should be able to copy the item in the cell of list control and paste it into any cell. this should also make proper changes to the linked list too.
2
3,529
thread by: fouxman | last post Mar 4 '06 by: Malcolm
There's a relatively new product in source code spell checking area that should help developers keep their code and GUI spell-clean. It's called Source Code Spell Checker by Parasite Software - http://www.parasitesoft.com/scsc.html
31
3,055
thread by: Zero | last post Mar 4 '06 by: Flash Gordon
Hi everybody! Is it possible to write a value into a bit field which initializes all bits? example: struct Field { unsigned int Bit1 : 1;
10
2,493
thread by: vurdlak | last post Mar 4 '06 by: CBFalconer
Learn C programming from these daily lessons I found. They're eleven days ahead of you already so get busy... http://www.visualcmaniac.com
12
5,794
thread by: leaf | last post Mar 4 '06 by: leaf
Hi, How to call function at runtime, based on a struct that contains the information for the function call: struct func_to_call { int function_id; // function id to call unsigned int nparams; // number of parameters unsigned long* parameter; // the parameter(s) to pass }
1
329
hi
thread by: q67762042 | last post Mar 4 '06 by: Phlip
hello, i want to put stl to share memory, how can i do to implement my work..
1
335
thread by: sudhir | last post Mar 4 '06 by: Richard Heathfield
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. 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. Or neither is true.
3
3,009
thread by: linq936 | last post Mar 4 '06 by: Alf P. Steinbach
Hi, I am writing my own integer data type because I need to check overflow. For example, if I have 2 very big unsigned int to add up, there might be overflow happening. So i will have my own integer type and override operator + and *. All the data I will operate are 32 bit integer, so inside my data type, I can use "unsigned int". Or I can...
1
1,730
thread by: pkpatil | last post Mar 4 '06 by: Artie Gold
Hi, I recently saw a code with a mix of C & C++, wherein a C++ file was calling a C function dropping the last argument. The code was similar to below: -------------------------------------------------------------------------------------------------------------- cfile.c --------- C_Fun(int arg1, int arg2, int arg3) { // C function with...

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.