51,593 Topics

Member Avatar for
Member Avatar for nats01282

Hello i am after a piece of code that will change my ip address every 30 seconds, i have no idea were to start so any help will be appricated thank you

Member Avatar for sundip
1
141
Member Avatar for mrnutty

You are given a number D, for which 0 < D < 1,000,000 [B]Your task[/B] : is to find the number of irreducible fractions for a fraction of the sequence, (D-1)/D , (D-2)/D ... 1/D. For example, let D = 12; Then listing all fraction increments of 1/D we get …

Member Avatar for mrnutty
0
295
Member Avatar for PixelExchange

Hello everyone. I am attempting to build a "form" using Win32 and C++, which contains all of the necessary elements (drop down menus, radio buttons, and check boxes). The problem is, I can find absolutely no resources as to how I would code a drop down list within Win32. The …

Member Avatar for PixelExchange
0
147
Member Avatar for dwlamb

I'm trying to write a CGI script as part of a web technology programme I am undertaking. There's a challenge with getting form data to concatenate into my SQL strings to populate my database which is in Postgre. This is my HTML form: [CODE="HTML"] <form action="review_input.cgi" method="post"> <input type="hidden" id="cdid" …

0
71
Member Avatar for coding101

how can i make a ragged array like this?? a[0][5] a[1][6]; a[2][4]; a[3][3] im stuck with pointers and vectors

Member Avatar for daviddoria
0
106
Member Avatar for Rachel Ross

Look up Simpson’s Rule and explore the effect on this integration method of changing the strip size on the error. Also, explore the effect of changing the strip size in the left-hand and right-hand rules for integration. Compare the convergence of the integral as the strip size decreases for all …

Member Avatar for daviddoria
0
116
Member Avatar for doktor9

Hiya Guys!!! Am hoping you guys can tell me what I'm doing wrong. My Code compiles, and seems to run OK up until it gets to the "if" statement towards the end. Instead of waiting for a response it just closes. [CODE] int main() { cout << "\n\t\tWelcome to Doc's …

Member Avatar for mrnutty
0
109
Member Avatar for William Hemsworth
Member Avatar for William Hemsworth
2
7K
Member Avatar for hussey001

[CODE]#include <iostream> #include <fstream> using namespace std; void countWords(fstream &myText, int word); void countLines(fstream &myText, int lines); void wordLength(fstream &myText, int length); int main() { char textLine[100]; int lines = 0, word = 0; fstream myText; myText.open("myText.txt", ios::in | ios::out); if (!myText) { cout << "Cannot open file - myText.txt" …

Member Avatar for Fbody
0
108
Member Avatar for gaurav_13191

Hi, I have the following code which compiles fine but does not produce any output.. [CODE] using namespace std; #include<iostream> #include<cstdio> #include<conio.h> struct node { int data; struct node *link; }; void append(struct node *,int); void addatbeg(struct node *,int); void addafter(struct node *,int,int); void display(struct node *); int count(struct node …

Member Avatar for gaurav_13191
0
95
Member Avatar for wizrad

So I have this really simple situation and I have no idea what is causing this error. This is the relevant bit: header: [code=c] class foo{ void bar(int n); } [/code] cpp: [code=c] #include "foo.h" foo::bar(int n){ }; [/code] And then, from the main function in a separate .cpp file, …

Member Avatar for Fbody
0
267
Member Avatar for Andreas5

Hello, i got stuck again. When i read the text it all makes sense, but putting it all to use is a different story.:zzz: Accelerated C++ excersise 15-4: [QUOTE]15-4. Add an operation to reframe a Picture, which changes the frame characters. The operation should change all of the frames in …

Member Avatar for daviddoria
0
122
Member Avatar for Lukezzz

Hi, I have a code where I upload a file to a server. The code is shown below. As seen I use a loop to try to connect 10 times if attempts is failing. I have also put this in a try/catch block and at the end, I am showing …

Member Avatar for Lukezzz
0
246
Member Avatar for nssltd

Hey well i am using microsoft visual c# 2008 professional edition and i seem to be having trouble using the cursor. The cursor i am using is one from axialis cursor workshop examples. it is a .cur and it does work as i have changed my windows default cursors to …

Member Avatar for nssltd
0
255
Member Avatar for Lukezzz

Hello, I use a a flashcontrol in the Form application. If I have Flash installed on the computer, the control plays the movie fine. If I uninstall the flash from the computer, I receive this error when opening the form. I have tried to put this code inside a try{} …

Member Avatar for cgcgames
0
176
Member Avatar for iamcreasy

Can anyone tell me how to compile "mingw-util 0.3"? I am a little confused, when some article says "use make command and it is all done".But "make" command in unknown in my command prompt.I have MinGW installed which comes with codeblocks. I need it to compile MySQL driver, to use …

Member Avatar for iamcreasy
0
119
Member Avatar for helpme87

So i am trying to make a program that takes the date from windows (this is not where i have the problem). My problem is i want to use that date and create a txt file for each day. For example it would create a file named... 8_4_2010 for today …

