Beginners - December 2010 (Page 10)

Reducing matrix
 
Hi everyone, I'm doing a C++ program for school: it's about reducing an algebraic square matrix, i.e. for a matrix, a line and a column, return the matrix with...
[no replies]
Incorrect Unix Timestamp
 
I'm trying to get Unix Timestamp for this particular date and time 2010-05-31 05:46:37 The correct timestamp should be 1275284797, ctime is giving me the cor...
[1 reply] : The conversion is correct. You're changing the value of rawtime in ... (by kbw)
pointer function and getline problems
 
Is it possible to have pointer functions? I find it difficult using cin and getline in a loop. Pls how can I go about this? It's really frustrating.
[1 reply] : It's not difficult at all. This echo's stdin to stdout using such a l... (by kbw)
passing a type
 
Hi, I'm currently using a simple i/o conversion function template <class T, class U> inline void ss_convert(const T& t, U& u){ stringstream ss; ss ...
[1 reply] : I've used a dummy function that I specialise. For example: template... (by kbw)
Compiler trouble
 
I have a problem with this code: #include <iostream> #include <string> #include <string.h> #define N 3 #define H 7.5 #define OP 10.5 using namespace s...
[2 replies] Last: You're right, I forgot :P Thank you P.S. Have you some advice to i... (by Overflowh)
Get a character from serial port
 
Please bear with me, I am new to Embedded c. We are using a ADUC848 Microcontroller that has an 8051 based core. We are using Keil uVision 3. What we nee...
[2 replies] Last: My problem with understanding your issue is that logically it reduces ... (by Computergeek01)
wat C++ software to download
 
please am a new comer in the field can you enlighten me on how to download the right software for C++ programming and where to get it....thanx
[7 replies] Last: Turbo C++ and Borland C++ are way too old refer to the link I posted (by Bazzy)
string array sort function (whatch why dont work)
 
i wrote a function to sort string array based on charlen but when i execute it the compiler dont show any error or warning but vc++ debugger run and the code do...
[4 replies] Last: well char *ctmp = new char ; memset(ctmp, 0, size * sizeof(char))... (by coder777)
by sylar
Header file confusion
 
I have been programming for quite sometime in C++ but lately i realized i have been doing it all wrong. I used header files like iostream.h and non standard fun...
[7 replies] Last: My problem is solved. Thanks. (by sylar)
Using ignore() function with noninteractive input
 
I am trying to write a program that reads string data from a file and that uses the ignore()function to isolate words in the string that immediately follow "com...
[2 replies] Last: I want to read the string from a file and output it to the console. (by kaiser0792)
I am having trouble learning C++
 
I am having trouble learning C++. the way i learn is once i have something explained to me i grasp it and do it well. But i am having trouble finding a clear an...
[2 replies] Last: I have a piece of advice.Read carefully 1 chapter or one section that ... (by genesys)
by effizy
Open source project for beginner!
 
Any suggestions on open source project(s) i can contribute to or begin on my own? Nothing complicated - am just a beginner and would like to improve my knowledg...
[13 replies] Last: If you want to find assignments or challenges,you can google them.I am... (by genesys)
by plogen
Problems with my allegro game!!
 
I have been working om my space invaders game for a while now and now my head is all messed up... I cant get the image fiende to fall down... I have marked the ...
[3 replies] Last: Infinite loops- they can be really painful,especially when you don't s... (by genesys)
Nested loop question
 
#include <iostream> using namespace std; void main() { int times; int i, j; for (i=0; i<3; i++) { times = i % 3; if (times == 0) ...
[3 replies] Last: Btw, use int main() . (by firedraco)
Check if char array equals string
 
Hello, I have a char array that represents the first word read in a text file. The first word in my file is "PROGRAM". I want to have an if statement that sa...
[3 replies] Last: Disch, The strcmp worked perfectly! Thank you so much for the help. (by gberg927)
Linked list
 
Hi, i have some problem with linked list. This my main class class StockList //stock list { public: StockList(); ~StockList(); int getLeng...
[no replies]
Inserting vector into vector
 
I've been looking around and I couldn't find a decent solution that would help me to insert one vector into another. Heres what I have to do: I have to fi...
[12 replies] Last: Fab - yes :). Either way, the problem is solved. Thanks a lot gu... (by Alvyxaz)
by Mazd
string
 
hi,i need to cout something like this: "me" i mean i want to print double quoted string.tx
[3 replies] Last: thanks.it work. (by Mazd)
queue contents lost between functions/classes (c++ noob, experienced with PHP)
 
I am new to C++. I have a PHP background so 'some' coding experience. Hopefully this is just a simple RTFN issue - but I have been trying RTFN for some time...
[2 replies] Last: guestgulkan, Thank you so much for taking the time to not only prov... (by James259)
how to save output in a text file
 
Could someone tell me how to get the output of this program into a text file ? #include <iostream> #include <math.h> using std::cout; using std::cin; ...
[5 replies] Last: Thanks for reply hanst99. Albatross I understand your opinion, but ... (by khaled124)
December 2010 Pages: 1... 89101112... 35
  Archived months: [nov2010] [jan2011]

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