Beginners - January 2011 (Page 35)

Macro
 
#ifdef __cplusplus extern "C" { #endif What Does Above macro means
[1 reply] : http://msdn.microsoft.com/en-us/library/0603949d(v=vs.80).aspx In C+... (by hamsterman)
strange padding in printf?
 
so i got this code. #include <stdio.h> #include <stdlib.h> int main(int argc,char* argv ){ char H = 0xAB; printf("%X\n",H); } and i expec...
[1 reply] : char is 8 bit signed. So everything 0x80+ (128+) which has the highest... (by coder777)
by Faff
What to do to become a pro programmer?
 
Hello So far if read a whole C++ beginners book ( from Herbert Schildt) experimented with Visual C++ Forms, Visual Basic Forms, started HTML stuffs, curren...
[7 replies] Last: Thanks for the many replies :) But well , so far I'm kind of workin... (by Faff)
comparing integers in an array
 
hey all! I need to somehow compare integers in an array to later print them out from highest to lowest this is how i input them #include <cstdlib> #i...
[5 replies] Last: for that you can use a class: e.g. class D { public: D() : index... (by coder777)
by RaiSta
array declaration and initialization in classes
 
Hello knowledgebearers out there, just visiting a training course in c++ I neither can solve nor find any hint within the cplusplus-site regarding the follow...
[4 replies] Last: Sorry, my description might be confusing (I'm not a native English-spe... (by RaiSta)
C++ function for average not working
 
hi i am trying to make a function to display an average of an array. I am using Microsoft Visual C++ Express 2010. here is my code #include <iostream>...
[2 replies] Last: doforumda > int size = sizeof(a) / sizeof(int); I'm newbie on thi... (by lionishy)
How could I execute the exe file without dll?
 
I am using an open library which called openCV to do some image processing project. It is a convenient library, but it rely on dll very much, when I need to s...
[4 replies] Last: They enforce this simply by providing only the dll itself, import libr... (by modoran)
Rank Array
 
I'm trying to make a function to rank all the values in an array of doubles. For example, I'd like [0.003,0.001,0.002] to be returned as [1,3,2]. I'm hav...
[6 replies] Last: I solved it myself. This seems to work pretty well: int* rank(doub... (by lovefromussr)
the data in a text file
 
I've been stuck on this for weeks trying getline, read, seemingly everything. It's ridiculous :P So can someone please answer me, in the following code, how ...
[16 replies] Last: I'm now trying fin.get() and a stringbuf to try and make this work ... (by closed account 4Gb4jE8b)
Integrating other technologies with c++
 
How can I start integrating other technologies with c++? I can program in c++ fairly competently, but how can I use it to start making cool applications? All I'...
[2 replies] Last: Try C sharp. C# is designed to work with Microsoft's .Net platform. M... (by thecodewall)
special kind of output
 
i understand the basics of cout and the sleep() command but i was wondering if there was an easy way to make my program output one character in a string out to ...
[4 replies] Last: Well, you obviously create a function for that. Doing it manually woul... (by Athar)
C++ Start Up
 
Ok, I've browsed the forum and didn't see this topic, if it has been posted please delete this thread and accept my apologies. I've decided that I want to t...
[12 replies] Last: try this, maybe this help. http://codewall.blogspot.com/2011/01/cre... (by thecodewall)
by acorn
Virtual destructors
 
Can someone elaberate a little on virtual destructors. What happens when you don't use them ect. I skimmed over the tutorial section but couldnt find any inform...
[14 replies] Last: Yes, gdb is actually quite popular. My current company uses it extens... (by sohguanh)
POKER SOFTWARE FEEDBACK WANTED
 
I would appreciate if anyone could check out my programs and give some feedback. I appreciate any ideas or suggestions that you could give me. The source file...
[no replies]
Strings with spaces?
 
This is my program: #include <iostream> using namespace std; int main() { string name; cout << "Welcome, What is your name?" <<...
[2 replies] Last: Thanks so much! (by tehrealbinglebob)
timer
 
i need to make a program that says how long the program has been open in seconds this is what i got so far but its not working. #include <iostream> #includ...
[1 reply] : clock() gets the amount of time in milliseconds since the program st... (by quirkyusername)
before learning opengl/sdl
 
do i need to learn a gui before i learn opengl/sdl??
[5 replies] Last: I just assumed he meant widgetry when he said GUI, but you're right. (by Disch)
Suggestions on how to use classes
 
Some background info: I'm taking three online courses in programming (all free, they're for my high school diploma). The first one is 2 weeks, the second is 3 w...
[15 replies] Last: 1) It marks the function as a const member function, which means it is... (by Athar)
compilers and applying libraries to your source
 
hi, i want to know how to apply libraries(devel & runtime) to the compiler while compiling certain source files that will need those libraries to compile I a...
[1 reply] : just bumping (by kash kow ken)
Removing text from a file with <fstream>?
 
Hi, I am trying to remove text from a .txt file, but I can't seem to find a way to do so. The way I'm currently 'removing' parts of the text is: 1) Store ...
[4 replies] Last: The writing to a second file first is because I want to have a backup ... (by Metalspy)
January 2011 Pages: 1... 3334353637... 42
  Archived months: [dec2010] [feb2011]

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