Member Avatar for helpme87
0
156
Member Avatar for aabi

hi i m using widos 7 64 bit home edition and want to use borlandC++ taht is not supported by 64bit OS so i install DOSBOX0.74 and try use borlnad in it but seems to me not working as it firstly dosbox can not able to initialize some of it …

Member Avatar for aabi
0
313
Member Avatar for pdk123

Hello All, I need your help to understand , if the following code is ok ? (Baically to have polymorphism of different argument types ) class A{ ... ... public: int function( structA *ptrA); int function( structB *ptrB); } I am getting the compilation error saying the syntax error at …

Member Avatar for pdk123
0
121
Member Avatar for sbrohee

Dear all, I am completely lost and I don't see at all my mistake! I thought this would be a very easy step in the building of my classes. Thanks a lot for your help! In the context of graph theory, I have a class Node. As attribute of this …

Member Avatar for sbrohee
0
355
Member Avatar for Allophyl

When I ran a program that had a list of integers with 5000000 elements in it, I was surprised to find that it used 118MB of memory, even when the *only* thing done by the program is the creation of the list. As far as I understand, each node in …

Member Avatar for vijayan121
0
163
Member Avatar for sparton
Member Avatar for vijayan121
0
65
Member Avatar for pc0019

Hi! I am using the Boost uBlas interface for matrices and I'd like to be able to create matrices with the following syntax (or similar): [CODE] typedef boost::numeric::ublas::matrix<double> Matrix; //for clarity Matrix mat = {[1,1,1],[2,2,2],[3,3,3]}; [/CODE] The actual matrix should be 3x3 and look like the following - 1,1,1 2,2,2 …

Member Avatar for vijayan121
0
118
Member Avatar for cgcgames

Hi Everyon. Sorry to bother you all again. but I cant seem to figure out a solution for comparing information in these comboBoxes. What I want it to do is take the information the user selects and compare it with another drop down. so lets say one drop down says …

Member Avatar for cgcgames
0
129
Member Avatar for unclepauly

hi, well i have posted this on two other forums without success, hoprfuly you guys can help me ! the scenario - i have a native c++ dll that creates and initializes a string, which is a char array. [CODE] char pRet[1024]; memset(pRet, 0, 1024); strcpy(pRet, "change me!"); [/CODE] the …

0
101
Member Avatar for Ash.22

hi i've to develope c/c++ console application that connects to a MySQL server and lists all hosts connected to it at that point in time. pls help me

Member Avatar for gunavathi
-2
70
Member Avatar for dadam88

If I end my cost of .60 cents with a [B]NICKLE [/B]or a [B]DIME [/B]I get a 2.####.E number. If I end the total cost with a quarter I don't get a big number ( Wrap around number right ? ) Can anyone tell me why? [CODE]#include <cstdlib> #include <iostream> …

Member Avatar for dadam88
0
81
Member Avatar for venkat123

Hi, Can anybody tell me how to access hard disk partition information or MBR content through Visual C++ Programming? Suggest me how should i do programming and which API i should use for this purpose. Bye.....

Member Avatar for xuancong
0
3K
Member Avatar for padmavathi.ps

How to add a image or a picture from c#.net to sqlserver database . so that we can able to see the picture or image in the database when we open

Member Avatar for dnanetwork
0
61
Member Avatar for qqwushi12345

A pair of (positive) integer numbers are called twin primes if they are both prime numbers and the difference between them is 2, i.e. they are consecutive odd numbers and they are prime numbers. (3, 5), (5, 7) and (11, 13) are three examples of such pair of twin prime …

Member Avatar for cgcgames
0
3K
Member Avatar for Allophyl

I have the line [code=c++]#include <algorithm>[/code] at the top of a file, and the line [code=c++]nth_element(minRollArray,minRollArray+n,minRollArray+numSets);[/code] in one of the fuctions in that file. However, when I try to compile it I get the error error C3861: 'nth_element': identifier not found at that line. I would expect this if I …

Member Avatar for Allophyl
0
557
Member Avatar for winecoding

There is a small program. [CODE]#include <stdio.h> void f(char **p); int main() { char *argv[]={"ab", "cd", "ef", "gh"}; f(argv); } void f(char **p) { char *t; t=(p+=sizeof(int))[-1]; printf("%s\n", t); }[/CODE] Assume the size of int is 4, I was asked to give the running result of the following code segment. …

Member Avatar for burgercho
0
92
Member Avatar for NargalaX

I've been looking around for some good DLL Injection tutorials, because I would like to create a DLL Injector, mainly for educational purposes. I've looked around on google for the past 20 minutes and the only things I've come up with are debates on whether its possible or not. I …

Member Avatar for jonmcc
0
279
Member Avatar for nbaztec

Basically, I didn't know where to put this so I choose the Super of the 2 Languages. Our lecturer gave us an assignment to lay out diff. b/w C & C++, which started with a rather dirty spurge of concepts. He stated: In C program , the MAIN() should NOT …

