64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for kv79

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); …

Member Avatar for kv79
0
76
Member Avatar for kv79

Hi i always mix up a NULL and '\0' and 0. Can you write me when to use these things?

Member Avatar for kv79
0
185
Member Avatar for peeta

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. …

Member Avatar for peeta
0
120
Member Avatar for That Asian Guy

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); } } …

Member Avatar for That Asian Guy
0
102
Member Avatar for Queatrix

How would I execute a C/C++ program without using a windows library? (Like ShellExecute)

Member Avatar for Queatrix
0
152
Member Avatar for TheBeast32

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 …

Member Avatar for WolfPack
0
352
Member Avatar for plusplus

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 …

Member Avatar for plusplus
0
85
Member Avatar for Tiger909

[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 …

Member Avatar for invisal
0
169
Member Avatar for Max_Payne

[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 & …

Member Avatar for Max_Payne
0
588
Member Avatar for zoner7

[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 …

Member Avatar for kv79
1
399
Member Avatar for EMUGOD

[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[][] …

Member Avatar for EMUGOD
0
103
Member Avatar for jellyfish888

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 …

Member Avatar for darkagn
0
446
Member Avatar for Dukane

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 …

Member Avatar for Dukane
-1
187
Member Avatar for djJonno

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) …

Member Avatar for djJonno
0
280
Member Avatar for kimbokasteniv

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 …

Member Avatar for kimbokasteniv
0
153
Member Avatar for ferhatkuskaya

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 …

Member Avatar for ferhatkuskaya
0
134
Member Avatar for lifei

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; …

Member Avatar for invisal
0
150
Member Avatar for ghostsquad

[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 …

Member Avatar for ghostsquad
0
181
Member Avatar for kv79

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 …

Member Avatar for kv79
0
209
Member Avatar for toolmanx

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 …

Member Avatar for Comrade Ogilvy
0
131
Member Avatar for xeption12

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 …

Member Avatar for xeption12
0
94
Member Avatar for nuBudDy

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 …

Member Avatar for nuBudDy
0
182
Member Avatar for rwkopcke

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' …

Member Avatar for jbennet
0
143
Member Avatar for cheers4beer

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. …

Member Avatar for cheers4beer
0
90
Member Avatar for ferhatkuskaya
Member Avatar for Jade_me

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

Member Avatar for debasisdas
2
103
Member Avatar for rajatC

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 …

Member Avatar for Jishnu
0
231
Member Avatar for lydia21

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.....

Member Avatar for lydia21
0
77
Member Avatar for x3n1x

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 …

Member Avatar for x3n1x
0
153
Member Avatar for Mouche

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 …

Member Avatar for Grenwood
0
448
Member Avatar for jobs

[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 *)?

Member Avatar for Narue
0
348
Member Avatar for CaninA

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, …

Member Avatar for CaninA
0
225
Member Avatar for chr.kj

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); …

Member Avatar for chr.kj
0
241
Member Avatar for swaters86

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 …

Member Avatar for swaters86
0
156
Member Avatar for jellyfish888

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...

Member Avatar for ~s.o.s~
0
494
Member Avatar for invisal

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 …

Member Avatar for dubeyprateek
0
373
Member Avatar for vs49688

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] …

Member Avatar for Ancient Dragon
0
97
Member Avatar for jobs

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

Member Avatar for Narue
0
108
Member Avatar for toolmanx

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. …

Member Avatar for Salem
0
532
Member Avatar for frazehmad

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 …

Member Avatar for frazehmad
0
90
Member Avatar for <1337>Me</1337>
Member Avatar for Jishnu

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 …

Member Avatar for Jishnu
0
156
Member Avatar for rinoa04

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 :)

Member Avatar for sadicarnof
0
146
Member Avatar for majestic0110

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.

Member Avatar for majestic0110
0
161
Member Avatar for majestic0110

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

Member Avatar for majestic0110
0
221
Member Avatar for FSinister

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 …

Member Avatar for FSinister
0
153
Member Avatar for HLA91

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 …

Member Avatar for invisal
0
730
Member Avatar for meirab

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: …

Member Avatar for meirab
0
205
Member Avatar for djcritch

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: ============================================== …

Member Avatar for nav33n
0
751
Member Avatar for mithesh

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

Member Avatar for nav33n
0
105

The End.