Beginners - April 2014 (Page 12)

by Subo93
Using islower
 
I want to convrt a sentence to Capital letters but it outputs Segmentation fault (core dumped) Can anyone help me to fix the error..? this is my output...
[5 replies] Last: Thanks everyone...! (by Subo93)
by Bolbi
structure of a game?
 
Iam working on a tiny project, and Iam not a beginner, but TOTALLY unstructorized, so I want to know where what code comes... What I mean is: Will I open the ...
[4 replies] Last: You should probably make your game as modular as possible (Limit depen... (by Avilius)
by Subo93
If statement
 
I want to get the total price of foods that i have entered ,Here i'm getting a incorrect total price . Can anyone show me how to fix it.? Thanks.. #inc...
[4 replies] Last: Mistake..Thanks.. (by Subo93)
undefined reference to `WinMain@16'
 
Hi, i am super noob in c++ programming i actually don't have a programming question yet, but a lot of compiler problems and it is just one of them. I instal...
[10 replies] Last: yeah and one more thing, if you guys like music, the Radio station ... (by thomson101)
Need help with converting JArray to String
 
Details here: http://stackoverflow.com/q/23292979/3560330
[1 reply] : This is C# BTW (by Code Apperentice)
Echo Program
 
Hey Could Any One please tell me how to write an echo program in c++ example: if user enter "hey how are you 123" then output same show
[5 replies] Last: http://www.cplusplus.com/reference/ios/ios/rdbuf/ http://www.cplusplus... (by MiiNiPaa)
by danzal
simple help needed !
 
im getting this error but i do not know why :\users\y410p\desktop\c++ programs\labex1.1\lol.cpp(14): error C2447: '{' : missing function header (old-style form...
[1 reply] : Line 12 and line 14 have brackets where they shouldn't be. #include... (by Codermik)
Getting inverse sinus in degrees in c++
 
Hi. I'm new to c++ but have programmed in java for a couple of months. I want to make a program that calculates the refraction of Snell's law. Everthing is f...
[3 replies] Last: Wel, the formula of snell's law is sini / sinr = n2 / n1 It doesn't ... (by NerdZilla)
by Subo93
Files
 
In Africa.txt I have saved 1 Sun 23 45 66 44.6667 2 Cona 45 66 77 62.6667 3 Jimy 45 77 88 70 And also I want this as my output.But this program outputs "0 ...
[1 reply] : 44.6667 is not an int so trying to read it into int value leads to str... (by MiiNiPaa)
Same function called twice, with different strings returned?
 
Hi! So I'm trying to call the say() function in my Fox class to print one string, and then when I call it again (for thing2), it prints something different. I'm...
[2 replies] Last: I would just use an array to store the values then do return array ; ... (by giblit)
Throwing exceptions handler
 
I'm pretty new to the concept of throwing and catching exception handlers. I originally thought, that in the event of an exception to a code (in this case of th...
[1 reply] : This is not a good candidate for exception handling, but here is how i... (by cire)
Initializing date of birth as int in constructor with a leading zero
 
I have a program that initializes the date of birth as an integer in the constructor in the format MM/DD/YYYY (12041987). The only issue I'm having is the leadi...
[8 replies] Last: I cannot change the data type of the date of birth from int to String ... (by GilesCorey)
Bit of an idiot question. - Root directories
 
I'm trying to load a texture for a game I'm working on using the Irrlicht API. I'm using Code::Blocks IDE with GCC compiler. platform->setMaterialTexture(...
[no replies]
Saving to a new file
 
I got the desired results from my code but I do not know how to save it to a new file.... The question was: Write a program that skips leading whitespace ch...
[4 replies] Last: I am kind of weary of using "std::", its foreign territory to me. (by REGNETAM)
by venros
C++ Towers of Hanoi - Recursion
 
Hi guys, I was messing with this for hours till it finally works, but honeslty half way through it starts going backwards so for example I have m,b,a,c and it ...
[7 replies] Last: at no point am I switching the As with the C position That's exactly ... (by kbw)
What are stack and queue good for ?
 
Hello :) I have just read in the book I learn STL from, a chapter called "Container adapters" which include stack, queue, and priority_queue. I understood how ...
[2 replies] Last: Thanks angie :) So should I use these containers every time I need a L... (by Guzfraba)
How do I use reference parameters to return my values back to main?
 
I have a void function with 3 variables that I would like to output in main. The problem is I get a compiler error when I want to output my values. #inclu...
[7 replies] Last: when you prototype or define a function you write the variable type of... (by mxood)
Searching in BST
 
I have done searching using first method the first one is using search with void and the second one using int return type. The first method gives me correct o...
[5 replies] Last: when i write return at line 25 it returns call back to function and r... (by AbstractionAnon)
Gradebook application
 
Okay, I borrowed (stole?) code from another post on here and modified it slightly. What I'm trying to do is input a student's name until the user types "Quit". ...
[1 reply] : Just for starters the name can't be an int. it should be a string. Als... (by brokeas)
Adding Choice From a Menu (Arrays, Structs)
 
I need to write a program with a restaurant menu that allows users to choose more than one of an item. How do I add their choices to their order? AKA what shoul...
[no replies]
April 2014 Pages: 1... 1011121314... 67
  Archived months: [mar2014] [may2014]

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