Member Avatar for mrnutty
0
578
Member Avatar for posche

codes for ice cream inventory system using borland c++ or c.. any reply is totally a BIG HELP!please please..

Member Avatar for posche
-3
92
Member Avatar for PixelExchange

Hello everyone. I already know the C code required to use SQL statements within C++. Using mysql_real_connect, I was able to establish a connection to a remote MySQL server. The problem is, even though mysql_real_connect did not RETURN NULL, (meaning that a connection to the mysql server was established) I …

Member Avatar for PixelExchange
0
218
Member Avatar for potato4610

How can I get the respondent to terminate my survey before all respondents have entered? That respondent may enter a specific number of out of range responses in a row. Below is my code: [CODE] #include <iostream> #include <cctype> using namespace std; const int STUDENTS = 10; // students entering …

0
76
Member Avatar for chandini.david

Hey all! Here's my code: mm.cc: [CODE] int compute(int f, int c) { return f + c; } [/CODE] mm.h: [CODE] #ifndef MM_H #define MM_H int compute(int f, int c); #endif [/CODE] main.cc: [CODE] #include <stdio.h> #include "mm.h" int main() { int a; a = compute(10, 4); printf("Output: %d\n", a); …

Member Avatar for chandini.david
0
118
Member Avatar for qqwushi12345

Write a program that reads in a positive integer N and calculates and displays the sum of the first N even integers. For example if N is 6, the program should display the value 42, which is: 2+4+6+8+10+12=42. Caution: You need to write a program to do the addition. If …

Member Avatar for Allophyl
-1
1K
Member Avatar for wioneo

I have been using c++ for a short time now and wanted to add sounds support via the OpenAL library, but I am having problems. In the end I tried to directly copy the code from a tutorial, but it is still not working. I have... [CODE]alutInit(&argc, argv); alGetError(); //////////////////// …

0
31
Member Avatar for qqwushi12345

Can any body tell me what the below code does? The code is written in C++ language. ------------------------------------------------------------------------------------- [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" main(){ int num1, num2, temp; printf (“Enter a positive integer: \n”); num1=GetInteger(); printf (“Enter a positive integer: \n”); num2=GetInteger(); while (TRUE){ temp=num1%num2; if (temp==0) break; num1=num2; …

Member Avatar for Allophyl
-1
102
Member Avatar for dfcrackhead

I am trying to write a program that will read values from spreadsheets and stuff and I know I need to use CSV files instead of Excel files and stuff, but say I want to just read a single entry at a specific coordinate how do I access that one …

Member Avatar for iamthwee
0
311
Member Avatar for sa3eed7511

please i need fast answer about this i want to make Table but i guess i do something wrong can anyone tell me what the wrong i have done it [code]#include<iostream> #include<conio.h> using namespace std; void main() { char t=[3][3]; if (t[1][1]=x) cout >> t[1][2]=o; getchar();[/code] thanks very match :)

Member Avatar for cgcgames
0
88
Member Avatar for Nandu Das

I was copying a c++ program and i came tosee something like this: char a[10][10]= {....} What does a[10][10] means?? what does the symbol [] do? Pls help me...

Member Avatar for aman rathi
0
118
Member Avatar for LevyDee

Hi, Im working on a desktop utility program, and right now Im adding functionality to launch exe's from it. My question is, are there any simple methods to launch an app using the windows library? Thanks.

0
51
Member Avatar for Lukezzz

Hi.. I will make a "release" of a project I have done in VC++ 2008 Express Edition. I go to: Project/Form1 properties. Here I choose: Configuration: Release In the General tab, I choose: Output Directory C:\Release & Intermediate Directory: C:\Release. In Debugging tab I choose: Command: C:\Release Now I press …

Member Avatar for Lukezzz
0
752
Member Avatar for fire_

Hello. I'm trying to write a program witch asks you to write delay and then counts time left. But it's not working how it should. If i write number 9 or less it's working fine. But if i write number 10 or more it prints numbers wrong, ex. ir write …

Member Avatar for caut_baia
0
117
Member Avatar for Shikhin

Hi All, I am a newbie and am traking a course in Aptech for C++. Now my instructor asked me to make a program to create, display and insert nodes in a circular link list. I have made the following code: [CODE]#include "stdafx.h" #include <iostream> #include <stdio.h> #include <new> class …

Member Avatar for Shikhin
0
182
Member Avatar for helpingdeed

[B]using c++ is there any way to cout<<"plz help"<<endl; // only when the space bar is press not enter [/B]

Member Avatar for Duoas
0
116
Member Avatar for drjay1627

Hello, Is there any way of checking all elements in a queue without calling pop(). [code] while(!q.empty()){ cout << q.front() << endl; q.pop() } [/code] this is essentially what I have done. There is a bug in my program and I'm trying to check what is wrong. I don't want …

Member Avatar for vijayan121
0
129

The End.