Beginners (Page 66)

subtract one array from another
Hi, i have two arrays a ={2,5,7,9}, b ={5,7} How can i get an array a={2,9} Here is my code, but it...
[3 replies] Last: You could make a third array in the function, then copy all values of ... (by Serious Sam)
by h4ever
best practise to work with path
I get path from command line parameter where path could be written in 4 different ways testdir ./te...
[1 reply] : Isn't this platform dependent? ./testdir should work on Linux, but I d... (by Serious Sam)
Compress array of BCD values /C++
Write your question here. Dears, Kindly I have array of BCD values and I need to compress the size...
[no replies]
by mehak
class Base { public: int m_nValue; Base(int nValue=0) : m_nValue(nV...
[3 replies] Last: Just like the other answers, I see two differences: First optional p... (by Stewbond)
Fibonacci numbers using doubly linked lists
I'm writing up a program to generate the nth fibonacci number, and I have the program working like a...
[3 replies] Last: The normal way to do this would be to use a: class BigInt { public: ... (by cire)
don't know what's wrong, compiles and runs but breaks
I'm trying to count a given text files words and letters, and sort the words alphabetically. It comp...
[1 reply] : You have several functions that promise to return values, but don't al... (by cire)
Can someone explain to me in details regarding this code vector<string> wordlist : dictionary (wo...
[2 replies] Last: I am also interesting about this syntax. I guess it's using C++11 syn... (by h4ever)
by mehak
possible permutations of a string
i am trying to print all possible combinations of a string but em getting garbage values.please help...
[2 replies] Last: oh tht where i made a mistake.tnx alot (by mehak)
Linked Lists in Classes - Program Not Working
Hey there I'm having trouble with coding linked lists as a class. This is my "Lists.h" file: #in...
[2 replies] Last: Thank you sooo much, kind sir!! Fixed my problem, plus, I was getting ... (by TweedleGun)
Random numbers
So i've this problem with this array It is assumed that the values ​​of the array must be ran...
[1 reply] : You need to seed a rand() function, however you will have to add a lib... (by Jakee)
Creating Strings from char arrays
Hello! I have a problem that needs me to load a char array from a file, make every line of that arra...
[9 replies] Last: Thank you. That helped. (by Bluebaron)
Need Help with this simple math problem
Write your question here. I have a formula. PV=FV/(1+r)^n Fv = $250.00 the letter r ...
[2 replies] Last: I figure it out. Sorry I posted too soon. Here is my working program ... (by Youbob1212)
Loading an array
Say I have array ={0}; And I have string line1("HelloHello") How could I load/make equal array...
[1 reply] : First of all, if you're initializing an empty array, you can just do: ... (by Kevin2341)
by Jakee
First Program, Please Review!
Hey guys so I made a Rock Paper Scissors program, you enter an input and a computer chooses one and ...
[1 reply] : int _tmain(int argc, _TCHAR* argv ) That is not a signature for C++'... (by keskiverto)
signed and unsigned types expression
I recently researched that it is better to avoid the use of expressions that mix signed and unsigned...
[1 reply] : Implicit conversions. In your int a {-1}; unsigned int b {1}; auto c ... (by keskiverto)
Problem with dynamic allocation of a struct.
The first allocation was working well but when I coded the second allocation, it is showing an error...
[2 replies] Last: Thanks, it works now! :D (by carlplusplus)
moving a character around a 'board' on screen
So basically, I have a 2d Array that is 3x3. I have made it a class called "Board", and the construc...
[4 replies] Last: @a k n, thank you for your help, all's working well now! (by jaybirdthomas)
by h4ever
how to initiate vector & fill values
I am using C++03 on Windows. I am making program where I parse command line parameters. I created o...
[no replies]
by mekki
hi, i am about to simulate the solar system - the math is done but i have no idea how to convert my...
[2 replies] Last: thx a lot, cheers m (by mekki)
Need guidance for C++ and more...
Hello everyone, I really want to jump in C++ and begin programming with that powerful and beautifu...
[3 replies] Last: Thanks a lot for your replies!!! I find "C++ Primer" a very interestin... (by Greenthing)
Pages: 1... 6465666768... 89
  Archived months: [may2014]

Cannot post in this page. To post a new message, go to the first page.