Beginners - March 2014 (Page 32)

Function template fails accept strings
 
Hello guys, I've made a function template that will create a vector of whatever variable type is passed to it, it works great with ints and doubles, but fails...
[2 replies] Last: Thanks Null! (by chickens7)
by Cienjz
Maze Solver (Right Hand rule) (1,2)
 
it didn't run, and what am i doing wrong? thanks #include <iostream> using namespace std; int main(){ const int SIZE = 12; int startX = 2; int...
[27 replies] Last: In main, you print out the maze every time with your "for" loop. Also... (by kooth)
by Ram1
Help with array
 
Declare a multi-dimensional integer array with 10 rows and 20 columns with initial values of each element in the array being 0. Use a while looping statement to...
[4 replies] Last: Thank you, it's just too hard I'm trying to learn it but our teacher n... (by Ram1)
Cin and Structs
 
Hello. I'm still very new to C++ and this is one of the first programs I've tried writing on my own. I'm trying to read input from the user and store it in a me...
[4 replies] Last: http://en.cppreference.com/w/cpp/io/basic_istream/sync may be more tru... (by Cubbi)
How to alter specific bits of a short type field?
 
I am very new to C++ but have to update a small utility in C++ to send some communications traffic as part of another progam. So what I have is a 16 bit short ...
[4 replies] Last: Thank you! This makes the result and how it got there clear even to th... (by maddogs)
visual C++ programming question [forms]
 
can u give me some tips about the visual programming of C++ ?? i wanted to review the forms how they work .. and i can see its much much harder then in pasca...
[no replies]
cannot convert param from XXX to const XXX
 
Hello, I have compilation trouble with following wiki example : http://www.itk.org/Wiki/ITK/Examples/NeedDemo/ImageProcessing/AdaptiveHistogramEqualizatio...
[no replies]
in bestimmte Zeile springen fgetpos / fsetpos
 
Hallo, ich habe ein Problem mit fgetpos(FilePtr, &pos) und fsetpos(FilePtr, &pos) und zwar lese ich eine Datei ein, speicher mir mit fgetpos...
[no replies]
Need help with creating a loop!
 
Hello fellow coders! I was wondering if someone could help me with looping the following. I need the "deposit" to be looped with the compound interest "rate"...
[1 reply] : This http://www.cplusplus.com/doc/tutorial/control/ describes the loop... (by keskiverto)
by chofs
vowel counting error
 
hey guys i have a problem running this code of vowel counting my code is only reading the first line only can sme1 please help...thanx in advance #includ...
[1 reply] : you are not incrementing i EDIT : btw, i think the word paramete... (by nvrmnd)
delete operator
 
Even after using delete operator, it is printing the value of 4th person,then what is the use of delete operator? #include<iostream> using namespace std; cla...
[6 replies] Last: Thankyou all, I got it.. (by Tushar Kathuria)
by dean93
Help needed
 
My program wont run it keeps giving me " error C2668: 'cos' : ambiguous call to overloaded function" & " error C2668: 'sin' : ambiguous call to overloaded func...
[4 replies] Last: Oh and <math.h> = <cmath> according to my professor. Your professor... (by MikeyBoy)
by Cassie
PRINT INDEV C++
 
HI GUYS. I WANT TO PRINT THE OUTPUT OF MY PROGRAM. HOW CAN I DO THAT? THANK YOU.
[3 replies] Last: If you're talking about printing out the output of what your program d... (by Volatile Pulse)
ARRAYS ???
 
Hello guys, I have some problems with storing and extracting data from Arrays. I have this matrix B : 1 2 3 4 5 6 1 2 3 4 0 0 5 6 0 0 0 0 1 2 0 0 0 0 3 4 5 6 ...
[6 replies] Last: C++ standard library. This website has reference documentation for it... (by keskiverto)
by kdeng
Passing more then one array parameter into a function?
 
So I know how to pass one array parameter into a function but the question is how would I do it if I needed to pass more then one array parameter. As an example...
[2 replies] Last: I agree with Volatile Pulse, I see no issues here. also, I see that o... (by Jaybob66)
checking equal object
 
how can i check that two objects are equal or not.i have a problem in my code.what should i do? i think both my get method and equal method are wrong. #inc...
[2 replies] Last: Your == operator is only comparing pointers, it's checking that the 2 ... (by Jaybob66)
argv pick up characters
 
trying to figure out how i can get the argv to pick up on certain characters and allocate them a function, so to be able to get 2 numbers argv and argv a...
[1 reply] : You are trying to compare floating point number to chars. you can acc... (by MiiNiPaa)
Why is this Breaking?
 
My Program keeps breaking whenever I run the file. It will only read the fist line of the file then break. PLEASE help. #include<iostream> #include<str...
[1 reply] : You have a few issues here. sizeof(player) isn't going to be 20, yo... (by Volatile Pulse)
by Airyk
How do I print contents of a vector<vector<Tiles>> where tiles is an object
 
How would i print the contents of a vector<vector<Tile> where Tile is a pointer to an object? this is my code up to the point where im having the issue. v...
[5 replies] Last: You don't want to write literal 79 in your code at this point. You wa... (by keskiverto)
how to use namespace
 
I had developed file ll_namespace.h and put it in to includes in Eclipse namespace ll_namespace { struct ll_pkt_struct { sc_uint<8> pr...
[2 replies] Last: As long as you #include "ll_namespace.h" you would use it by doing t... (by Volatile Pulse)
March 2014 Pages: 1... 3031323334... 79
  Archived months: [feb2014] [apr2014]

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