General C++ Programming - March 2012 (Page 38)

Is there any advantage to this?
 
Say I have this... struct st1 { vector<long> vec; // Has millions of elements }; vector<st1*> vec_pst1; I want to access st1::vec many time...
[4 replies] Last: No, the principle of members to pointers is to access members at offse... (by aquaz)
BIN to DEC
 
Hello I looked all over the internet looking for a program that converts a BINARY value (01111100) to a DECIMAL value (124). Can someone help me whit the c...
[9 replies] Last: You need to learn some C++ first. http://www.cplusplus.com/doc/tutori... (by Moschops)
not a user input
 
Hello I have the following problem. I wrote the code, but it works whit a user input. I want to change it so the user input is gone and only the programmer...
[no replies]
Problem catching exception
 
Hi everyone, i have the following code string server::recibirBuffer() { string rtn; char buffer[MAX_BUFFER+1]; DWORD bytes; fd_set ...
[14 replies] Last: Ok so my app is like a bridge between a client app (Written in Actions... (by naderST)
Link List Process
 
How to write a c program for creating and terminating process using by link list?
[no replies]
Pls Tell me how to assign and and access the boost variant containing the vector and structure
 
Dear friends, Can any one tell me how come out of this problem. in my big code I am using the following simple code, before I porting in to ...
[15 replies] Last: I suggest you to read this tutoriel first: http://www.cplusplus.com/do... (by aquaz)
How to execute clrscr() ?
 
How to execute clrscr() ?
[3 replies] Last: Read this thread http://www.cplusplus.com/forum/beginner/49642/ (by tfityo)
Snake and Ladder
 
Please suggest a snake and ladder codes. Thank You !
[2 replies] Last: #include <iostream> #include <string> using namespace std; int mai... (by MrHutch)
How do I add elements to the map of deque of classes?
 
Hello, I am kinda stuck here. I'll appreciate some help -- TIA. #include<string> #include<deque> #include<map> using namespace std; class InfoCla...
[3 replies] Last: I had to re-open this. How do I insert a new element without using key... (by vincegata)
decimal to binary
 
i am using "bitset" to convert decimal to binary like... int no="192"; cout<<bitset<8>(no); output: 11000000 i wana pick its second bit which is "1",ho...
[2 replies] Last: thanx peter. (by umair37)
by mar11
Insert member variable at compile-time
 
Hi all, consider the following case: Given a various number of child classes which inherited form basic class. I define an app-class which contains a template...
[5 replies] Last: mar11: You shouldn't need to. whatever you need should be able to be... (by Disch)
Locating dynamic pointer
 
I know this isn't strictly related to C++ programming but I could not think of anywhere else, if anyone knows of a better place then please provide a link. F...
[4 replies] Last: Well thanks for trying anyway, do you know of any sites where I might ... (by awsdert)
Error
 
what is clrscr() ??? is there such a function?? Why does it make my program error?
[1 reply] : what is clrscr() ??? It's a function provided on some systems. is ... (by Moschops)
Linking Problem using makefile.
 
Hi everybody. I got an error message when I used this makefile, otherwise the project compiles perfectly without this makefile. It look like the makefile isn't ...
[1 reply] : bin/obj/%.o: $(SOURCES_FILES) $(INCLUDE_FILES) $(CXX) $(CXXFLAGS) -I... (by ne555)
by chaka
Send an email in c++
 
Hello...Im wrinting a program and I need to send a simple email within intranet. I have no idea how to do. Could somebody help me please?? Thanks
[10 replies] Last: #define _WIN32_WINNT 0x0501 #include <iostream> #include <string> #i... (by Texan40)
How will I update outside a void function?
 
I'm making a "snake and ladder" program and I'm having a hard time understanding the void function. For example. I will make a void function for my first player...
[1 reply] : http://www.cplusplus.com/doc/tutorial/classes/ http://www.cplusplus.c... (by ciphermagi)
by fanfan
error on simple math
 
I wrote a program and find and this error and I don't know why. Visual C++ 2010 #include "stdafx.h" #include <iostream> using namespace std; voi...
[9 replies] Last: So far, this error appears when the remainder is assumed to be 0. Well... (by fanfan)
copy string into integer variable
 
how to copy string into integer?? like.. string str1="12345"; int no; no=str1;
[2 replies] Last: thank you vlad:) (by umair37)
by snova
Iterator accessing problem in vector
 
Hi everyone, While using iterator in vector template, I am facing compiler error template <typename T> class CTest { public: void Insert(T& valu...
[6 replies] Last: Thank you so much Peter87. (by snova)
unable to 'make' curl library
 
I'm not able to 'make', i get the following errors : In file included from base64.c:35: setup.h:58:21: error: vxWorks.h No such file or directory setup.h:...
[no replies]
March 2012 Pages: 1... 3637383940... 49
  Archived months: [feb2012] [apr2012]

This is an archived page. To post a new message, go to the current page.