Beginners - January 2017 (Page 6)

While Loop in Function Being Skipped
 
Hey guys! I'm creating a code with two overloaded functions for a project in my course. For some reason, within each of the functions, the while-loops are skipp...
[1 reply] : Line 35: choice is uninitialized. Line 43: You're testing an unin... (by AbstractionAnon)
Run time failure 3??????
 
Why do i get a run time check failure 3 here? int* sum(int n ); int main() { int n = { 2,3,4,5,6 }; int *ptr1; ptr1 = sum(n); for (int i = 0; i < 5;...
[2 replies] Last: thx i just had to initialize ptr with n :D i didn't know about the fo... (by spax1111111)
Important in ASP.Net
 
hello there how can i make global Variables in asp.net i want the Variables as public for each page in same project and i can use any one of them in any page...
[no replies]
by johnab
microsoft visual studio
 
I am writing code in a project and source cpp,, suddenly the changes I make in the code will not appear after I build and run,,,, anyone who know what problam ...
[1 reply] : Did you introduce a compile error which prevents a new executable from... (by AbstractionAnon)
Nested for sequence in plain C
 
Ok, first off I hope I am not totally off with the subject since this is written in C, because I want to start in C then pass to C++, hoping that my approach is...
[5 replies] Last: #include <stdio.h> void draw_box( int nrows, int ncols ) ; int main... (by JLBorges)
Remove Punctuation from user input Custom function
 
I have been looking for way to do this but I always end up with the library version to do or its only of a selected string not a getline input string am despera...
[3 replies] Last: To make it generic: std::string remove_chars( const std::string& str,... (by JLBorges)
by johnab
print out only the last number in Fibonacci series
 
I want to print out only the last number in the list... for example,,, if cin =12 I want cout= 377.... but the whole list is beeing printet out. #include...
[3 replies] Last: tnx coder777;) (by johnab)
Hailstone Sequence so far
 
Good afternoon everyone, I'm currently working towards to provide the following output for my code: What number shall i start with? 7 The hailstone seq...
[4 replies] Last: Using vector of vectors: #include <iostream> #include <vector> type... (by closed account 48T7M4Gy)
What is my error?
 
Soooo I am using SFML and I am trying to load sprites. But, when I tried to run it, it crashed. I am actually clueless at why it will not work. #include <...
[no replies]
Understanding operator<<
 
I've hit one of those walls, where I don't understand something. ostream& operator<< I don't understand how this works, I know its used to print text,...
[1 reply] : Ostream is a class, cout is an object of ostream class. http://www.cpl... (by Golden Lizard)
by zakaa
Im confused with headers
 
I just can't figure this problem out. Maybe my code is badly designed or there is simple way to do it. What i want to to is to use the "uniform_int_distribut...
[2 replies] Last: Oh you are right, i just couldn't figure it out. Thanks :) (by zakaa)
if else function problems
 
I cant quite get this to work my output is always isnt beer the best void IfBeverage (){ string drink; cout << "What do you w...
[3 replies] Last: Thanks all I need was #include<string> void IfBeverage (){ ... (by cabigler)
Final assignment
 
Okay so, I kinda need help with this assignment. I don't know if you guys understand just by looking at the code what I try to accomplish but I'll try to explai...
[3 replies] Last: Hi! I made an updated version of the code which you can find here. htt... (by elliotawerstedt)
if-else expected a statement error
 
Hey I just started C++ a few days ago and could use a little help. As stated above my else code is getting the error expected a statement and I cant quite find ...
[3 replies] Last: Yep, it makes perfect as they say and you had most of the basics right... (by closed account 48T7M4Gy)
Problem with string pop_back() function
 
There is an error with the pop_back function in this case. In this code finalpuncuation(string) is a bool function. void dePuncuation(const std::string...
[2 replies] Last: Compilation issues aside, something along these lines may be more appr... (by cire)
What symbol "->" represents meaning here?
 
I would like to know on what symbol "->" represents meaning here. Does anyone have any suggestions? Thanks in advance for any suggestions p_Volume...
[1 reply] : http://en.cppreference.com/w/cpp/language/operator_member_access (by TheIdeasMan)
Function not being Called
 
Hey guys! I'm working on an assignment for my Computer Science course in college. I've currently ran into a problem with functions. For some reason I can't get ...
[2 replies] Last: void findHighest (double north_east, double south_east, double north... (by gunnerfunner)
"J is not declared"
 
when trying to loop through a vector, i come across an error. for (unsigned int i = 0; i != width_; i++) { for(unsigned int j = 0; j != height_; ...
[3 replies] Last: Oops sorry, I'm kind of an idiot for not seeing that, I was so used to... (by Optimistic Peach)
Another function question
 
I am doing a monthly budget project for my introductory C++ course. I am stuck on figuring out how to get the computeTithing() function to send the BudgetTithin...
[2 replies] Last: Thank you so much! It didn't completely fix it, but it was an error th... (by ripken2)
Not able to include a file that includes the other
 
So currently i am trying to #include "MyForm.h" in "MyForm1.h" but "MyForm.h" already has #include"MyForm1.h" in the top of it and for some reason when i try to...
[2 replies] Last: Looks like some microsoft visual studio stuff. It's not standard C++ ... (by kevinkjt2000)
January 2017 Pages: 1... 45678... 24
  Archived months: [dec2016] [feb2017]

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