Beginners - May 2010 (Page 30)

loop until key press (C code)
 
I am writing a client/server program in plain C i have the server working fine but i am having a bit of trouble with the client. I want the client to be in an i...
[1 reply] : http://linux.die.net/man/2/poll Poll on both the server and the sta... (by Duthomhas)
Not allow to type char string on a int value
 
Hi again :-) I want to know how to avoid to type by error a char string on a int variable or, at least, avoid to try saving the char string to the variable...
[3 replies] Last: I don't think that crashing is a very useful answer to a bad input. ... (by Duthomhas)
by LEESI
Structures & Pointers (character profile)
 
Im looking to creat a small program to display 3 characters Zombie,Mage,Warrior,show there type,health and weapon,this is what i have so far as a test for the f...
[6 replies] Last: I cant seem to get this to work,im trying to output the health but lea... (by LEESI)
Problem with "gets()" or cin.get()
 
Hello I have a problem with the gets() and cin.get() functions when the same program uses also the "cin>>" one. When I compile and run, the "gets()" function s...
[7 replies] Last: Your error is because you are using getline improrperly. In your case,... (by mcleano)
string decoder
 
hey all! I am writing a program that takes a string, and tries to create the copy of it using all possible combinations, like a sort of bruteforce. Can some...
[11 replies] Last: could you explain how to write the same code again, but with differen... (by blackcoder41)
free book? where find?
 
I'm a professional with C#, but I would like to learn C++. Know a true language. How is book recommended? Att.
[3 replies] Last: If you want to learn it, and learn it well, you need books [that are n... (by moorecm)
by Null
operator ::
 
Is there any difference between these two? int x=0; class example { public: void modify(int m) { x=m; // opeator :: not used here } }; i...
[4 replies] Last: Thanks. (by Null)
by ARWA
header file of class...there is smth i dont Know what!!
 
hi,am faceing smth that i didnt figure out whats the problem !!! im realy mad :( becaus my code is prety fine... this is the code: //this is the specifica...
[2 replies] Last: what amistake thank you Bazzy verey much :) ill not do it again....st... (by ARWA)
Comparing array's element with entered value ?
 
How to compare array's element (5 elements) with entered value ? thank you
[3 replies] Last: For loops... maybe? As the post above mine by blackcoder41 says, it... (by Albatross)
Determining byte values per character
 
How do I determine the byte values of an array? The function sizeof() determines the size right? not the actual byte values. Is there a function in determinin...
[3 replies] Last: or cout << 'A'-0; (by blackcoder41)
by ALB
Problem with reading records
 
used friend void append(SalesRecordPtr& head, SalesRecord& thisrecord) as my append fuction what should be in the question mark areas? SalesRecordPtr read...
[no replies]
This has never happened before...
 
I have to plan, code, and execute a program assigned by my professor. I am not here to ask for help with the code and figuring it out, but rather I am looking f...
[4 replies] Last: Make sure you are clicking on the exe file and not the cpp file. VS... (by Duthomhas)
by tysonc
Identical strings that aren't identical
 
I have two strings one was retrieved from an input file using getline(name) and the other is at a position in an array of structs, Struct .type. I have outpu...
[6 replies] Last: #include <fstream> #include <iomanip> #include <iostream> #include... (by tysonc)
problem with function
 
I'm trying to convert the numerical value of months to the name using a void function but I cant get it to compile it give me a strange error that is too long t...
[4 replies] Last: Lookup tables are your friends: //... const char * month_na... (by m4ster r0shi)
Derived types
 
Hi, I'm having problems copying an array holding pointers to base and derived objects. (ie. I declare an array of pointers to the base class. I use the new o...
[4 replies] Last: I should clarify, the code compiles alright, but the last line wasn't... (by m4ster r0shi)
John Napier's Algorithm
 
i am trying to make john napier's algorithm table can anyone help me in finding the error .. this code is not full /* John Napier's Algorithm */ #...
[no replies]
string decoder
 
hey all! I am writing a program that takes a string, and tries to create the copy of it using all possible combinations, like a sort of bruteforce. Can some...
[2 replies] Last: Doh! I like to use different variable names to you. With this algorit... (by Scott Vass)
Type something out.
 
Hi, I really can't think of a good way to word this, but I'll do my best. I am trying to type something out. Specifically something on the internet, for exam...
[1 reply] : In Windows, there is a section of the .NET API for simulating keypress... (by Albatross)
pointer and variables
 
This program has three syntax errors the program should print the x and y coordinates of the sample points inputed by the user it also,should print if the point...
[4 replies] Last: Thank you thats a great way to read syntax errors. I'm trying to to g... (by marty09x)
Can somebody explain the STATE function in C++?
 
I'd like to know more about the concept of State Machines, and have seen code that has STATE in the body of the C++ code, but it is not in the Main. Can someon...
[1 reply] : A state machine is an abstraction -- and a very simplistic (but comple... (by Duthomhas)
May 2010 Pages: 1... 282930313233
  Archived months: [apr2010] [jun2010]

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