49,757 Topics

Member Avatar for
Member Avatar for Jennifer84

Hi, I have a problem with a webrequest with the below code. If I try to request "http://www.google.com", it works fine. But when I try to reach this long URL below with this code, I receive an error: I wonder what this depends on and what could be done? [B]The …

Member Avatar for thines01
0
203
Member Avatar for cplusplusrookie

Hi, I am doing a program using Doubly-Linked List. I am just studying C++, and still new in this field. My question are: - How can I make a method which[B] inserts a new node before the currently selected node, then makes the new node the current node[/B]? - How …

Member Avatar for Narue
0
148
Member Avatar for stupendousomega

I need a way to concurrently create variables with a loop. Like... Instead of int my_var_1 = 1; int my_var_2 = 1; int my_var_3 = 1; Because the user may need thousands of variables, and I don't want there to be a limit. So I was wondering if there was …

Member Avatar for dionisov
0
6K
Member Avatar for IndianaRonaldo

Hi, I am looking for some advice here.I have basic knowledge of C++ and regularly write programs in it.I haven't tried anything related to networking in it.I want to start now and I'm clueless about the possibilities.I am novice in knowledge of networks and people have recommended many books but …

Member Avatar for Stefano Mtangoo
0
197
Member Avatar for ccao

Hi All, I am trying to create a image text detection program. The program is up and running, and I can distinguish between text and non-text using laplacian based method with an acceptable accuracy. However, the problem is that I need the program run with the speed > 100 (images/s), …

Member Avatar for ChaseRLewis
0
192
Member Avatar for evilguyme

