Beginners - May 2011 (Page 7)

Simple vector odreing question
 
I tried to make a program that order the numbers in a vector, but after I insert the values from keyboard, nothing happens. Can you please help me? #include ...
[1 reply] : Oh dear, nothing is not much... #include <iostream> using namespace s... (by coder777)
by Feronx
Multiple string parses to single line
 
Okay I am working on a bank account program. I am having trouble with the function below, I am trying to get text and variables to go to a file for the program...
[3 replies] Last: The comma expression (on line 14/19 of you original post) is somewhat... (by coder777)
by bbcc
A Question
 
Greetings, Could any one help me with the meaning of hooking an implementation in c++? My second question is about the meaning of the following code: ...
[1 reply] : The second question: this is not a multiplication operator in this con... (by anonymous23323124)
how to
 
if i made a project in vc++ 2010 express and i want to convert it in application how to convert it?
[3 replies] Last: If you want to distribute, you should build in Release Configuration ... (by anonymous23323124)
Mouse Clicks and Locations
 
Mmkay, back again asking a stupid question. How can I make the mouse click a specific location on my screen? For example, I want my mouse to click at 200x100 th...
[2 replies] Last: webJose , can you remove the '.' from the end of the link? (bug repor... (by closed account z05DSL3A)
friends i have 1 question
 
i am making a program to find out average but i must be up-to 10 numbers i made it but it needs 10 numbers if user just want average of 2 numbers he cant use...
[13 replies] Last: thanks all i tried all worked for me and i had no homework i becoz i d... (by binarybot)
Arrays,Pointers and sizeof() operator
 
Hi, I'm trying to calculate length of different types of objects with sizeof(), particularly arrays and pointers.But I'm confused with the result of str1 . ...
[6 replies] Last: Just in case you're (still) wondering how to get the length of str1 ... (by CharlieWoods)
Dynamically changing array size?
 
I prefer to include as few headers as I can, and when dynamically allocating memory, is there a way to do something like this? int index=1; int *array=new ...
[8 replies] Last: It works because the universe likes you right now. Give it a short bit... (by Duthomhas)
const vs define
 
I know there are many reasons why const is better than define for declaring a const. However, wouldn't const actually create a variable in RAM on some platform...
[9 replies] Last: but 100-200 is very reasonable No. Not for constants of the form cons... (by helios)
by Tarazy
how can i make this robot to moves
 
no code
[6 replies] Last: I don't have the time (or will) to rewrite your whole project. I alrea... (by Mathhead200)
by tapir8
Negative 2 and 1 star amazon reviews for every C++ book. Unsure on which one is a helpful book to read.
 
I would really like to read a good C++ book, but every book on C++ Amazon seems to have negative reviews. That really confuses me, because I'm not sure which bo...
[3 replies] Last: h3432 :Wouldn't a book on programming for Windows 95 be horrifically ... (by tapir8)
by giome1
Infix to postfix program does not compile. Help?
 
#include <queue> #include <stack> #include <string> #include <iostream> #include <sstream> #include <cmath> #include "evaluator.h" using std::queue; u...
[1 reply] : [co de] "Please use code tags" [/co de] http://www.cplusplus.com/f... (by ne555)
Program has cintax problems but I dont know what they are.
 
This following program has problems are at the end. I deleted a big park of it, mostly the atbg sub program, so it would fit within the length maximum. #...
[5 replies] Last: Your problem description has a syntax problem... (by ultifinitus)
Blackjack game
 
i have a c++ code for blackjack i have some problems with it First when I compile it the amounts of the cards do not randomize and the scores for the ha...
[1 reply] : i figured out the random number part of my problem (by UrbnCampr02)
Random Chars/Words
 
Okay, I'm pretty sure this subject has been talked over before, but can anyone tell me how to make a random word generator. For example: string Word%rand(pie...
[4 replies] Last: Nevermind, did it a different way: list2 = list[rand ()%3]; if (list... (by Shay9999)
by tonnot
A way to include code 'directly' into a class
 
I want to have some functions ready to be 'injected' into any class. What strategy are the best? Macros ? Another ? 'inline' ? Thanks
[8 replies] Last: All that making a function inline means is that every time their is a ... (by ascii)
Don't get why this wont work. (SDL_surface loading to class)
 
Ok code looks roughly like this: class animation(){ private: SDL_surface* image; public: animation( SDL_Surface* im); void pr...
[3 replies] Last: Might just give you my code to make it easier: The first snippet does... (by chr15chr15)
by tonnot
Any way to write 'pow' using ^?
 
I'd like to use the '^' simbol to apply a pow, but its meaning is XOR ... Any idea ? Can I define a overloaded '^' ?
[6 replies] Last: In some languages b**x is the exponentiation operator. (But not in C... (by Mathhead200)
by tonnot
Can I create a vector[][] from a vector[]
 
I have a unidimensional vector with 10 rows of data I'd like to fill my bidimensional vector with the unidimensional vecto. Using the example, I will have a...
[3 replies] Last: Let me see if I got it right! The vector container has a ctor that al... (by Osmar)
by tonnot
Again problems with an array of std::string
 
I dont know if the best I can to do is to use vector <std::string> instead of array. I have a fast method to pass some std::string values to a function s...
[8 replies] Last: Oh ok, sometimes I just feel silly like that. (by hanst99)
May 2011 Pages: 1... 56789... 48
  Archived months: [apr2011] [jun2011]

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