General C++ Programming - February 2012 (Page 21)

AVR Programming?
 
i have no idea about microcontroller programming... any one have anything about it.... any articles ?
[no replies]
Accessors for char*
 
Hi all I'm currently learning C++ from a book, however I cannot understand why the following accessors are different: int getAge () const {return itsAge;}...
[8 replies] Last: I am also trying to come up with syntax that should be blocked by t... (by roberts)
Boost - to_iso_extended_string - invalid pointer
 
This line of code is giving me an 'invalid pointer'. std::cout << to_iso_extended_string( end_date ) << std::endl; The correct date is printed, but the ...
[7 replies] Last: Found it, but really don't know what to do about it. I guess see if I ... (by bajaexplorer)
need help reading xml file
 
this is my code so far #include <iostream> #include <cstdlib> #include <string> #include <fstream> using namespace std; int main() { string line = " "; ...
[2 replies] Last: 1) Scan each string for '<' symbol 2) if it is find first closing sym... (by tfityo)
need help putting my program in functions
 
i'm having trouble putting my program in functions #include <iostream> #include <string> #include <cstdlib> using namespace std; int main() { ...
[1 reply] : initialize the 'i' to 0: for(int i = 0; i < ampm.length(); i++) ... (by Vins3Xtreme)
820th number in a list messes up
 
I can't display my whole file, its too complicated/too big to show. I know that may impede things but I think this may be a fundamental issue with these codes....
[9 replies] Last: Sans the error question, this matter appears to be resolved. The list... (by dalydir)
by Jikax
Saving process state
 
Could anyone explain to me how process states are saved and later restored in a real time os for a micro controller? I figured out the local variables etc ar...
[4 replies] Last: Ok, so just save all local data of the function. But you do you do thi... (by Jikax)
Camera ...For Professional
 
Hi ,, I would Like Know how I can Control The camera to taken A specific part of personal body ..
[1 reply] : If this is Windows, the API for this is Windows Portable Devices: htt... (by webJose)
What does "* & " mean in a parameter?
 
This is a problem listed at the end of a book I've been reading and this one really stumped me: In some circumstances when implementing recursive operations on...
[3 replies] Last: It signifies a reference to a pointer. Wazzak (by closed account zb0S216C)
by Perman
Problem with SetTimer() in another cpp file than main.
 
I have a problem with SetTimer when I split the main (Test13.cpp) file up into 3 files. Test13.cpp, display.cpp and general.h. It works fine when all is in one ...
[9 replies] Last: I'm 99% sure that the variables you declare as extern in general.h are... (by clanmjc)
by DBarzo
Construct an object from its base
 
Hi, I have this situation: class Base { private: map<UINT, string> m_MyMap; string m_MyString; public: Base() {}; Base(string str) ...
[5 replies] Last: What about just Derived(const Base& obj) : Base(obj) { } this us... (by mik2718)
c++ help with rainfall arrays
 
here is my question Write a program that works with monthly rainfall data for a particular city. This program uses the monthly rainfall measured in inches fo...
[1 reply] : hi First see following instream>>month >>year >>rainfall[… while(... (by therockon7throw)
Create function with name from (Char*) ?
 
I need to create a function with name from const char * Like createFunc("makeMe"); lead to the creation of makeMe(); Is this possible ?
[4 replies] Last: Try instead dynamicall binding of functions, may be some thing like h... (by therockon7throw)
Resistor Color Code Calculator
 
I need with this assignment: Write a C program that asks the user to enter a resistor value (in Ohms). The program will then determine the color bands f...
[2 replies] Last: I am trying to assign the individual resistor values of the array to t... (by kwinrow)
by MH4
OpenGl and C++ music - How to play 2 music at the same time?
 
Hi guys I'm wondering if you guys know anything about how to play 2 sounds the same time? Currrently I'm using irrKlang and i dont think that i can play 2 sound...
[1 reply] : Hi, No idea . no experiences with OpenGL (by therockon7throw)
Game inventory. How?
 
i am wondering how inventories are made in video games. I have come up with a few different methods but I'm not sure which would work. My first theory is to ...
[4 replies] Last: You pretty much have the idea, an inventory system would just be a lis... (by Computergeek01)
ifstream check if empty
 
Is it possible to check whether a line is empty in a stream? This is the part where I like to be more picky then just taking every row: while ( infile.good(...
[3 replies] Last: Dude, the ws stunt is even better. The string is supposed to be withou... (by liquidfuzz)
create my own basic vector class using realloc
 
First off thanks for any help I can get here, I'm pulling my hair out in frustration with my lack of knowledge on this subject. My professor has asked us to ...
[5 replies] Last: Thanks JLBorges ... (by bluecoder)
searching through massive list of words
 
i have this huge group of words, close to 45,000, that i need to be in some sort of data structure that i can access easily. i need to be able to sort through t...
[11 replies] Last: should i use a for loop or something? Definitely use a loop... /... (by clanmjc)
Macro for Separating String
 
Is there way to split a string or otherwise, get each character of a string using a macro? #define macro(x) '#x ', '#x ' macro( somestring ) Either to pu...
[2 replies] Last: Well rather than having to type: 's', 'o', 'm', 'e', 's', 't', 'r',... (by closed account o1vk4iN6)
February 2012 Pages: 1... 1920212223... 43
  Archived months: [jan2012] [mar2012]

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