Beginners - December 2013 (Page 11)

Sorting a vector of structs
 
Hi, in my C++ program i have a vector (lets name it "fooVector") which holds many elements of a stuct (lets name it "FooStruct"). struct FooStruct { ...
[6 replies] Last: There's some useful advice here. Real-world problems can require sorti... (by Chervil)
Need help
 
List all the prime numbers between M and N. input 2 5 Output 2 3 5
[10 replies] Last: @Stormboy I need it in a contest! AND THANKS!!! (by Albo Coder)
pointers
 
1. How many contiguous "blocks" of addresses does compiler initialize to a pointer ? Like when we initialize an array we tell how many blocks of addresses we wa...
[3 replies] Last: It's integer's arithmetics. Each data type hold some space(e.g. char... (by MatthewRock)
Need Help with Game Development
 
Ok. So i am programming a text RPG. yea another one of those lol. I am having issues with skills. so lets say you have certain skills for certain classes ...
[10 replies] Last: You practice best when you write code. However, before you start writi... (by MatthewRock)
by layanM
help :(
 
can someone help me with thses qs :( tomorrow is my final lab :( A function initialize(…) of type void that takes as parameter a one dimensional array o...
[3 replies] Last: [quote=SlothFan] @Rich1 This isn't going to teach OP anything at all.... (by closed account NUj6URfi)
Quick Question.
 
I'm kind of new to 3D Graphics and i need help launching CMake, any help? ~ Thank you.
[1 reply] : if it is installed you should be able to type in make or cmake in your... (by Script Coder)
by mabbia
filing
 
need help with filing. how to make a file? and what function should i use in order to read a file character by character. and how to end file..
[1 reply] : http://www.cplusplus.com/reference/fstream/fstream/ (by Cody0023)
Fat problem with Ifstream on a member string!
 
Im about to program a game with a CPlayer class. It looks like this: #include <string> #include <fstream> #include <iostream> using namespace std; ...
[3 replies] Last: BTW, you're missing a closing parenthesis in line 9 (by tipaye)
soting..
 
Hey guys I got two questions , please anser , what's the difference between when a function takes a variable with * " pointer " , like this : void function(int...
[5 replies] Last: Thanks guys , it worked , I think the program was running fine the onl... (by Cutefriendzoned)
by Kanyl
Questions about creating a game, with HGE!
 
Hello! Our class has been asked to create a game in C++, with the HGE library, now during the holidays. We got some requirements to fulfill to pass the cours...
[2 replies] Last: HGE seems deserted ... since 2008. You could use polycode (if it wasn'... (by closed account iAk3T05o)
Turn numbers into English text......URGENT!
 
I have been given a practice problem to implement the source code which turn numbers into English text . I would appreciate if someone could explain this to m...
[6 replies] Last: Another variant using functionS : #include <string> #include... (by SorinAlex)
Help with pointers and vectors
 
Hi everyone, A little background: I'm new to C++ and am having some issues with an assignment involving vectors and pointers. I have seen similar questions ...
[2 replies] Last: Thanks NT3. It feels better to be able to dive back into things with s... (by jrstuck)
this
 
Why is there a problem i am trying to find adress of w2 by passing it through an object of w1 class nothing { private: int x; public: void reveal...
[5 replies] Last: why is the function requiring parameter but not using it ? Good poin... (by Sharan123)
string
 
how to make a program which take two string input and tell if a string is found in other string ?
[8 replies] Last: #include <iostream> #include <string> #include <cstring> #include <al... (by JLBorges)
fstream project 2
 
I find some conceptual problem this code works when different file is made for .txt int main() { int n1 , n2 ,n3 ; ofstream offile("Num.txt"); ifst...
[2 replies] Last: It writes something in it now but there is alot of garbage value in th... (by Sharan123)
by saraA
Finding the maximum number using array
 
I want to find the maximum number using array this is my code I don't know what's wrong with it [/#include <iostream> using namespace std; int m...
[3 replies] Last: #include <iostream> using namespace std; int main() { int N ,num ,max... (by Chriscpp)
Crashing program because of one class
 
I am developing my first game with SFML 2.1 and am trying to do it efficiently but when I run it I get an error status of 255, in other words it's crashing. It ...
[2 replies] Last: Thanks for your help! I would've never solved that myself. I will try ... (by bacondude95)
by wolfv
undefined reference to `vtable for KL'
 
Please explain this compile error: D:\debug>g++ tester.cpp C:\Users\wolf\AppData\Local\Temp\ccXUxmzL.o:tester.cpp:(.text$_ZN2KLC1Ev[__ZN2KL C1Ev]+0x18): undefi...
[2 replies] Last: Thank you ats15. You were right. This Makefile compiled it: all: t... (by wolfv)
by Teemo
2 d Arrays
 
d) Write the definition of the function copyGamma that sets the elements of the first row of inStock to gamma and the remaining rows of inStock to three times...
[13 replies] Last: ohhhhh my godd it finnaly works thanks Duoas your awesome i... (by Teemo)
need help!! pow(x,y), array
 
i want to display the power 3 of 5th number entered. but output is power of...: 0 can someone please help? thank you -----------------------------------------...
[3 replies] Last: int variables cant hold fractions...you will need float,double variabl... (by Cody0023)
December 2013 Pages: 1... 910111213... 69
  Archived months: [nov2013] [jan2014]

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