Beginners - May 2013 (Page 51)

Searching Array help!
 
Can someone help me construct a code that will search this array for max number and region associated with it ? // Here is what I have so far.... #include <...
[1 reply] : You can either use standard algorithm std::max_element declared in hea... (by vlad from moscow)
Open With
 
Hi guy’s can anyone help please. I’m only an amateur programmer and I’ve created my own version of a notepad/text editor for my own use and even thoug...
[2 replies] Last: Thank You L B ( 5588 ) I’ve compiled and tried your code it does e... (by closed account Shp21hU5)
encrypt and decrypt
 
i am new to c++ and my instructor has assigned us the following problem "you are to write a program the reads a file name quote.dat and encrypts it to a file c...
[1 reply] : Choose encryption algorithm first (by MiiNiPaa)
Completely Screwed
 
Hey guys, I'm definitely screwed here and was wondering if anyone would lend a hand. I have 3 programs to write and not a lot of time to do it in. I've been hav...
[10 replies] Last: That's true about not needing functions, but the more work I put into ... (by Rinches)
really new
 
i just began C++ and the tutorial says to write the code (Hello World) however, where do I write this code to make it work, (Windows, C:, remote hard drive)? wh...
[2 replies] Last: Another one is: http://liveworkspace.org/ which compiler is best? ... (by Catfish4)
constructing objects with many points
 
Shape.h class Shape { private: string name; public: Shape(name); string getName(); void setName(string); }; Triangle.h class Triangle: public...
[3 replies] Last: You should manually copy each element one by one. for(int i = 0; i... (by MiiNiPaa)
Question about constructors...
 
Well, i have a question about constructors. I know that the default constructor and the destructor are needed always... but how do i know if copy and conversion...
[3 replies] Last: If you have a pointer in your class you will generally need to define ... (by closed account 3qX21hU5)
by Hepic
Snake console game help.
 
I am making a console game and my logic is "to take the x and y of tail so clean the tail and add one position from the head,the new head." The problem is th...
[2 replies] Last: Oh, you are into BDSM. In that case store all positions of segments in... (by MiiNiPaa)
by yayu
Put object into array
 
I get an error when I try to put a class object into an array. no operator "=" matches these operands operand types are: std::string = Foo My code: ...
[11 replies] Last: That's not the only thing I wanted, but I finally understand what you'... (by yayu)
Two dimensional transformation to correlate (X,Y) pairs in one meaningful unit
 
Hello, I have a 2D Array, where each row is a feature vector. Each feature vector is like: [x1 y1 x2 y2 x3 y3 x4 y4] where, (x1,y1) are coordinates of first f...
[no replies]
by ledzf
Insertion sort alphabetically
 
Hi all. I want to use insertion sort to sort a string array alphabetically. I code the following but data and data never sort correctly, what's going on? Than...
[6 replies] Last: Thank you, Zereo. This take me a long time to digest those code as I a... (by ledzf)
words- separates lines
 
User deliver n. number of words. Print each text character by character on separate lines. Mark starts where new text Please help .tnx
[2 replies] Last: cout .screen hh (by cosa nostra)
Learning to Program - advice?
 
So, I'm currently 16 years old and I'd like to become a video game programmer someday when I finish college. Obviously I want to learn to code. I have no idea ...
[6 replies] Last: I'm 16 just like you and I have recently started studying c++ how to p... (by fmehri76)
dictionary in c++
 
Help to make programm in c++! TASK. Write linked implementation for the deque. Initial value of deque elements are read from file. Deque must include the ...
[2 replies] Last: http://stackoverflow.com/questions/6292332/what-really-is-a-deque-in-s... (by Catfish4)
pointer does not give memory address
 
I got through the tutorial of cplusplus.com on pointers with inserting the code: char a; char *b; char **c; a='d'; b=&a; c=&b; T...
[1 reply] : Well, when you feed a char* to std::cout , it thinks it should prin... (by Catfish4)
How can I use constructor for assignment?
 
HI! I couldn't say what I wanted in the title so maybe the title is a little confusing and non-related. sorry for that! I have a class "Point" and a class ...
[1 reply] : Why your Rectangle IS-A Point? tmp = p (4 , 5) ; This is not call... (by keskiverto)
Help with declaring an array
 
I am getting an error when i try to declare my array with a value from a different array. The issue is that i could change the value of the variable which would...
[2 replies] Last: Trying to do this? compiles fine here, maybe if you give us the error ... (by pata)
by dkhntr
error C2109: subscript requires array or pointer type
 
Hello, and thanks in advance for any help. I'm having a problem with an array that I can not figure out how to fix. It's in a part of the program that's sup...
[4 replies] Last: While you should declare where your going to use it, it is error prone... (by pata)
Please help with prime number.
 
Write your question here. #include <iostream> #include <iomanip> #include <cmath> #include <cstdlib> using namespace std; int main() { //...
[1 reply] : with this code you can calculate prime numbers between the range that ... (by eyenrique)
Array / While Loop / Sum Question
 
I have a void function that takes data from an ifstream, reads the first value, (which is an ID #), and compares that value against the ID# info from an array o...
[3 replies] Last: emp .hours_worked += hours_worked; That does the same as your if-els... (by keskiverto)
May 2013 Pages: 1... 4950515253... 66
  Archived months: [apr2013] [jun2013]

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