hey guys! ive spent another 3 hours trying to find out what is wrong with my code! i tried many ideas that came into my head but they didnt work :( here is my code.. ive narrowed my problem and shown where it could possibly be by enlarging and making …

Member Avatar for ChaseRLewis
0
124
Member Avatar for evilguyme

Hey guys! i was wondering how some games and software have image files that are accessed from .dat and/or .bin files! can i do this for a C++ program? i tried googling but had no hope so i posted here.. i would also like to know how i can make …

Member Avatar for ChaseRLewis
0
117
Member Avatar for ChaseRLewis

So I've created an event driven architecture for my current program. I want each new event to have a number generated automatically with a function so I don't have to worry about overlap of id's and referencing is easy. [CODE] class Event { protected: static int get_event_id(); public: virtual int …

Member Avatar for ChaseRLewis
0
252
Member Avatar for IndianaRonaldo

I want to learn basic web query vc++.I googled around and found that libcurl was the library needed.I have downloaded the necessary files from curl.haxx.se .I do not know how to use these files and make the actual header file and then actually include it in my project. Any help …

Member Avatar for Ancient Dragon
0
187
Member Avatar for ben1996123

Hello, I just downloaded the [url=https://mattmccutchen.net/bigint/]big integer library[/url], and I want to use it in my prime number checking program. I downloaded the zip file and got a bunch of .cc and .hh files. I need to know what to do with the files, where I should put them, and …

Member Avatar for ben1996123
0
234
Member Avatar for SCass2010

Hi everyone, I was wondering if anyone could provide a bit of help, I need to store an integer value that is 20 bytes in length - I know theres an int32_t and int16_t, but I can't seem to get an integer stored that is only 20 bytes!! I've also …

Member Avatar for Duoas
0
1K
Member Avatar for meyumi_lelouch

I am trying to make a program that will list all the National Heroes of our Country. We used the switch statement. [CODE]#include "stdafx.h" #include "iostream" #include "stdio.h" #include "conio.h" using namespace std; int main() { int choice,desc; char repeat; cout<<"\t\t\t\tPhilippine National Heroes\n\n"; cout<<"[1]Dr.Jose Rizal\n"; cout<<"[2]Andres Bonifacio\n"; cout<<"[3]General Gregorio Del …

Member Avatar for Anuradha Mandal
0
843
Member Avatar for Anuradha Mandal

I can not run this program in my C++ compiler(Dev c++). [CODE]#include <iostream.h> #include <conio.h> #include <graphics.h> #include <ctype.h> #include <stdlib.h> #include <stdio.h> int main() { // clrscr(); int gd = DETECT,gm,errorcode; //Requesting auto-detection. //Initializing graphics and local variables. initgraph (&gd, &gm, "d:\\bc3\\bgi"); //Path where graphics drivers are installed //Read …

Member Avatar for Anuradha Mandal
0
273
Member Avatar for Tim.Anderson

I have a class (DataBuffer) that has functions that return objects of DataBuffer but when I'm calling other class functions from within the function that returns the object of DataBuffer, the internal values are not being set after the function returns. So, basically (if you made it through that first …

Member Avatar for Tim.Anderson
0
111
Member Avatar for evilguyme

Hey guys! i have yet another problem and cant find a way around it :O i have this function in the class Platform [CODE] void Platform::set_clips(SDL_Rect platClip[], int i) { for( int j = 0; j < i; j++ ) { platClip[j].x = 0; platClip[j].y = 0; platClip[j].w = random_number_w(); …

Member Avatar for evilguyme
0
138
Member Avatar for matanking

hi im trying to make a "settings" that they are on c++ and saving on text documents here is the code [CODE]#include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main(){ fstream first("firstt.txt");; fstream File("file.txt"); string firsttime; string blah1 = "enable"; string blah2 = "disable"; getline(first, firsttime); …

Member Avatar for matanking
0
101
Member Avatar for Anuradha Mandal

[CODE]#include<iostream> #include<cstdlib> #include<conio.h> using namespace std; int main() { int i,j=0; cout<<"1"; for(i=1;i<=55;i++){ if(j>12) break; else{ if(i%2==0||i%3==0||i%5==0) j++; } } getch(); return 0; } [/CODE] This is my code .I want to print the numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, …

Member Avatar for WaltP
0
135
Member Avatar for PratikM

Hey Guys, I was just making a program with music running in the background and whenever I tried to run the .exe file of the program, the music wouldn't play. Extra Info: I'm running Windows 7 and Visual Studio 2010 Express. Here's my code if you need it...(beware: it is …

Member Avatar for raptr_dflo
0
306
Member Avatar for moonray

hii,i have to know about performance measurement and improvement library.itz our project topic for btech.plz give an idea about the topic. content:how to improve a c++ program by calculating fn call,fn time,memory allocation and save pointers

Member Avatar for raptr_dflo
0
122
Member Avatar for dophine

Hi, Since small object allocation in heap is bad, I am just wondering the range of the object size that is defined to be small. Regards, Michael

Member Avatar for dophine
0
267
Member Avatar for Tauren

[code] #pragma comment(lib, "crypt32.lib") #include <stdio.h> #include <windows.h> #include <Wincrypt.h> #include <iostream> #define MY_ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING) //this is keylength bit shifted, here we have keylength of 1024bits hence 1024 << 16; #define KEYLENGTH 0x04000000 using namespace std; int main() { DWORD dwFlags = 0; HCRYPTPROV m_hProv; PBYTE pbKeyBlob; DWORD …

Member Avatar for nezachem
0
212
Member Avatar for evilguyme

hey guys! i am trying to make an algorithm that generates random numbers within a given range ( this range may differ ) i have tried using rand() but i dont like it because the best seed is the time and it doesnt generate numbers random enough. thing is i …

Member Avatar for Narue
0
115
Member Avatar for tawes01

I want to make a c++ program that can open an image that is in any of the major formats (jpg, gif, bmp, png) and has any size and I want to resize it to a specific size (no, I don't care if it looks stretched) and save it to …

Member Avatar for tawes01
0
1K
Member Avatar for rjcenteno

i'm stuck on a program that i am working on in class. your suppose to open a text file with names of shapes and certain lengths of it's sides. it then calculates what it's area/perimeter/volume/circumference and so on and so forth for each shape named in the text file. i …

Member Avatar for raptr_dflo
0
151
Member Avatar for SakuraPink

hi everyone, I need to write a piece of code that sort an array of double values named distance[i] in the following code. The counter i is the index for another array as well therefore I don't want to change the order of the array. I got hint from this …

Member Avatar for SakuraPink
0
151
Member Avatar for FriXionX

As in, if you had an if statement, for example: [CODE]if(endProgramChooseType != 'y' || 'Y' || 'N' || 'n'){ (code for exiting program) }[/CODE] How would you do that in a switch statement? without doing [code]case 'a': case 'A': case 'b': case 'B': case 'c': [/code] etc.

Member Avatar for FriXionX
0
6K
Member Avatar for sDJh

Hello altogether, I am supposed to work through a project written in C++ and QT for Windows platforms. Now I am not an expert in window-related stuff. I installed MinGW 3.4.5 and QTSDK on Win XP SP3. I am using the tool "qmake" to create a makefile with all dependecies …

Member Avatar for sDJh
0
316
Member Avatar for Nelli71

Hello all amatuer user of C++ please help me recode this the question is this: The function String_To_MDY() assumes the user correctly enters the date in the form mm/dd/yyyy. Recode this function to include the following test. Test the string ensure the user enters two digits, followed by a slash, …

Member Avatar for Nelli71
0
158
Member Avatar for termin8tor

Hey all, I've been programming an ISBN system of sorts and I'm a little stuck (again). I want to output my linked list to a text file, so I setup the code like this: [code] void saveList(char fileName[40]) { for ( list< Publication* >::iterator it = pubList.begin(); it != pubList.end(); …

Member Avatar for termin8tor
0
265
Member Avatar for evilguyme

hey guys! im just so frustrated with this error .. more like a bug though heres a link to all my code on google docs [URL="https://docs.google.com/document/d/1JxrZtbBJ8RPpMvuXvi767Y4gBSiXmKauNu7RApHNVbg/edit?hl=en_GB"]Source[/URL] the bold and enlarged stuff is whats causing the bug problem is when i add [ICODE]void Platform::set_clips(SDL_Rect platClip[], int i)[/ICODE], i guess something in …

Member Avatar for evilguyme
0
118

The End.