Beginners - September 2016 (Page 25)

by SI 20
S11
 
//1 // #include <stdio.h> #include <string.h> enum catBreed { BIRMANEZA, KORAT, MANX, OCICAT, PERSANA, SPHINX }; void af...
[3 replies] Last: @gentlegal there is actual indentation in their original post that was... (by LB)
by SI 20
S10
 
//1 // #include <stdio.h> int f(unsigned int n) { if (n == 0) { return 0; } int suma; suma = (n-1) + f(n-1); return suma; ...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
by SI 20
S9
 
//1 // #include <stdio.h> float readTempCelsius(float x) { printf("Introduceti temperatura in grade Celsius: "); scanf("%f", &x); return x; ...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
by nikpik
char-mixed input and string parsing bug
 
I was writing a program that would take a set and list out all of the numbers of that set. For example: L1,2,3-5 would read 1,2,3,4,5 of L LessonTwo1-10...
[4 replies] Last: I notice that your while condition on line 44 will only exit when ther... (by kevinkjt2000)
streamstring
 
A streadstring is not a string right? So for initializing what do I set it to? stringstream strs = what? for a string it would be = "" for the basic initia...
[8 replies] Last: Why would ss << "Something" provide a compiler error that ss is being... (by randompersonhere)
how to create a number of objects based on user input
 
I have a program for a dice game where I need to be able to ask the user for how many players will be playing, and then based on that input, instantiate that nu...
[4 replies] Last: While I really appreciate this thorough answer, this assignment is for... (by ethancodes)
C++ homework help
 
i dont understand how to do this at all i dont know anything about c++ programing and this is due sunday can someone help me to complete and understand this hw ...
[4 replies] Last: @ jpadilla, Taking classes without the textbook is risky. I will... (by chicofeo)
How to have decimals in calculator?
 
So I just wrote my first project (been coding for 2 days now and constantly wanting to learn) which was a calculator and it's working great now but when i use d...
[1 reply] : Integer division truncates toward 0. It will retain no portion of the... (by JayhawkZombie)
Run-Time Check Failure #3 quiz game
 
Hey, new here. I'm trying (unsuccessfully) to make a quiz game Run-Time Check Failure #3 - The variable 'x' is being used without being initialized." what ...
[5 replies] Last: If you pay attention more closely to the OP questions, you would real... (by dhayden)
by st4evr
Program With Array To Check For Increasing/Decreasing Numbers
 
Hello everyone, Beginner C++ student here starting to learn different ways of using arrays. I am trying to put together the program below. It's supposed to a...
[6 replies] Last: dose this help ? #include <iostream> using namespace std; void prin... (by Death Row 2pac)
by i73
How to invoke a method?
 
I am looking to call a method with a dictionary I am coming from c# and just getting into C++. I have looked around and cant seem to fully understand the logic,...
[8 replies] Last: Now, to keep to the question: I have been wrestling with "my_class:... (by i73)
C++ assignment help
 
Everything up to line 22 is working. After that I keep getting the error "warning: comparison with string literal results in unspecified behaviour" on linese 22...
[14 replies] Last: Thanks. You've been a lifesaver. (by Jack816)
by Mak3
Pig Latin
 
When i excute the program it doesnt pick up my file and i cant find out what i am missing. #include <iostream> #include <string> #include <fstream> ...
[3 replies] Last: Okay so i figured out what was happening with my file. How would i out... (by Mak3)
Palindrome
 
OK, what I have got so far works well enough, but it will not ignore capitalization. What do I do? #include <string> #include <algorithm> #include <iostrea...
[4 replies] Last: Thank you all very much that helped greatly. (by greengirl1968)
stuck on palindrome problem
 
I'm failing on my second test: ** Test: #1, time: 15 ms., memory: 0 KB, exit code: 0, checker exit code: 0, verdict: OK Input 1 Output 11 Answe...
[1 reply] : that worked! thanks so much! @gentleguy (by tdleanz)
Comment Question
 
Is this proper syntax for my comment section? /* Anne Brown 9.10.16 Hotel Bill Calculation This program calculates a hotel bill based on room rate + leng...
[1 reply] : Thank you. (by anneandneilbrown)
by Selver
fstream stops reading in new data
 
Hi all. Having issues with this basic database program I'm writing. The database consists of two files, one is sorted records, and the other is unsorted ones...
[7 replies] Last: Alright, I'll try that, thanks. (by Selver)
Simple console program to open any file
 
I'm just looking for a way to open any file or exe from a command line program. It will be built into something larger. So the user will input the file/exe l...
[1 reply] : Windows doesn't open files, programs do. You have to tell windows whic... (by SamuelAdams)
Reading a CSV file of 2 columns into 2 different vectors
 
Hi, Could you please guide me as to how I can read a CSV file into 2 different vectors. I have some header files which I want the code to leave and read the ...
[2 replies] Last: http://stackoverflow.com/questions/15138785/c-reading-file-into-vector (by DeathLeap)
September 2016 Pages: 1... 2324252627... 34
  Archived months: [aug2016] [oct2016]

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