Beginners - September 2011 (Page 19)

Winsock code working on one PC but not the other !!
 
Hello everyone I'm experiencing a very weird problem, i have a laptop and a desktop and I'm trying to make a server and client in Winsock. when i compile and...
[4 replies] Last: Uninstalled? Wouldn't have adding an exception been enough? (by hanst99)
C++ as a hobby. simple questions :D
 
hi! i am new to this forum and new to world of programming. I recently checked out a book at my local library "c++ for dummies". I am currently reading it and i...
[10 replies] Last: thanks guys for you opinions. so any recommendations or tips for a be... (by cnoeval)
Better RNG
 
I've been trying to find a better random number generator than the built-in one. Many people have said that the Mersenne Twister is good, but I can't get it to ...
[6 replies] Last: Assuming you have a compiler that supports C++0x/TR1, #include <iost... (by closed account DSLq5Di1)
by Dumb
the 2 backslashes
 
Hey everyone I wonder why we use // this in C? I know that you say it locks the line but I don't undrestand the concept.Why do we need to do that? &what does i...
[6 replies] Last: What it does, I think, it annotates your source code. Kind of like an ... (by mbentley1989)
fstream problems. cannot seek
 
I am trying to read a file that is just a long (34 MB) series of doubles. On the first pass, this works. I then seek back to position 0, get a new number. ...
[2 replies] Last: You're just doing it wrong. //this is how it's supposed to look like... (by hanst99)
Tuition Program-NEED HELP!
 
Hi everyone, well i need help. I've never done any programming ever and well i need help to finish an assignment. Here are the requirments for this code: Assig...
[7 replies] Last: Notice that if you read the error, it says that in file "college3.cpp"... (by JMJAtlanta)
[HELP] Program to compute an Emplyee's daily wage
 
Problem Description. You are hired by a small company to create a program that computes the daily wage of its employees. The employees are required to tim...
[1 reply] : What do you have so far? What are you specific questions? (by coder777)
Help with getting positive values
 
So I have written a payroll program and am using if statements to obtain a for hours work, it seems to work correctly but if you enter a negative value, the pr...
[1 reply] : Solved, have the doubleTime variable declared too early, thanks everyo... (by fiveoneooo)
by basel
space problems in histogramming
 
Hallo All I am histogramming in linux a two dimensional picture. The numbers that are in the y axis are so big(28 digits),so i needed to define my y axis to b...
[no replies]
help with code
 
#include <conio.h> #include <iostream> using namespace std; int main() { string last, first; float hours, payrate, overtimerate, regpay...
[2 replies] Last: I can't believe that was the only problem. Thanks so much ! (by Johndoggy)
if else problem
 
Hello I am new to these forums and have a problem with some code I am writing for class, I have searched around and I cant seem to figure out what is going on. ...
[9 replies] Last: I don't believe you need the >= in line 40. A > should suffice. (by RollingStoned)
declaring 2-D array of Char
 
Hi everyone I tried to declare a 2-D array like this char array2 = ""; And it did not compile so i declared it like this instead char array2 =...
[2 replies] Last: great help, thank you (by coolbran)
Take only first character-ignore all others.
 
Hi, I am making a "quiz" and trying to get the program to accept only the first character in the input. This is so I can manually input if the answer is right ...
[6 replies] Last: I mean if m is not '|' then the code in answer would go past the... (by shacktar)
while (!cin.eof) help
 
Hi everyone i am having trouble with a loop that reads text from a text file. The problem is that i am not able to read the last line of text. ifstrea...
[9 replies] Last: you can use the global getline version in the <string> header if you d... (by xkcd83)
Segmentation fault
 
Hello, I'm new to cpp and to the forums. Thanks in advance for any help. I'm writing a program that's supposed to sort several albums as well as the songs wi...
[4 replies] Last: Here, i reaches 30 (should only go up to 29): j 0songs30 =======... (by shacktar)
Ignoring lines in an input file
 
My program reads input from a file, and I want to be able to ignore comment lines (marked with a '#') in the file, but I'm not sure what the best way to go abou...
[2 replies] Last: Thanks. That was simple enough. I don't know why I didn't think of tha... (by alanthreonus)
by Ragine
Greatest/Smallest Question
 
I have another question that i hope someone here can solve. Okay lets say i have 23, 35, 34, 63, 67, 56, 43. I want to line them up from greatest to smallest...
[2 replies] Last: Yes, that's works too thanks.. but im still looking for something diff... (by Ragine)
by fuzzy
test problem
 
I have a problem with an excercise for c++ test. It goes like this: What will be the type and value of x if you run the program with initialization values "pi...
[6 replies] Last: I'd take a look at what char** argv is actually pointing to. Rememb... (by ascii)
Having Trouble with sin and cos
 
Here is my code so far // Multiple Angle Trig Identity // A program to verify or falsify a formula // Alex Wild // Engr 21 // 9/19/2011 // Psuedocode...
[6 replies] Last: Thank you!!!!!!!!!!!!!!!! // Multiple Angle Trig Identity // A progr... (by pbdemon101)
by codrgi
cannot convert parameter
 
cpp file char input ; update_input(&input); header file void update_input(char * input); when i do the above i get the error "cannot convert parameter 1 f...
[2 replies] Last: char input ; is an array of characters update_input(char * input) ... (by Intrexa)
September 2011 Pages: 1... 1718192021... 48
  Archived months: [aug2011] [oct2011]

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