
please wait
by metulburr
namespace or class
|
If you were to put a bunch of unrelated functions meshed together, would you put them in a namepsace or a class. I currently have this setup in a class, but it ... |
Jul 28, 2013 at 11:06pm
[1 reply] : If they were unrelated I wouldn't put them in either :P But to answer ... (by fafner)
|
char to string |
How can I convert a char to string ? Thank you! |
Jul 28, 2013 at 9:10pm
[5 replies] Last: Thank you! (by closed account jwkNwA7f)
|
by zerowalker
Sending packages (UDP), how to split them?
|
Okay so i know how to send packages. But i also now the limit (64kb), which means. Anything more will be impossible to send in one package. So my problem is... |
Jul 28, 2013 at 8:47pm
[7 replies] Last: I have read but i don´t understand at all how to send in TCP. From wh... (by zerowalker)
|
by Albo Coder
sstream knowledge
|
Can anyone explain me whta does line 23 do?? // example about structures #include <iostream> #include <string> #include <sstream> using namespace st... |
Jul 28, 2013 at 8:41pm
[9 replies] Last: thanks (by Albo Coder)
|
Array question |
string myArray = {"word", "another"}; string anotherArray ; anotherArray = myArray ; How can I get a certain letter of "word" that is in anot... |
Jul 28, 2013 at 8:32pm
[2 replies] Last: Okay, Thank you! (by closed account jwkNwA7f)
|
by riechan
fscanf() skips the first line in text file [C]
|
I have a text file that contains simple account information like this: 1234567890 234567 345678.90 First line is a 10-digit account number. Second line is the... |
Jul 28, 2013 at 8:23pm
[9 replies] Last: do you mind explaining what this line means? "%10s%9s%f" That line... (by Cubbi)
|
by metulburr
sleep function
|
I get a fast loop, so its not sleeping for 1 second on each iteration. What am i missing? #include <iostream> #include <string> #ifdef WIN32 #include <w... |
Jul 28, 2013 at 8:02pm
[2 replies] Last: oh, haha, i thought it already converted it to milliseconds with the 1... (by metulburr)
|
by Codeez
getline in a class
|
Hi folks, I'm only just getting into classes. I wrote a simple one to get employee imformation. When I got to read in the name string it just skips right past i... |
Jul 28, 2013 at 7:41pm
[5 replies] Last: really whenever your about to deal with strings. i dont think it will ... (by closed account Dy7SLyTq)
|
by vasilenko93
This the right way to check input?
|
I want to know if I catch invalid inputs correctly. On line 18 is how I test if non-integers are entered. I need to know if it's the correct way of doing that. ... |
Jul 28, 2013 at 7:20pm
[4 replies] Last: Okay thank you all, I think I am now starting to get how it all works. (by vasilenko93)
|
String problem |
When I display the string it displays something weird. carry = worde ; worde.erase(0,1); worde += carry; worde += "ay"; cout << word; --- 00FD64C4 ... |
Jul 28, 2013 at 7:13pm
[7 replies] Last: Just fixed it again, sorry I put you to the trouble. Thank you! (by closed account jwkNwA7f)
|
irrklang audio libary help! |
What is the correct way to setup irrklang in Code::Blocks on a windows 7 laptop? |
Jul 28, 2013 at 7:11pm
[1 reply] : Anyone? (by Johnny111111111)
|
by jheard901
More Assembly Line Programming
|
I could use a hint towards what is the accurate interpretation of the following assembly code to C. //x at %ebp+8, n at %ebp+12 movl 8(%eb... |
Jul 28, 2013 at 6:11pm
[1 reply] : Anytime you see a conditional jump back to a label in the code, you ca... (by AbstractionAnon)
|
by piczim
" C program " Adding Questions and using Answeres in Calculations
|
I am trying to do a BMI calculator. My code below asks for weight and height below and then returns the BMI result with the definition of your weight status.... |
Jul 28, 2013 at 6:08pm
[2 replies] Last: My question is My code asks for weight and height below and then re... (by piczim)
|
by haterz
radian convert to sine, cos, tan..
|
i've written 1 program until this.. but im stucked at convert to sin, cos and tan parts.. can anyone help me to solve this problem ? i have to combine both of t... |
Jul 28, 2013 at 5:41pm
[no replies]
|
by philbertfour
problems pointing to an array
|
So I'm trying to call the balance of an account in my program with balance = accounts_ .GetBalance(0; Now if I substitute i with 0 which is the actual positio... |
Jul 28, 2013 at 5:09pm
[1 reply] : it wasn't working earlier but balance = accounts_ .GetBalance() seems ... (by philbertfour)
|
by BlueGreen
Showing the Highest and Lowest Integers in an Array
|
Hello everyone Some prior information: I am a novice coding in Windows 7 using Visual C++ 2010 Express. I have spent a good long while searching for solutio... |
Jul 28, 2013 at 5:08pm
[3 replies] Last: You are not changing maxval or minval in your loop. Instead you are c... (by BlueGreen)
|
Beginner game ideas (1,2) |
I have read a lot of Michael Dawson's Beginning C++ Through Game Programming 3rd edition, and I have made a few games. I have now ran out of ideas :( Can an... |
Jul 28, 2013 at 4:31pm
[32 replies] Last: Nevermind, I fixed it. I didn't need the on them. (by closed account jwkNwA7f)
|
by luckyelee
Create object and call function in Main
|
Homework assistance only,I need to create an object from this class (StudentRecord) Call an input function of this object (not class) Call an output function of... |
Jul 28, 2013 at 4:05pm
[9 replies] Last: As has been pointed out several times, you're missing the closing brac... (by AbstractionAnon)
|
void Functions to standard output stream |
Just a small question! Been challenged with creating a function that writes to the standard output stream (cout). If my function is of type 'void' and as ... |
Jul 28, 2013 at 3:51pm
[2 replies] Last: Cheers! (by igotabuginmyeye)
|
by qriz75
writing to and reading from file gives -9.25596e+061
|
First of all: Thanks for taking time to help! I have 2 programs that are accessing one text file. The first one is supposed to take in the quarterly sales f... |
Jul 28, 2013 at 3:37pm
[1 reply] : I found it myself ;-) line 22 of the second program had an ; to much ... (by qriz75)
|