Beginners - April 2011 (Page 37)

How to disable the "edit" control ?
 
Hi all, I have created an edit box using the following code : txtrcv = CreateWindow(TEXT("edit"), TEXT("Messages for you will be displayed here."...
[1 reply] : I used ES_READONLY option while creating the window ... and the proble... (by TheAmitKumar)
Can't seem to print argv[]
 
I'm trying to be make a console program that looks in a specified folder and shows the name of the first file. In trying to print argv (the directory path) it ...
[no replies]
i wanna to write acode of this program
 
3 variables first takes 15 sec. second takes 10 sec. third takes 5 sec. each of these take 5sec. to go another
[12 replies] Last: Codefreak, you're not helping the situation. Don't stoop to their leve... (by packetpirate)
undefined string.
 
i declared a random int named position in int main() and when i was making a class it said that it was undefined. help please???????????????
[11 replies] Last: How the hell do you learn about classes before function parameters? A... (by packetpirate)
pointers testing
 
#include<iostream> #include<cstring> using namespace std; int main(void) { char* name = "Charmander"; cout << "The name is " << name...
[5 replies] Last: char* name = "Charmander"; As I know, this should be char const* ... (by stereoMatching)
by snakec
c++ using extern keyword
 
hi can any body explain working of extern function with example code? .I don't know how to use them ?how to declare them ?how to define them? please explain wit...
[1 reply] : functions are all extern by default. and variables are not. define: ... (by sasanet)
Haskell?
 
Hi Can anyone tell me where I should post Haskell related Question? Any good website :( I cant find any.. If by any chance anyone can help me with this quest...
[2 replies] Last: Thanks Albatross for pointers. I'm learning C++ as well!! (by whoami32)
Weird segmentation fault (1,2)
 
so im making an array of size K and then a for loop will put numbers in the array in descending order but im getting a segmentation fault in my for loop. for(...
[22 replies] Last: ok cool i got it working right thank you very much for all of your hel... (by sorthon123)
by zxzxi
Quick question about classes/pointers
 
Hey, I'm working on an assignment for a class of mine that requires coding the Burnt Pancake problem using pointers. I had a quick question about something that...
[4 replies] Last: For example: In the header file you have: void SetSize(int); In th... (by zxzxi)
by eze123
Help with for loop
 
I'm making a code that will recieve the dimensions for four rooms and then add them together and give me variable totalSqFeet. I have to use a for loop to achiv...
[4 replies] Last: if ( width < 10 || width > 50 ) { cout << " \n Width is not between 1... (by TrevorD)
by Rave
How to delete in File
 
So i have to delete a certain text (or replace it with white space) in c. so i have a file: oranges 556 44 usa Apples 44 66 ma now lets say i am at a...
[6 replies] Last: Ok, I don't know how this command is used to its full extent, however ... (by Codefreak101)
How to create class
 
Hi experts! Can some one help in explaining the step i can take to create class name "Parking" in a parking ticket calculating system, with member function that...
[7 replies] Last: @father sloth AMAZING ARTWORK xD musta' takin days! xD as far as the ... (by Codefreak101)
by UGAD51
Issues with class/polymorphism
 
I have written a program with a class abstractSort that is to sort an array and count the number of times through the counter. Program 1 runs and counts, but d...
[no replies]
Receving Errors When Compiling Code
 
This what what I'm getting as errors. tempDriver.cpp: In function ‘int main()’: tempDriver.cpp:20: error: expected initializer before ‘int’ tempDrive...
[11 replies] Last: Yeah I'm not sure. I might have to make a makefile. (by KentuckyNative)
Weapon Classes
 
Hey There I recently started on my new top down shooter using c++ and SFML and I'm just setting up the class hierarchy as before I begin the serious coding ;...
[10 replies] Last: The idea was that the only difference between the weapons is their pro... (by ne555)
Reading Multiple lines skip-over
 
Hey! I'm reading a file, and I set up this code: fstream target; target.open("C:\\Users\\Tim Hanewich\\Documents\\TextHere.txt"); string str; do { g...
[2 replies] Last: Okay, I think i got it now. Thanks man! (by DeeJayParadice)
pointer testing #2
 
#include<iostream> #include<cstring> using namespace std; int main(void) { char temp; char *name = &temp; cout<<"input something"; cin>>...
[1 reply] : char temp; // this is a single character variable, it ca... (by matsom)
short question about reference
 
hy, for example: float& function (float x) { float y = x; return y; } function return's reference. reference to what??? how function can have as ret...
[3 replies] Last: The second example is returning a reference to the value at ptrNajmanj... (by closed account 3hM2Nwbp)
searching for link list samples
 
Anyone can give me a link where there's a sample program of link list inserting? (e.g, u insert some numbers in the link list, and the link list will display th...
[4 replies] Last: ok it's a unary link list let's say link list is 45, 23, 12,5 decendin... (by hunkeelin)
Monthly Sales
 
Hello, I am having problems doing this programming that wants to read monthly sales into a dynamically allocated array. This is the question. Write a progr...
[1 reply] : could u paste your homework code here you've created so far to see whe... (by sasanet)
April 2011 Pages: 1... 3536373839... 55
  Archived months: [mar2011] [may2011]

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