Beginners - January 2011 (Page 26)

VPATH in makefile
 
I've source files in different directories. Therefore I should use VPATH in the makefile for compiling all together. But it does not work. It simply does no...
[1 reply] : Are you expecting lines 4 & 5 to pay attention to VPATH ? The wildc... (by PanGalactic)
by Faaz
Adding an Array in C++
 
hey im really really stuck on how to add arrays struggling hard to add some arrays i jus need some examples on how to add simple arrays and work the average out...
[6 replies] Last: Thankyouu program is working now and even average is showing THANKS AL... (by Faaz)
graphics libraries
 
what graphic libraries do u guys think would be good for starting game programming? also....any good books u would suggest?
[5 replies] Last: well i put the pic file in different places to try and make it work bu... (by paki programmer)
C++/Programming Terms
 
Can the mods please sticky this thread or put it somewhere appropriate where it can be constantly updated? Wouldn't it be useful to make an updated list of a...
[1 reply] : Wikipedia has them explained quite well I'd say. to save you from the... (by hamsterman)
string , strcpy , and arrays
 
what's wrong with that ?? void ajouter_mat() { int i,k,r; char s ; cout<<"\nentrer votre code Monsieu...
[4 replies] Last: I'm pretty sure we know what it means, it's just not a good idea to do... (by cran)
How to print Arial symbols to the console? And array problem.
 
Is there a way to print Unicode symbols(Arial font) to the console? Because I always get '?' instead. Also, when I set a 2D character array to have a unicode sy...
[1 reply] : unicode is larger so will take up more space then a char, you might ha... (by cran)
Generating Specific Random Numbers
 
I need to generate a specific set of random numbers. For instance,I need a random number between 4-7. I understand how to generate a random number from 0 - wh...
[3 replies] Last: np, if you haven't done it in a while, the brain gets rusty.. (by cran)
by Scharl
[VS2010] Program using libcurl only works when compiled as Release
 
Hello. I am working on a pretty big learning project which uses libcurl to download data. My problem is that my code does not work when compiling as Debu...
[no replies]
error C2181: illegal else without matching if
 
Hello everyone, I am on my second week of a C++ programming class, and I keep getting this error while working on Visual Studio 2008. I know that it is probably...
[2 replies] Last: Thank you so much! Problem fixed. (by Abelville)
Choosing the right Graphics API
 
Hi, I've heard of a lot of different graphics APIs being shot out here and there. But no one really broke down which one is the best and why it is. I hear th...
[3 replies] Last: Same graphics. (by Return 0)
Classes with more than one object
 
I am working on an overtime pay project, and I thought I was doing well. Unfortunately, my program is not displaying what it should. It's not completed yet, but...
[11 replies] Last: In general terms, it depends what you're using as your console. In spe... (by Moschops)
by ToniAz
If statements
 
Hello Everyone! I'm trying to create a function, or add something to the body of my main() that, whenever I pass an input integer, returns me a correspondi...
[2 replies] Last: To add to hamsterman's reply: #include <iostream> #include <strin... (by some random dude)
by Elnaz
understanding dynamic matrix declaration
 
Dear all, It's been a long time that I haven't done C and I've forgot almost all about it. I'm trying to catch up with it! Well, first I need to understand on...
[1 reply] : Let's assume a 2x3 matrix, sizeof(double) = 8, sizeof(double*) = 4. ... (by hamsterman)
overloaded operators dependencies
 
When you make a Class Class::operator+(Class a); function does it need an assignment operator overloaded to work? I mean using A = B + C // all of the sa...
[1 reply] : No you don't. The default compiler generated one will work in this cas... (by nimitzhunter)
nest for loops and random numbers
 
I am teaching myself C++ and decided to make a dice program. The program will ask the user for the number of dice they want and how many sides on the dice. For ...
[2 replies] Last: Doh! Seems obvious now. Many thanks for the help. (by brainpann)
SFML - linking the library
 
I've been wrestling with it for two hours now. Apparently I need to link the SFML library before I can run any program... so.............. ........ .............
[1 reply] : i have this problem too... except it's ubuntu 10.04 and gcc compiler t... (by kash kow ken)
Good Compilers
 
I just started teaching myself programming again i dont remember why i stopped in the first place but i have to start from scratch again and thats not a problem...
[13 replies] Last: http://www.youtube.com/watch?v=1XZoKXJpbVg Just wanna share, don'... (by blackcoder41)
is it a bad idea to start with c++ (1,2)
 
i started learning c++ last night and it said it was the hardest so i was wondering if i should start off on learning c++ with no programming experience or shou...
[31 replies] Last: I wish I had taken C/C++ before I took Java.... (by ladykrimson)
Sometimes it works, and sometimes it doesn't
 
std::cout << "Press ENTER to continue..."; std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' ); Why does this only work sometimes? Is t...
[4 replies] Last: Thank you very much!!! (by ladykrimson)
Splitting string into words
 
Here is an example: boy girl good word aa why stuff I would like to basically split this string into words and store them in an array. Here is the array...
[1 reply] : #include <cstring> strtok() to return strings between the delimiter... (by Krisando)
January 2011 Pages: 1... 2425262728... 42
  Archived months: [dec2010] [feb2011]

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