Beginners - June 2016 (Page 19)

I have my code but having trouble with calcultaion
 
I have a code but i am having trouble with the calculation part. The local t-shirt shop sells shirts that retail for $12. Quantity dis- counts are given as f...
[10 replies] Last: okay sorry about that (by closed account D4NbpfjN)
Im having trouble making a jagged char-2D-array program. I need some help (1,2)
 
The names are stored in a file. kamil saad muhammad alexander alina taylor jack nikita katya #include <iostream> #include <fstream> u...
[21 replies] Last: How many times do you need to be told that you can't do this? char te... (by jlb)
by simani
what is the probelm with this code?
 
It does not run and I cannot find the problem. Why does not it run? #include "stdafx.h" #include <iostream> using namespace std; class q { public: void ...
[6 replies] Last: [code firstline=5] class q { public: ... ... static const... (by Chervil)
please help me please
 
hi guys^^ I wanna to write a program like this in c++: get the weight of n bag and then calculate the minimum cost for n bag in a bag. ( in first line get n ...
[14 replies] Last: You haven't really clarified the problem statement. Are you simply tr... (by AbstractionAnon)
For loop Help!!
 
I need help with printing this array. Also, a brief explanation of the for loop would be helpful. #include <iostream> using namespace std; int main...
[3 replies] Last: Thanks a lot (by fivestar)
(help) how network socket in different os communicate with each other
 
Write your question here. sorry if this is silly question . after many hour searching on internet , i am not clear how it works . example : the server on ...
[3 replies] Last: if we take care of language specification like struct pad or space ..... (by coder777)
Solving infinite loop
 
I am below 18 and I learn c++ with myself , I need some help on basic programming of c++ . Thanks . Question is the second line . I get this code from a book an...
[8 replies] Last: Thanks ^^ (by Antereson991)
Problem with overloading member functions
 
I have written a class like this: class Foo { public: void bar(const int&); void bar(const double&); } Recently, I changed the data type of ...
[16 replies] Last: Ok, no worries :+) (by TheIdeasMan)
Printing Two Characters in the same space
 
desired output: Two letters appearing in the same space at the same time. Please offer me hints as to how accomplish this goal. I have already tried using thi...
[3 replies] Last: It used to be that you could load custom symbols into an alternate f... (by Duthomhas)
Segmentation Fault
 
So here I have a homework assignment where I was to implement stacks and templates. The program was working fine until I added the s2.pop() at the end of the pr...
[7 replies] Last: Did and it works now! Thanks for your help really appreciate it. (by Jose94ji)
Nested Loops trouble.
 
Hey cplusplus world, I'm new to this forum and am currently studying computer science where I've taking a very huge liking too. Although, a lot of classes are ...
[4 replies] Last: Thank You PrivateRyan for taking the time to look at this and give me ... (by programSam88)
cout: different behavior due to context?
 
I was experimenting to see what I need to do to verify that a supported operator (+, -, *, /) was input. As cin strips the sign from the input, the operators '-...
[3 replies] Last: Duoas and Hirokachi, Thanks for the explanations. I knew that I didn'... (by jeffbiss1)
by Tonlee
Why the double return value is -1.#IND?
 
I can't find the error in my code.I got this problem from the remove() function in Binary Search Tree. Write your question here. void remove(const T& x, B...
[1 reply] : Oh suddenly I figure out T removeMin(BinaryNode* &t) { while... (by Tonlee)
by GonlyG
Empty Output in Lowercase Program
 
I am given an ambiguous amount of text and must make all the letters lowercase. But my output is empty for no good reason. #include <iostream> #include <st...
[no replies]
Adding Binary Search
 
So the program I have for homework lists the values I have in an array in increasing order. I am having trouble with adding binary search to it. I also need to ...
[1 reply] : Line 11 in binary search code: You are passing 3 parameters, when the ... (by Arslan7041)
by iuliaa
infinite cycle
 
I tried solving a problem that goes like this "for a number x that has 3 digits build a square matrix nXn so that on the main diagonal there will be the last di...
[1 reply] : for(j=1; j<=n; i++) you never touch `j' (by ne555)
Load value of a memory address stored as an unsigned 32-bit int
 
Sorry if the title doesn't make sense I am trying to use the memory address of an object to create a unique ID for it. I want to be able to use that unique I...
[6 replies] Last: What I meant by that is that a pointer to any object derived from your... (by AbstractionAnon)
Splitting string Array and put into another array
 
I have an array called allcourses which contains elements Like : " ssds*fgg*vcv* , saAds*cvb*bcfvb* , .... } and I want to split it with the "* " and put each w...
[no replies]
Unable to catch particular user input error
 
win 10 VS 2015 prof. I am working on a program that invites the user to input a date: m for month, d for day and y for year. These input values will be...
[2 replies] Last: suppose the user instead of inputting, for ex., 10 inputs 1o If you... (by AbstractionAnon)
Sorting & Searching
 
I desperately need help with my homework for my Computer Science class. I'm struggling greatly with this assignment because I really don't understand how to app...
[3 replies] Last: I honestly just needed a step by step process to tackle each thing. I ... (by therpgking)
June 2016 Pages: 1... 1718192021... 25
  Archived months: [may2016] [jul2016]

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