Beginners - November 2016 (Page 26)

by mgala
Using functions to compute and respond to a time protocol
 
Hello we are learning to use functions in my class, but despite my lectures and reading, I still am struggling with this particular assignment. The basic gist o...
[1 reply] : #include <iostream> #include <cmath> #include<string.h> using names... (by Sajeel)
by Chamat
Removing duplicate values in an array
 
I need to make a function that removes duplicate values in an array. What I'm having trouble with right now is I don't know how to make a comparison between ev...
[2 replies] Last: Thank you! (by Chamat)
by Sajeel
if conditon (1,2)
 
Write your question here. #include<iostream> using namespace std; int main() { int a=1,b=1; if(a,b==2,2) cout<<"True"; } why if statement is ex...
[20 replies] Last: i made the structure of the board and positioned the blocks on their i... (by Sajeel)
Error in cin input to a class?
 
I am a newbie. I just want to write a class that accept input from cin command. i don't know what to put (constructor or operator>> method???) in my Class A ...
[3 replies] Last: #include<iostream> using namespace std; class A { private: char a ; pu... (by Sajeel)
by nu123
c++ to c
 
hi there, I'm looking for a bit of help hear. I'm trying to write a program for a school project. I have spent ages online finding info about c++ and writing th...
[5 replies] Last: how would I go about changing it so instead of entering a number it c... (by Chervil)
Can't return to int main()
 
Hi, my function ( float WriteResults() ) is unable to return to main and i'm not sure how to refer them to main. Could someone help me with the problem, i'm som...
[6 replies] Last: @furryguy OH SO I'M SUPPOSED TO ADD ALL MY VARIABLES IN MAIN AGAIN AND... (by Jacketto)
Pattern with loops
 
Hi, can anybody help me with this pattern using While, dowhile and For loop please cout << "33333" <<endl; cout << " 222 " << endl; cout << " 1 ...
[5 replies] Last: Ok, thanks a lot. (by zhaoyun99)
Loops
 
Hello everyone, I am working on a class project and need help figuring out an issue. I am new to programing. When I run the program below, it does everything i ...
[2 replies] Last: oh I see. Thank you!!!!!! :) (by Ibra ovic)
Help needed for Server/Client Battleship game C++
 
Hi, new here to C++ socket programming. Thus, in need for some help. 1) How do I let my program knows which position is being set (e.g. Patrol Boat @ Position ...
[2 replies] Last: Need some assistance, please... (by mrmartin93)
Removing specific letters and numbers out of a string
 
I am having a hard time figuring out how to remove specific things out of a string file I am working with. My assignment is to remove all numbers, periods, comm...
[5 replies] Last: Also, how would I get rid of apostrophe's in the whole string? (by salomonthesav)
Pig latin help
 
If i enter "ask" twice, it will print out 'ask askyay' instead of 'askyay askyay'. Im not sure what im doing wrong. #include <iostream> #include <string...
[14 replies] Last: Steal your code? I literally posted my own code and wanted ideas on ho... (by fivestar)
Pythagorean theorem
 
I'm writing a program that calculates the number of Pythagorean triangles in which no sida is larger than then 500 Specification  Calculate and print the n...
[5 replies] Last: #include <iostream> int main() { std::cout << "a\tb\tc\n"; ... (by closed account 48T7M4Gy)
Splitting Strings
 
How can i take a string input that is a sentence and seperate the words by white spaces. If someone enters "cat in the yard" how can i seperate these words and ...
[no replies]
by userco
Output not working correctly
 
I am creating a program where I convert all lower case to upper case and Second option is to capitalize first letter of each word. My issue is When I enter a se...
[2 replies] Last: Thank you!!!! (by userco)
Sorting out duplicates from 2 different char arrays.
 
I'm struggling with an assignment for my class where we have to take input from the user into a char array. Then remove the duplicate letters from that array an...
[2 replies] Last: I'm not familiar with the find algorithm personally, but it would be a... (by Dtrain327)
SDL Game Programming Organization!
 
I have the hardest time trying to separate code into classes. If I could separate it out I think I would have a better chance of debugging my problems. I wa...
[no replies]
Compiling for others use
 
So this is a super super easy question isn't it but still i have an issue with it so i am trying to compile a program and it will run how ever i need on my pc ...
[4 replies] Last: it is really not a super easy question. My mistake sorry ... (by ExSanity)
Simple problem with vectors
 
I'm a CS1 student and we just started using vectors. I'm doing some practice problems from my book to help me better understand vectors. I needed to convert a p...
[5 replies] Last: Oh nevermind. I went back to check my settings and my compiler wasn't ... (by TheEurekaMan)
What is wrong?
 
What is wrong with the program? #include <iostream> //Line 1 namespace mySpace ...
[1 reply] : Return 0; It should be : return 0; (by Brigavo)
Difference between two dates C++
 
I am trying to solve a problem that asks me to give the total days between two dates. I have to take care of the some matters between those two dates such as le...
[1 reply] : Your date class doesn't overload operator- , so it won't know how t... (by xismn)
November 2016 Pages: 1... 2425262728... 44
  Archived months: [oct2016] [dec2016]

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