Beginners - June 2012 (Page 31)

Improving
 
#include <iostream> class Measurements { private: int sum1, sum2, temp; //float fFraction; public: void getSum(int, int, int, int); void showSum(...
[2 replies] Last: Consider changing the name of getSum() to makeSum(). I would expect g... (by Lowest0ne)
C++ asci converter
 
I have this code which converts characters to asci\ #include <iostream> #include <iomanip> int main() { char word ; std::cout<<"Please enter a word...
[2 replies] Last: A char can hold values from -128 to 127 so it isn't advisable to try t... (by Lowest0ne)
Casting or pow()?
 
I was messing around with a small program and I happened to notice something that didn't seem right to me. Here was the code: #include <iostream> #include...
[5 replies] Last: Workaround while(n){ n/=10; ++digits; } Learn about errors. Ed... (by ne555)
by djru
Retrieving information from a loop
 
Okay i've gotten this program to run almost perfectly the first time I compiled it, so I'm pretty happy about that. What the program is supposed to do is use a ...
[3 replies] Last: I LOVE Chicken Salad...back to programming -.- (by Volatile Pulse)
C++ Creating A Bot
 
The whole reason i starting learning C++ was to try to creat a bot... now iv been learning how to code for over 3 mounths and i have started geting the hang of ...
[16 replies] Last: Please... don't create more game bots... make developers and innocent ... (by strongdrink)
Help with Connecting Flights
 
Hello. I am new to this forum. I am searching for some help for my girlfriend and I. My girlfriend is taking a course in computer science and for her homewor...
[4 replies] Last: } else { // the second plane came before the first plane re... (by Volatile Pulse)
by bc123
Help reducing Fractions
 
Hello, I am beginning to learn how to program and am just wondering how to reduce fractions. I think you're supposed to use a for loop but I don't know the for...
[8 replies] Last: Alright thanks a lot, I got it to work. (by bc123)
Explain how the minimax function works for ai in a game of connect 4
 
Hi, I've been working on a c++ game of connect 4. It uses a multidimensional array, and I have a function that is capable of checking if someone has won. Howeve...
[9 replies] Last: -∞ is negative infinity. If you use double for heuristic values and ... (by Peter87)
by mattl
Implicit declaration of PlayPrompt not allowed in C99
 
I am trying to pass a string variable (audio file name) to the below function (PlayPrompt) but I get a warning the first time I try to call the function. The co...
[2 replies] Last: Thanks for the response. The functions in PlayPrompt are iOS API's wh... (by mattl)
error C2143: syntax error : missing ';' before '<'
 
error C2143: syntax error : missing ';' before '<' error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C2238: unex...
[11 replies] Last: I am going to revert the edit and try another path to a solution. The ... (by forestPeterson)
by digrev
reference-pointer sample
 
hi everybody i am new to progamming my question is how can i make this sample with using a pointer #include <iostream> #include<conio.h> using namespac...
[4 replies] Last: You should change these statements f(1) = 8.23; // change 2nd element... (by vlad from moscow)
exiting a program
 
Suppose I wanted a particular key, lets say 4 to exit the program. How would I go about that? More along the lines of cases. By that I mean this is an if case w...
[4 replies] Last: I suppose you're referring to a menu of some sort. Da0omph's example o... (by Volatile Pulse)
by zek
Solve it using c++?
 
Write a program that reads ten integers and displays them in the reverse of the order in which they were read.Only use array.
[3 replies] Last: std::array is not an array. So the code can look the following way #... (by vlad from moscow)
C-style strings in C++
 
Hello, I would like to ask a thing that I can't figure out on my own. In before; I know that in C++ we have really nice library(string) that we can include ...
[3 replies] Last: Well, some ideas might be useful. Thank you for responding. :) (by MatthewRock)
[Request]A clean version of C++ !
 
hi dear programmers I'm a beginner in C++ programing. currently using Win7 32bit and i want a clean c++ compiler for this version of windows. can anyone ...
[12 replies] Last: There are a few things that require some head banging against walls, b... (by Volatile Pulse)
Input problem
 
Hello, i'm rather new to C++ and i was trying to take a string of input and divide the string into an array of words. I tried using this bit of code. getline...
[5 replies] Last: Alright, thanks for the help guys! (by ArtimosPenguidor)
by yge3d
Please help with this error!!
 
Ok so im trying to create an console program that opens a website, but i get an error saying: "Run-Time Check Failure #3 - The variable 'Handle' is being used ...
[10 replies] Last: HWND is a data type that holds a "handle" to a window. This value is... (by ResidentBiscuit)
Simple While Loop Not Functioning?
 
I just installed Dev C++, its been a couple of years since I've programmed in C++, but I am not really a beginner. I am trying to do a simple read in from a tx...
[3 replies] Last: WAIT... i'm dumb.. semi colon after while (true) *FACEPALM*... thanks (by SunDrySix)
need a little help with some code
 
hello guys, i get some trouble with this code my friend made. he asked me to solve the error but i can't do anything @__@ . when i compile this code , i got a ...
[5 replies] Last: Hi there, As to your actual problems: " initializer-string for arra... (by closed account o3hC5Di1)
error C2143 missing ';' before '<'
 
I researched this error and found a lot of posts related to this type of erros but nothing that solved my case: error C2143: syntax error : missing ';' before '...
[7 replies] Last: can you go to this post and continue help there http://www.cplusplus.c... (by forestPeterson)
June 2012 Pages: 1... 2930313233... 51
  Archived months: [may2012] [jul2012]

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