64,152 Solved Topics
Remove Filter ![]() | |
Hi , [code=C] /* Inputs a list of strings from the keyboard, sorts them */ /* in ascending or descending order, and then displays them */ /* on the screen. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #define MAXLINES 25 int get_lines(char *lines[]); void sort(char *p[], int n, int sort_type); … | |
Hi i always mix up a NULL and '\0' and 0. Can you write me when to use these things? | |
hello again i have mac computer and i have xcode on it. i am looking for some use full beginners books or tutorials. Right from start i have no previous knowledge of c++. can any one suggests any book for site for beginners which specially deal with g++ and xcode. … | |
I was trying to delete the currently selected listview item using MFC methods, but obviously they werent compatible How can I accomplish this in VS 2005 (standard .NET windows forms NOT MFC? I have tried [code=C++] void CMyListView::DeleteSelectedRow() { int nIndex = GetListCtrl().GetSelectionMark(); if(nIndex != -1) { GetListCtrl().DeleteItem(nIndex); } } … | |
How would I execute a C/C++ program without using a windows library? (Like ShellExecute) | |
Hi, i have been making a program that tests a computer owner's firewall. It gets input from the client i made, and does a system() with it. Is there any way to make the firewall not block the program right when i make a scocket? Oh, im using Dev-C++ 4.9.9.2 … | |
When resizing the form, I resize the toolbar on top. When it gets too small for all the buttons on the toolbar to show I want to either Split the buttons into two lines or Add a button at the right hand corner which includes as menubuttons all the buttons … | |
[B][COLOR="Red"]hi all, I am new here,and I wish I could find a solution for this program My program has to check if the number is prime or not?, my program is working properly with numbers greater than 1 (n>1), I want my program to display a friendly message when the … | |
[B]Point.h[/B] [code=c++] #prag... #pragma once #include <iostream> using namespace std; class Point { private: int x; int y; public: Point(void); Point( int x, int y ); Point( const Point &xPoint ); ~Point(void); void setX( int x ); int getX() const; void setY( int y ); int getY() const; Point & … | |
[CODE] #include <iostream.h> #include <time.h> #include <stdlib.h> #define MAX_RANGE 1000 main () { long value, guess; int tries = 0; srand ( time (NULL) ); // Initialize random generator value = rand()%MAX_RANGE+1; // Get random between 1 and MAX_RANGE cout << "A random number has been selected between 1 and … | |
[CODE] int[] h0 = new int[] {0,0,0,0,0,0,0,0}; int[] h1 = new int[] {0,8,8,0,0,8,8,0}; int[] h2 = new int[] {0,8,0,0,0,8,8,0}; int[] h3 = new int[] {0,0,0,6,9,0,0,0}; int[] h4 = new int[] {0,0,0,9,6,0,0,0}; int[] h5 = new int[] {0,8,0,0,0,0,8,0}; int[] h6 = new int[] {0,8,8,0,0,8,8,0}; int[] h7 = new int[] {0,0,0,0,0,0,0,0}; int[][] … | |
I have a homework to get the average of x number...I was thinking that in order to get this I should just ask the user to input all the numbers that that want to get and using comma as separator...unfortunately, I don't know how to do this...below I have my … | |
![]() | I have a project which I created a setup for in an MSI file. My computer crashed, and I lost all of my work. Fortunately, I had the MSI setup file out on the web. Now, I have my MSI file and I can install the program. But is there … ![]() |
Hi, Just a short question. I was wondering if one has a base class for example bird and a derived class pigeon, if i instantiate an object of each class, B1 and P1. Is it possible to pass the address of B1 or P1 into a function such as DoSomething(&B1) … | |
The only experience I have in programming is with Java, and I am somewhat experienced in that. However, I have only just touched the surface of javascript by implementing google maps into a page of mine. My question is in regards to what I should keep in mind when creating … | |
1. "Memo1" component that hides value such as 100,200,300 or 450 ounce etc. 2. "Memo2" component that hides value such as 50,100,150 or 225 ounce so the component will store the decreasing values from 100,200,300 or 450 pounds. Thus the bar image's height will be 50% of the barimage old … | |
Can i know what's wrong with the below source code? can i put the variable x, y like this? How it can't work? [code=c++] #include <Windows.h> #include <mmsystem.h> #pragma comment (lib,"winmm.lib") int ,x,y; void CTestingDlg::OnPlay() { // TODO: Add your control notification handler code here UpdateData(TRUE); CString strFreq; CString strHL; … | |
[URL]http://www.daniweb.com/blogs/showentry.php?entryid=655[/URL] In reference to the script made by ben at the above address. I'm trying to decipher how to create a toggle where as, only one "slideblock" can be open at a time. When you try to make one visible, all others "slidein". Anyone have any ideas? Javascript has always … | |
Hi to all, I want to know how to get into dll file. I do not now anythig about dll. I do now something about Applications. So if you can give some link with example and with dllEntryPoint i will send the GOD's to Answer your wishes(:D).I have nothing to … | |
I recently sent a request for help because ReadFile kept crashing for me. The moderator sent me some code which cured my problem. My next step was to experiment to see what I had originally done wrong. (For further info see ReadFile crashes by toolmanx.) I started by replacing each … | |
Ok i'm trying to build a header file which then i can include it for programs that use singly linked lists but somthing is fishy here...: here's the code [CODE]#include <iostream.h> struct nod { int info; nod* next_adr;}; void add(nod* &v, nod* &sf, int val) { nod *c; if(v==0) //if … | |
hello, i neeed help badly.my problem is i want to retrieve the record that has just been added. let say: step :load RESERVATION form->fill in details->click the save button->load RECEIPT form as soon as i click the save button, i want the records to be displayed in RECEIPT form. all … | |
I have just tried to use Dev-C++ v 4.9.9.2 IDE GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA When I compiled my first program I received a link error: [Linker error] undefined reference to `WinMain@16' … | |
I want to store data that will be read from and written to by two executable files. This data file will be used to store settings that are common to both executables. To keep the user from inadvertantly modifying the data file, I would like to limit its write access. … | |
hi masters.... does any one know how to flash window form ?? i don't have idea to do this problem.. please help me.. best regards | |
hi....well this is my first post in this community...i hope people here will help me in my doubts... I am an intermediate level programmer of c++... i have a doubt regarding the permutations of a given string and permutations of first N natural numbers... i have written a program for … | |
i have a form where the employee should type in-time(attendance)........ i want the user to insert only once in a day..... if he tries to insert the data in same day the it should display error message..... | |
Hello, This is my first post here, so Hi everyone :). I was advised to come to this site by a friend regarding a query that I have, so here I am. So we have the E-Commerce subject in this semester. One of the case studies given to us involves … | |
![]() | Hello, I worked with Python for about a year. Then I moved on to C/C++. Now I'm learning Java. I know the basics of programming really well, and I'm starting to get a good grasp of OOP. I'm learning the syntax of abstract classes and inheritance in Java. I thought … |
[QUOTE]aptr = malloc(nrows * ncols * sizeof(int)); rowptr = malloc(nrows * sizeof(int *));[/QUOTE] What is the different with have no * inside sizeof(), eg sizeof(int), vs sizeof(int *)? | |
plz i wanna sol for this q with describ anyone can help me ??? write C++ program cosist of two structures - The first called "Address" consist of three elements (city, state, and zip code). - The second called "Employee" consist of seven elements ( Employee name, number, Address, Birthdate, … | |
Hi. I´m having some trouble with my search code. I'm trying to make it search in either my varenummer field or varenavn field. My method to do so looks like this: [code] public KasseInterface søgVare( String varenummer, String varenavn ) { System.out.println( "Søger efter vare med varenummer: " + varenummer); … | |
I usually deal with front end stuff involving just xhtml and css, but I've been dabbling in vb lately...because I got this web dev job that requires it. My manager recognizes that I had no previous experience with vb, so he offered to help me on it whenever possible. Now … | |
Can anyone please help me with my sorting Array...my teacher asked me to do a code for sorting array using html and servlet. I don't know how to start this program since I am still new in java...please help me...if you can provide example code then that would me appreciated... | |
Firstly, I got this class: [code=cplusplus] class A{ public: void show() { std::cout << "Hello World"; } } a; [/code] I am trying to get the address of [B]show()[/B] function. [code=cplusplus] int main() { void (*ptr)(); ptr = &a.show; *ptr(); return 0; } [/code] And, it doesn't seem to work … | |
![]() | Hi Guys. I am relatively new to C++ so i may seem a bit inexperienced, but please bear with me. I am doing a little c++ project to help increase my experience and i have come to a stand still. (I have defined loopcount earlier on in the program) [code] … |
char stmt_buf[1024], buf[(1024*2)+1]; stmt_buf ="SELECT id, title FROM post LIMIT 5;"; I get an error: connect2.c: In function ‘main’: connect2.c:217: error: incompatible types in assignment | |
I am having trouble getting ReadFile to work for me. I am runnng an AMD with XP SP1. I compile with a .cpp extention normally using Borland Bcc32 but I have also compiled using cl.exe. I declare LPVOID lpBuffer and have tried assigning memory using malloc. I also tried GlobalAlloc. … | |
Hi, I just joined this community and inspired by roaming in it. However, I would like to discuss a problem - I'm having. I'm developing an application for property management. I've a table with some general columns as well as some specific. For example; General: [Buy OR Sell] , [Plot … | |
your homework." What does this mean. | |
Hello, I'm planning to do a project which involoves a lot of GUI. Does anybody know whether there is any IDE available that supports a code wizard feature for C++? For eg in VB, we design the menus, frames, text labels, etc. and when we click on 'generate code', the … | |
Hello, I am interested in learning Visual Basic programming language and am a beginner. Can anyone introduce any tutorial resources or e-book for a beginner in Visual Basic. Thank you very much :) | |
hi there, could someone please recommend a good book on PHP (i am new to php). I would like said book to cover how apache/mysql/php and drupal work together, and also some eamples of php in action. many thanks. | |
Hi there, I am brand new to php and i am having difficulty installing php/apache/drupal/mysql. if anyone could point me to a good tutorial on how to install these items i would be very grateful. thanks in advance | |
Hi, I'm new here, but you'll probably be seeing too much of me before long ;) My names Daniel. I have this sort method for sorting (essentially) an array, but it does strange things that i can't quite figure out, and it doesn't sort. the array is a feature of … | |
Hi guys Im trying to make a maths game for a friend of mines little brother jase, but I need it to generate 2 random numbers between 1 and the maximum number that jase said. I cant figure out how to get the rand1 = (rand()%10)+1; so that the 10 … | |
i have an interest in boost/regex library - i need to extract url from a file ----> bookmark.html (from ie6) the regex demo programs use this library - but it is from 2003. when i try to run the program - i get an error: LINK : fatal error LNK1104: … | |
Hi, Got a bit of a problem with form, i need to be able to update a number in a mysql database using an html form. so basically i need to increment or decrement a number using a text box and a submit button. heres the code i got: ============================================== … | |
Hi All, I need to parse CSV file header in order to know the Fields present in the CSV file How can i do this in php, Pls help me Thnx in advance Thnx & Regards, mithesh |
The End.