Beginners (Page 2)

convert a vector of strings to vectors of char
I have a vector of string which, say, contains three words: send more money I want to convert ...
[1 reply] : Take a look at this thread, the last example: (by AlphaFoxAlpha)
Printing symbols using a for loop
Hello! I am taking my first ever coding class, and we are using C++. I kind of understand how a for ...
[3 replies] Last: If i understand you correctly, then you want something like this: for... (by AlphaFoxAlpha)
Request for thread removals
I have been asked to have the code written in response to my threads removed from the site as soon a...
[14 replies] Last: Twicker is the one to contact, but he may not agree to remove any co... (by Duoas)
Little problem in game
So, the following is a little game I am working on it, all the things are going good but I am facing...
[10 replies] Last: Ok if other are not answering my question but it is good choice not to... (by ZahoorKhan)
Quiz score calculator! Need help!
Hello guys. I have an assignment due soon. I have to read a file and convert it to an array, then I ...
[2 replies] Last: I'm not near a computer right now, but did your code worked? I don't s... (by vremia2)
by phase
Beginner sales tax calculator
I'm not sure how to make a code where I could calculate sales tax and keeping the total showing 2 de...
[1 reply] : double total=salesPrice*0.0875; You're doing the calculation before... (by TarikNeaj)
by mihiir
need help for my practicals
can someone please help me with this question!! Define a class named Publisher in C++ with the foll...
[1 reply] : (by TarikNeaj)
Loop Tutorial Example
Hello, its my third day coding I use codeblock In your tutorial it says this: // echo machine ...
[2 replies] Last: Using both cin and getline was the problem. It was in a document where... (by Cortega)
Data delete - fstream
Hi. this is part of my code where i would like to have some help. this code should contain part wher...
[3 replies] Last: std::ofstream fails2("foo.txt"); //open once, at construction time. A... (by ne555)
Difference between two programs
I've been messing around with my code from this topic until I m...
[no replies]
loop breaks
Write your question here. so this code is doing something quite complicated..there is a global varia...
[2 replies] Last: damn it! thanks man..the lil lil things are the one to get us ... (by donvigor)
Why my program breaks when I run it ?
Hello guys, I have a problem with my code. When I try to run it (I am using Visual studio 2015) the ...
[5 replies] Last: Since you only dynamically allocated one element of z you can only del... (by jlb)
by souria
random numbers, min and max
Hey everyone, I want to add a range for my random distribution but I did'nt succeed, need some help....
[9 replies] Last: This expression doesn't do what I suggested: va_unif1 = (max-min)*(r... (by Chervil)
Linked List Traversal
Hi! I'm writing a code for a function of a sorted linked list in which I have to insert an item at i...
[2 replies] Last: template <class T> void LinkedList<T>::insertSorted(T item) { ListI... (by zaryabsaeed)
storing variables in files
Hello I have a quite newbie question that I cannot figure out the answer. Let's say that I this c...
[10 replies] Last: Im not sure exactly how the program would react, but it would for sure... (by TarikNeaj)
runtime error in the program, but the code is ok
can not understand what is the error in the code. when i compile it and run it ti runs well until it...
[3 replies] Last: The reason is that line 4 says that array is an array of pointers to... (by dhayden)
Operator overloads problems
Why are all my test failing for my operator overloads //Tests.cpp Sequence s1; s1.append(...
[2 replies] Last: The code you've shown for operators ==, !=, + and += don't do anything... (by dhayden)
Initializing base class in unusual way
Hi, I know that we can initialize base class like this Derived::Derived(int x) : Base(x){} but wha...
[2 replies] Last: This is so cool man, I'm actually feeling bad that I didn't figure thi... (by etrusks)
putting stuff in map in global scope
Hi, I cant really understand what this error message means when I'm doing this : #include <map> ...
[2 replies] Last: Thank you very much man! (by etrusks)
by cbar
type casting/type conversion not working
Hey guys, have to write a beginner's program( I realize there are more efficient ways to perform som...
[1 reply] : By default it only shows decimals if it affects the value. If all deci... (by Peter87)
Pages: 1234... 37
  Archived months: [dec2015]

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