Beginners - May 2014 (Page 19)

Must return a value Error
 
Can anyone help me about my homework? I can not compile this code without error it says besle_kontrol() must return a valuei donno what to do ? Thanks fro...
[7 replies] Last: I just created a project with your latest code and it does not compile... (by Jaybob66)
cin.getline()
 
Hi. I was wondering if I could get another quick question answered real quick (I hope I'm not already wearing out my welcome :) I'm trundling my way through ...
[2 replies] Last: <iostream> is necessary to realize " cin / cout " streams. It contains... (by Auroch)
by yepMe
Singly linked list problem
 
I am new to c++ , trying to write singly linked list in c++ , and it's various operations like , print, insert at the end, insert the end, delete etc. I am doin...
[6 replies] Last: @jaybob66 I got my solution , it was happening due to a silly mistake ... (by yepMe)
by locolo
Validating data!!
 
this function should validate the data. its a word so it should only have char. I cannot find a way to do it!!! int word_validation (char word_playe...
[10 replies] Last: You need to post what you have now. (by AbstractionAnon)
enum in an array
 
Hello, how can i use a enum with 3 constants in another array in my program? enum: enum State { free, full, marked }; ... then i have a class ...
[2 replies] Last: thx alot, works :) (by Raven1991)
Sound in console?
 
Can I play sound in console app? If yes, Can I repeat that sound till the program end?
[4 replies] Last: You don't need source code for the PlaySound function if you are on Wi... (by TwilightSpectre)
by locolo
error: w8004, why oldCorrect++ doesnt work
 
this is a function of a guessing game, I need to print the guessed letter for the puzzle like: _a_ OR print the used letters: c, j, k, etc. hope anyone ca...
[3 replies] Last: Peter87 just explained to you whats wrong. Array sizes need to be ... (by Codermik)
elseif difficulty
 
Hi. I was wondering if I could get another small smidge of tech support. I'm still working my way through Bucky's C++ tutorials on youtube, and I'm trying to u...
[6 replies] Last: more importantly, there is no elseif construct in C/C++ you end up w... (by Jaybob66)
by yepMe
cin is not taking value
 
Hi everybody, I have just started learning c++ and I am trying to write a singly linked list program. The problem I am facing is when user chooses to insert it...
[7 replies] Last: @ all I found my mistake ... it's working now... thanks everyone for y... (by yepMe)
Segmentation Error
 
I'm getting this segmentation error and I have no idea what's wrong. I'm supposed to create mean median and mode functions that take in an array. I've looked th...
[1 reply] : Your code works. Can you post input which crashes your program? (by MiiNiPaa)
Computing Grade for a course
 
So my program is supposed to calculate the course grade by finding the average. ex. Input Lady Gaga 10 7 7 0 8 2 3 4 8 10 Mary Johnson 9 8 9 9 8 10 6 5 9 8 ...
[1 reply] : You do not reset your sum between iterations. (by MiiNiPaa)
by ak16
Time Complexity
 
Hi friends, I am very confused about time complexity of any program mainly sorting algo and searching algo. Please any one can give me the guidance to study ...
[2 replies] Last: This sort of thing can get sorta complicated. Without going to school ... (by Hambone)
link state to floyd warshall
 
i have link state coding at ns 2 simulator mybe can change to floyd warshall algoritma ?? LsPathsTentative methods */ LsPath LsPathsTentative::popShorte...
[no replies]
Drawing a line in C++?
 
okay, so i have been struggling to find a way out of this. how do you draw a line in VS? knowing that it doesn't have a graphics lib. i have searched and fou...
[3 replies] Last: Did you mean that drawing on .net graphics library? Besides line, if y... (by EisenhowerPDF)
Overloading operators in Classes
 
// overloading operators example #include <iostream> using namespace std; class CVector { public: int x,y; CVector () {}; CVector (in...
[2 replies] Last: OK i now got it... sorry for bumping my thread up... thanks anyways (by kuroro03)
Dice game problem
 
in function continue if the value adds up to 7 then you lose, if it adds up to the sum of the previous two number you win, else go again. How to return to main ...
[1 reply] : Shouldn't the die roll be a random number? I can't think of any reason... (by admkrk)
main menu
 
I am writing a graphics program using jeopardy. in my game function, it is where the jeopardy board is. where the boxes with actors 200, actors 400, ect. are. I...
[1 reply] : It'd use a bool array. Start with everything set to false, and set the... (by Yay295)
Arrays/Strings
 
Hey everyone. I'm attempting to write a code that will display the distance between two rooms. I have most of the program correct, I just can't figure out how t...
[10 replies] Last: Then reason why line 38 appears to be skipped is because cin >> FOO l... (by Daleth)
by bozz51
Getting function call error
 
My compiler is giving me errors not sure what I did wrong? Error 1 error C3867: 'Account::get_balance': function call missing argument list; use '&Account::ge...
[2 replies] Last: Thank you wildblue.... (by bozz51)
How do you use for loops inside vectors?
 
For my project the user continuously enters grades into the program. Each time a grade is entered the program should print all grades that have been entered so ...
[2 replies] Last: You have declared 3 i variables in this code, this will cause errors.... (by admkrk)
May 2014 Pages: 1... 1718192021... 55
  Archived months: [apr2014] [jun2014]

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