Beginners - November 2013 (Page 68)

Segmentation Fault.
 
I am not entirely sure how to go about working on segmentation faults, I am aware of what they are but I am not seeing this issue in my program. #inc...
[3 replies] Last: Oh well, for that, try initializing "k" to 0. You probably didn't noti... (by S G H)
Coin flipping problem
 
Hello everyone, I was assigned to write a program that will solve this problem: -------------------------------------------------------------------------- ...
[5 replies] Last: #include<iostream> #include<cstdlib> #include <conio.h> using namespa... (by Skinnyjr)
Help with functions
 
So my assignment is to let the user create set the size of array, maximum and minimum number for the randomly generated array. The FillArray() function is suppo...
[no replies]
Error for finding the highest value in a array
 
I don't know what i did wrong to find the highest value after typing in the value for 12 months #include <iostream> #include <iomanip> using namesp...
[2 replies] Last: So that i can find what highest value since the value is being inputte... (by ygetach4)
by whoosh
Checking results of poker hands.
 
So after I got the dealing and sorting working right, I want to check the results of poker hands. I'm trying to get it to check that if there is 3 of a kind for...
[3 replies] Last: Read the 1st reply: http://www.cplusplus.com/forum/beginner/19979/ An... (by Mats)
How to split time up
 
Here is code that I got so far. But the problem is I cant split time up. For example if my starting time is 05.00 and length of call is 180 minutes (3 Hours). T...
[no replies]
For loop
 
Ok so I need to make two for loops. I first one will ask for 10 numbers and then it will print the largest number out of the 10 numbers entered. The second one ...
[7 replies] Last: what Mats said but store it in a float (by Chriscpp)
Printing out numbers divisible by two
 
Function for printing numbers divisible by two between 1 and 1000. I got to this part, but I can't use any conditional, if else statements. What else can I use...
[11 replies] Last: Or simply increment by 2. (by giblit)
Using string function help?
 
I need to write a program that will let the user input a string and a character to search for. It should output the number of times that character is in the str...
[12 replies] Last: I had the system pause in there because im going to put a do-while loo... (by jon smith)
by cshu
substring reading from a file
 
im trying to read information from a file, when i run my program all im getting is random garbage, my professor told me to use substrings, can anyone help me? ...
[no replies]
Confusion on reference parameter
 
For the Enter Option function. I have given the user 12 choices to choose from. If not entered, it will ask the user to enter it again. Once completed, the int ...
[no replies]
undefined reference to `convert(int, int&, int&)'
 
I have no idea what I'm doing wrong, it looks like it's all set up right, but Clang gives me undefined reference to `convert(int, int&, int&)'. And even after t...
[1 reply] : Your formal parameter lists for convert() on lines 10 and 38 do not ma... (by Zhuge)
How to make my lists of functions smaller
 
Not asking for the answer! Rather then having to set up 12 void functions, is it possible to reduce my functions or use the minimum amound of functions tot atta...
[13 replies] Last: I know I changed it :D to see if it was correct. Thank you though :) (by fahmankhan75)
by roglio
Dynamic libraries in Code::Blocks
 
I am new using code::blocks, but not new doing programming. I have some problems understanding the proper way to link/dinamically libraries, and so I need someo...
[3 replies] Last: ok... the problem is that i need to recompile the libraries in SQLAPI.... (by roglio)
ascii
 
Hi guys.Just did a program that displays all keyboard codes.My problem is that it doesnt work for lower cases letters.I did it this way beacause i also needed t...
[2 replies] Last: I don't think letters with different cases are given their own key cod... (by Albatross)
by Nebur
Help me learn recursivity please
 
Hi everyone, I am learning to program in C++ and recently i have come across recursivity. Usually I can identify the base case quite fast, but I have trouble...
[1 reply] : recursive just means it call itself a basic example: void CountDown... (by closed account Dy7SLyTq)
Function not executing
 
my function, decode_lcw() is not executing and i can not figure out why. Here is my code: std::string ldu1::snapshot() { pickle p; p.a...
[10 replies] Last: its not a run time error here? i don't need to dump a core file. (by density)
help me fix my code please
 
its telling me it has errors but i dont know how to fix it #include <iostream> #include <cmath> using namespace std; int main () { int a,b,choice; ...
[4 replies] Last: @sherre02: it is against this community's agreed-upon rules to post fu... (by LB)
Void Function Error
 
I have written a function "totalamount numbers" to print out numbers from 1 to whatever the user defines to be. In print series function, the objective is to pr...
[3 replies] Last: You're welcome! Glad you were able to fix it :) (by MikeyBoy)
Cant figure out this coding
 
I am making a windows game project in C# and I am pretty new to coding. My program involves using the keyboard to move an object around the screen but I can not...
[2 replies] Last: Like i said I am new and don't know how to do that. The object on the ... (by dylanea1893)
November 2013 Pages: 1... 6667686970... 80
  Archived months: [oct2013] [dec2013]

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