Beginners - May 2009 (Page 10)

test last 4 characters
 
how do i test an input's last 4 characters... i want to make sure that the user input ends in .csv ... Not getting anywhere!!!
[4 replies] Last: If is a char array, try this: if ( !strcmp(".csv", input+strlen(in... (by Bazzy)
[question] char to const CHAR*
 
Hi all, I got a problem with my c++ code. I'm still verry new and i did not made the following code all my self.I only try to edit it but .. i ran into a probl...
[4 replies] Last: no i want it to send back the whole text. but i got an new code that w... (by matthijs)
Problem with passing values. Program ends unexpectedly
 
Alright, so for school I have this program where my instructor wants us to use two functions. The first one is to ask how old your dad is, and the second one ...
[5 replies] Last: The function that you use to get the age returns an int but that value... (by kenshin)
Restrict some functions
 
Hello, I have received a C++ source code from an untrusted source. I dont want to modify the source code....but I want to run it under restrictive mode such tha...
[10 replies] Last: right thank you soo much people.......i didnt get that idea from anywh... (by progfool)
by Null
Direct access to floppy
 
Hello, I need to access floppy disk directly (not files but sectors). I know how to write using lseek() and write() but how about reading? I'm using windows xp...
[4 replies] Last: Great article! This gave me idea to make a floppy formater. Thanks! (by Null)
by Eng124
c++ project about matrices :S
 
First of all i would like to thanks everyone here for providing help, i got so much help from this forum which made me joining it, and i hope to provide any kin...
[1 reply] : You should eliminate the goto's. (You are simulating function calls an... (by Hammurabi)
by nanger
about array in a class
 
I want to define an integer array in a class but its size are not determined in the definition but retrieved from a configure file when the program starts to ...
[1 reply] : Your idea sounds fine. (by jsmith)
by gogo
Debug Error
 
Hi ! can anynone ask me what to do! there is no errors in my code, but when it runs there is Debug error! #include<iostream> using namespace std; class C...
[1 reply] : all these 3 functions have out of bounds access errors: void CNumber... (by guestgulkan)
confusion in pointer declarations
 
what is the difference between these two char* val; char *val; and also typedef char *cpointer; Now cpointer is pointer to a character typedef Da...
[3 replies] Last: typedef char *pchar char* is considered as datatype pchar is the al... (by helios)
ok what I am missin in this bomb assignment.
 
I have to figure out that 6 inputs are to keep the bom from going off.I print $eax which is 6 and then print $edx which is 2. If I do cont the "bomb" go...
[6 replies] Last: This is easy. Hints: 0xfffffffc(%ebp) is a for loop counter t... (by jsmith)
by nanger
what is wrong with these codes?
 
switch(current_chunk_id%4) { case 0: PChunk chunk = new Chunk(current_chunk_id++, gCurrentTime, 0, 0.15); break; case 1: PChunk chunk ...
[3 replies] Last: it is a little strange that if we declare some variables within a pai... (by Disch)
by nanger
about dynamic binding
 
peer is a base class, aopeer is a derived class and schedule_new_chunk() is a virtual function defined in peer and overridden in the derived class aopeer ...
[3 replies] Last: ... (by nanger)
by plabur
choosing an input file
 
Hi! Can someone tell me how do I choose a text file to be an input (instead of typing manually) for debugging, in Visual Studio 2008? Thanks in advance!
[4 replies] Last: hahahahaha.. right... (by writetonsharma)
array and loop problem
 
Hi.It's not working.I am learning english.My english language is very bad.ok #include <cstdlib> #include <iostream> using namespace std; int maxdizi(in...
[13 replies] Last: understand thanks IDE10T ;) (by areyoupp)
Vector inside class
 
Greetings. I have a class that has a vector inside of it, and I am having trouble retrieving it after it has been set. I have boiled down the code to a s...
[4 replies] Last: And at that point, the default member-wise copy copy constructor would... (by jsmith)
by murva
Overload istream
 
I am trying to overload istream >> using char*. Please take a look at the code below and try to complete the function containing the operator>>, I could not do ...
[5 replies] Last: I appreciate the comments, I really take it seriously, because I know ... (by murva)
by nanger
an aspect about class
 
could the name of a member variable be the same with a member function for example class example { double value; public: double value(){return...
[6 replies] Last: thanks! (by nanger)
how to create a delete option in files
 
i need help finishing this code, the code is on spanish by the way, XD, but the code let you choose 7 options, 1)add new record, 2)view a particular record, 3)d...
[1 reply] : on what basis you want to delete a record?? second thing, why are y... (by writetonsharma)
by zokho
throw an exception
 
hi everybody it may sounds like a dump question,but i have a question is that how can I throw an exception in this case: this is a method of my assignment t...
[3 replies] Last: If the list is empty, then throw ListEmptyException( /*whatever args... (by Duthomhas)
Program ends unexpectedly
 
I'm making a grammar-based program for school. This is just the beginning of it, but once it reaches the function 'AskQuestion()' it just stops and the program ...
[6 replies] Last: Facepalm! LOL! (by Hammurabi)
May 2009 Pages: 1... 89101112... 21
  Archived months: [apr2009] [jun2009]

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