Beginners - May 2010 (Page 6)

char* copy function
 
Can someone tell me why this generates garbage output for 'Destination'? It's supposed to copy one char* to another char*, similar to strcpy. Looking at the deb...
[1 reply] : You have quite a few off-by-1 errors, as well as some other flawed log... (by Disch)
How To COUT Using Screen Coordinates With JPEG Images
 
How do you write C++ to display information with JPEG images and coordinates? This is for a software application that runs in Windows XP using an .exe file p...
[4 replies] Last: I am creating a user interface similar to the computer display screen ... (by alanarqueza)
Trouble With Randomizing
 
I've tried to create a program that shows 25 random words and asks for you to re-type them (memory game). It works fine except the words aren't very random as e...
[4 replies] Last: Thanks a lot for all the help. (by MottMan)
by cmccmc
How do you get there home directory
 
How do you detect a users home directory in windows? By home directory I mean ("C:/Users/*This*RandomName*This*/
[7 replies] Last: thanks that helped (by cmccmc)
by ac8231
Trying to count words C++
 
Hey, I am trying to do a word counter and am stuck... The object of this assignment is to 1. read the document and count the words 2. output the words 3. ...
[5 replies] Last: http://cplusplus.com/articles/firedraco1/ ^Everything you could possi... (by Albatross)
How do we find which one among the given ints is the largest?
 
Hi there guys! I am using C to write a program for an embedded system. I have come to a point where I need to find which of the provided numbers is the larges...
[7 replies] Last: Ok, i programmed an atmega myself, it was 16Mhz but still i had no pro... (by RedX)
graphic in c++
 
Are there in any graphic in Dos of c++ language ?????????????? ::S:S
[6 replies] Last: okay thanks for you (by khaled mohamed hassan)
Output the sums of the even and odd numbers for a list of input values
 
I need to write a program that prompts the user to input a number of integers, then displays how many even numbers (including zeros) and how many odd numbers th...
[6 replies] Last: @kalel Sure, post your code. (by RedX)
Why is it not working!?
 
finished
[11 replies] Last: Eh. There wasn't really, just a problem with reading stuff into arrays... (by Albatross)
C++: Writing an array of characters to a file
 
This function is called when the user wants to append information to the end of a file. Im not sure what is wrong with this, but Im sure its something small, ba...
[3 replies] Last: Yes, I always found the student help part of the University to be less... (by Duthomhas)
Inherited operators
 
Hey all, here is the problem: I'm built a Matrix class and I did the dirty work redefining all the boring operators (+,-,* etc.). Now I needed a specifical Vec...
[9 replies] Last: Indeed, thanks for the help guys! (by valleymannn)
Returning date string from function
 
Hi!! I'm trying to return a string of charachters from a function. bufferF in Fdato() function prints the correct date on the screen. I need this date to be...
[2 replies] Last: Your char buffer is a local var. It gets deleted when exiting the func... (by RedX)
trying to add leap year into program
 
I'm not really sure as to how to add leap year in here. I looked on wikipedia and got the pseudocode but I still don't understand. Thanks int isLeapYea...
[7 replies] Last: #include <iostream> using std::cout; bool IsLeapYear( int ); i... (by michelramos)
string decode
 
Hello, I was working on string decoding. Given a decoded string Q need to find the original string P. The equation for original string is given as P = Q[i-1...
[1 reply] : Accessing chars in a std::string can be done with .at() (by RedX)
by neoxyn
trying to connect to mysql - gives me linker errors
 
#include <mysql.h> and //try to make connection to database MYSQL *connection, mysql; MYSQL_RES *result; MYSQL_ROW row; int query...
[no replies]
I am my wits end
 
The space at the end of some employee ID is killing me.. Can someone teach how can i exclude them? ifstream infile ; infile.open("UEMPLOYEE.DAT",ios::in) ...
[1 reply] : Google for trim whitespace. http://www.codeguru.com/forum/archive/i... (by RedX)
Emulation
 
I am a beginner with C++ and would like to explore writing emulation. I know at this point, it's pretty intense relative to where I'm at, so where should I sta...
[2 replies] Last: @OP, You could try creating a very simple virtual machine, design a s... (by chrisname)
this is my first project
 
this my first project if anybody want to ask about it and this is my fist participation in this site. this project called Grade Exam of choose questions go to ...
[7 replies] Last: Good luck (by Denis)
by zulzz
Global variable not global.
 
Hey. I'm reading up on the beginner's guide from msdn.com and i've come to learn the basics, however when i try to compile a program that explains the differenc...
[11 replies] Last: yes i read that it is not recommended to use global variables, but you... (by zulzz)
cin.get()
 
hi in this code loop executes more time time loop, it is something wrong with the cin.get(ch) function call(i mean i dont know it works). can someone help w...
[1 reply] : I think you to need move cin.get() to loop while and if I am write you... (by Denis)
May 2010 Pages: 1... 45678... 33
  Archived months: [apr2010] [jun2010]

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