Beginners - March 2014 (Page 74)

why is this code not working?
 
so i just want to know why this code is not working...i know the problem is in the function createUniqueVector...but after looking and looking i still can't say...
[4 replies] Last: thats right coder777 and Peter87...those petty petty things...thanks g... (by donvigor)
by Rockyy
array with dynamic string
 
Hi I am having a string called "Temperature" and i want to create an array which hold the value Temperature1,Temperature2,Temperature3..so on string name =...
[1 reply] : You do now attempt a ??? operator+ ( const char *, int ) Your code c... (by keskiverto)
Multiple files/Compilation error
 
Hello all, When compiling the following files, the error that I get is: In function `operator<<(std::basic_ostream<char, std::char_traits<char> >&, ArgSe...
[10 replies] Last: > Unfortunately I am not able to copy and paste the files in their ful... (by ne555)
how to use a union
 
So I'm going to get right to the point asking what I need to know. I'll explain the reasoning below. I am new to c++ and not very accustomed to unions and struc...
[2 replies] Last: > is this possible? Yes. Any object may be examined as a sequence of ... (by JLBorges)
c programming help
 
Hello i am making a level editor for my console game in c and cant seem to get file Input/output to work this code compiles with no warnings or errors but ...
[4 replies] Last: thanks! (by tomdacat)
New excersise
 
I stopped coding for a while because i don't have an idea of what program to make. Can anyone give me an idea?
[1 reply] : If you want a couple ideas to practice, you can find some exercise her... (by Zhuge)
Need help implementing deque functions
 
I have an assignment where I have to implement the member functions for a deque class. I've got most of them, but I'm completely stumped with the second erase f...
[1 reply] : The vector has insert: http://www.cplusplus.com/reference/vector/vect... (by coder777)
HELP!!!!!!!!!! outputting primes within multiple sets of numbers
 
I am suppose to calculate and display the number of primes in the first 50 “chiliads”. I can easily find a prime or count of primes, but I cannot display t...
[2 replies] Last: I wonder where the problem is? Take this: long primeCount(long x, long... (by coder777)
bool true or false
 
am reading this piece of code and am having a lil tough time with line 14.. I have if not dup... which should mean if dup is different from the value of dup at...
[8 replies] Last: is ok the ideas man...I've also adopted your way of identation long ti... (by donvigor)
Fullscreen
 
Always when programs run they don't open in full screen by default. You must go to properties an change the settings. But i was wondering if there's a way you c...
[5 replies] Last: Thanks everyone. I will click on the solve button now. (by jasongog)
How to prompt user for multiple if statements.
 
Hello everyone, First questions on this forum, and i am very new at C++ and programming so forgive me if i seem a bit dumb. I need help wit...
[5 replies] Last: Switch is awesome it makes things 10 times easier for character choice... (by ssjaditya)
Templates!
 
I had to rewrite programs to make that work with a template. I have done this, but in the directions it says I need to specify requirements on the template par...
[3 replies] Last: > I need to specify requirements on the template parameter type, > an... (by JLBorges)
Number Loop for .625 then 1.625 then 3.625 and etc
 
I am a noob and I need help with a number loop starting with .625 then to 1.625 then 3.625 then 5.625 and so on. Can anyone help me with this? double co...
[1 reply] : include <iostream> int main() { // .625 then to 1.625 then 3.625... (by JLBorges)
References
 
I'm supposed to create a function that takes a char& argument and modifies that argument. In main, print out a char variable, call the function for that variabl...
[3 replies] Last: Well you are welcome! (by eyenrique)
Searching and Replacing in Files
 
Hello pro's, I have a problem with this project I'm working on, the code involves searching for and replacing a structure in a binary file. I have written a si...
[no replies]
const to non-const
 
Hi forum, I am using a third-party API function that returns a const reference as follows: const compute::buffer& getReadBuffer() const; B...
[no replies]
template specialization
 
How can I make a template specialization for pair? Normally I did : template<typename X,typename Y> void temp() { pair<X,Y> temp; } template<> ...
[6 replies] Last: 1. Do not specialise an entire class if all that is required is differ... (by JLBorges)
Can't Create Static or Const Data Members
 
I have tried reading different descriptions of how the declarations of these variables are made and how they operate, but they don't seem at all clear to me. Ac...
[1 reply] : I figured out my mistake. I carelessly defined my class within main. (by ldelsignore)
by Huppa
Getch(); to terminate, or continue loop
 
I'm having problems with ending the loop/program. What is it that I'm doing wrong that it just keeps looping no matter what I type in? //inches_conversion.cp...
[1 reply] : First of all, it should be #include <iostream> // No .h //#include <c... (by long double main)
Array Help!
 
In my program assignment, I have to write a template sort routine using insertion sort algorithm. Then I have to test using array of primitives, and an array ...
[3 replies] Last: @long double main and @MiiNiPaa thank you! (by giraffe1234)
March 2014 Pages: 1... 7273747576... 79
  Archived months: [feb2014] [apr2014]

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