Beginners - May 2014 (Page 34)

by quayda
sentinel/continue to loop program
 
Hi. I have this code, which is working well, but when I prompt the user to input either sentinel value or any key to continue, they have to press enter for the ...
[5 replies] Last: Nevermind, I got it! Thanks for your help :) (by quayda)
Problem with dynamic memory and classes
 
Hi, guys. I have a problem with dynamic memory allocation and classes. I am to implement a class Folder that has methods to create, delete and print names of fo...
[4 replies] Last: ill try it, thanks :). Thing is, my assignement was to fo it with vo... (by niggastolemybike)
by f1995
helpp
 
Write your question here. hello guys, need some help: You will be given n integer numbers. Print the two numbers whose difference is the closest. Show any...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by keskiverto)
by akmhc
What does this code segment mean?
 
In the program in the link provided, what does the following code segment mean? I can't understand what it does and why we had to use a pointer here. http://...
[2 replies] Last: Thank you so much (by akmhc)
by amr92
Solve for function
 
can any one solve this one for me, i have no idea how to solve it. Input two character arrays Name1 and Name2 of the size 12. Print both arrays in reverse or...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by MiiNiPaa)
by h4ever
Debuging using crtdbg
 
I am learning how to debug. According one article I have created this function. What they don't explain is when and how to use it. What exactly to do? Should ...
[no replies]
Help with this program!
 
I need help to break the loop below so that if all the letters in the word are guessed and the loop is broken. Then, guessedLetters should be less than 6 allowi...
[no replies]
clearing specific texts in c
 
Hello I'am looking for an alternative of system("CLS") , i don't need my whole screen cleared , i just want a specific text cleared for example : i want the w...
[1 reply] : Perhaps the following will give you an idea or two: https://gist.gith... (by cire)
How did you learn C++?
 
I'm around halfway through reading "Sam's Teach yourself C++ in an hour a day" and I'm finding a lot of useful stuff in here, although all the basics are taught...
[3 replies] Last: Its not as easy as simply reading a book, a lot of your learning come... (by Codermik)
Array Question
 
I have an array question (which we barely covered in class) Can you point me in the right direction for this: "Write a function named "eliminate_duplicate...
[1 reply] : This would be much easier using a vector, ie. http://www.cplusplus.c... (by Codermik)
by sambos
C++ / Graphics
 
Hi, I'm an educator specialising in physics / astrophysics. I have been teaching myself C++ and have made several simple programs to test my understanding. ...
[10 replies] Last: One more suggestion Why not try Ogre3d And Irrlicht These two are gr... (by Mizfizz)
Need help with difficult copy constructor for derived class
 
I have been looking at examples of copy constructors for derived classes but I really don't understand how I'm supposed write this one. I have three classes Lin...
[2 replies] Last: Neither Media, nor CD need explicitly defined copy constructors. The ... (by cire)
how to empty an array position and go backward
 
I need to clear/empty/dunno how to say an specific array position. I input the info, which is showed like this at output: 0 100.00 xxxxxxxxxxxx ...
[10 replies] Last: thank you guys =) (by dualdark)
Levenshtein Distance
 
How do I backtrack and print out the alignment? Here's my code and some conditionals to get my second matrix to store the path but it doesn't appear right. Inst...
[9 replies] Last: Websearch for "Needleman and Wunsch". (by keskiverto)
How to read spaces in a string
 
Hi, im trying to read a whole sentence. Im trying this: struct ingresos{ float monto; string concepto,rfc; }ingreso ; void capturaIngresos(int p...
[2 replies] Last: thanks a lot =D (by dualdark)
Proving Algorithm Correctness?
 
Hi, I'm wondering if anyone could help me understand algorithm correctness. I've read the wiki page, along with lecture slides, but I have no idea how to apply ...
[4 replies] Last: Thanks! These are helpful guidelines :D Haha, nice quote. (by ECEsasha)
appending a linklist node that has a linklist as a member (1,2)
 
I am having trouble appending a class object node that has a member that is a linklist to that class object's linklist. The main linklist is called CDList. It ...
[25 replies] Last: Maybe you should start out with a simpler test in main: // Note: s... (by cire)
Is it possible to delete a dynamic allocated through another pointer?
 
int * fn1() { int * v = new int; return v; } void main() { int * ptr = fn1(); delete ptr;/////this kind of deletion doesn't cause memory ...
[9 replies] Last: Ok thanks guys, i guess i get what should i know about the delete and ... (by selenium)
Little design help
 
So let's say I have a player class that shoots bullets. I store the bullets in a vector. And then let's say I make all these cool little functions that let the ...
[10 replies] Last: That's really good advice. I think I've been to obsessed with "good de... (by kong288)
OpenGL Shader in SDL Platform Game?
 
Hello! I am new to SDL and just got a simple platform game with wall jumping and music to run: http://s18.postimg.org/k31mjej1h/Screen.jpg I have spent a lot...
[2 replies] Last: That's right, it s an OpenGL Context question! So say I want the Go... (by GoldStud)
May 2014 Pages: 1... 3233343536... 55
  Archived months: [apr2014] [jun2014]

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