51,593 Topics

Member Avatar for
Member Avatar for dumrat

Hi, I wrote the following macro: [CODE] #define COM " #define GET_VAR_LINE(var, type) COM var = %type COM, var [/CODE] So, this code : [CODE] int main() { int x = 0; printf(GET_VAR_LINE(x, d)); }[/CODE] expands to [CODE] int main() { int x = 0; printf(" x = %d ", …

Member Avatar for ArkM
0
129
Member Avatar for osmano807

Hello, I need to get remote file size through the url to a function. The problem is that I'm not getting! Trying with the functions of libcURL, but I am not getting. Is there any way to get the size of a remote file by url?

Member Avatar for osmano807
0
1K
Member Avatar for ixuz

Hello I have had this problem for a while now, I am getting bluescreen when I start my debug.exe from my debug folder manually, but I do not get bluescreen when compiling and starting from C::B. But there is an exception, my program only bluescreens if I start it before …

Member Avatar for Salem
0
194
Member Avatar for krishnampkkm

hiii I know VCNs(Virtual cluster number) are clusters within a particular file, LCNs(Logical cluster number) are clusters on the volume. Thus VCN 0 of a file may map to LCN 2394 of a volume, VCN 1 may map to LCN 104227, and so on. So my doubt is the the …

Member Avatar for Salem
0
118
Member Avatar for purpleCRAYON

This is the code i'm using: [code] List<Process> processes = Process.GetProcesses().ToList(); processes.ForEach(x => MessageBox.Show(x.ProcessName + ".exe"));[/code] For some reason, it is looping through it, I just want it to go through the processes once. Anybody got any help?

Member Avatar for sknake
0
96
Member Avatar for vishalag

Hi, I want to pass tree as an argument to other function in C. I am able to pass the tree comfortably,but how do I access the children of the tree in the called function??? TIA Best Regards Vishal Agarwal

Member Avatar for Sky Diploma
0
114
Member Avatar for mathueie
Member Avatar for yazooney

Hi, I have, for example, the memory address of a double value which is: 245CEA20 I need to do something like this: [CODE]double * value = 0; value+= 0x245CEA20; std::cout << value << std::endl;[/CODE] I get a value like 22E75100 which is wrong even if you convert it to decimal …

Member Avatar for yazooney
0
3K
Member Avatar for lexusdominus

Hey. I have to say this is the first time ive been totally stumped by c++. I cant exit this loop. this code is from a function that takes a string filename, an int mode, and a char print. It takes a textfile looking like this: somesite.netinfoaboutsomesite someothersite.orgdataonsomeothersite yetanotherrandomsite.edurandomchars and …

Member Avatar for lexusdominus
0
142
Member Avatar for timb89

[code] bool isReverse(string s1,string s2) // pre : none // post : returns true if s1 is reverse of s2 and otherwise false { if (s1.length() != s2.length()) { return false; } int size = s1.length(); int count = 0; else { for (int i = 0; i < size; …

Member Avatar for ArkM
0
108
Member Avatar for gnobber

Hi, im just beginning c++ and been reading regarding cin and cout. After reading the chapter, I just got curious what acually a stream is. It is said in some as a series of characters. In a site: "A stream is an abstraction that represents a device on which input …

Member Avatar for sai sushma
0
154
Member Avatar for nustian

Q:- create a class in which you will declare a pointer to int . This variable will be defined n allocated memory in the constructor. Create a destructor of the class where this memory will be deallocated. Using this class do the following: 1) In the main function create an …

Member Avatar for ArkM
0
148
Member Avatar for nustian

salam, i want to change my C++ code to UML model. How can i do so is there any software. please tell me. thanx.

Member Avatar for ithelp
0
67
Member Avatar for deostroll
Member Avatar for Aseem_Pandey

can long long store 12 digit numbers. Its showing in my comp that limit of long long is 9223372036854775807, but then it's showing too large when i declare it like this: long long num; i don't want to store in array. My seniors told that long long will do but …

Member Avatar for siddhant3s
0
269
Member Avatar for jesseb07

hello, got a quick question regarding stack overflow (I honestly don't know if this is more suited for a wxWidgets forum, once you see what I mean, but I figured I'd try here first). I was tweaking my linked list class and testing it in a testing harness program I …

Member Avatar for jesseb07
0
261
Member Avatar for yun

Stanford cs249a Meterial (Object-Oriented Programming from a Modeling and Simulation) -------------------------------------------------------------------------------- From where i can get the below Meterial?? if any one have the below plz send me or give me a link... i really need these lectures.. Thx & regards. Required Reading Chapter 1: Software Husbandry and Software Development …

Member Avatar for Stinomus
0
438
Member Avatar for NathanOliver

Hi i am building a program that will take the text of a supplied file and encrypt using a password then save the encrypted text in another file. To decrypt the file you must provide the same password used to create the file. the program encrypts the text at a …

Member Avatar for NathanOliver
0
152
Member Avatar for alka123456

I have got a log file as follows The log file has the following format : Date/Time, Severity, Module(the number after the process name is the process id) and finally the diagnostic message as an example : dd/mm/yyyy HH:mm:ss.mmm Severity Module Message ======================= ======== ====== ======= 17-11-2008 17:01:17.590 SUCCESS wmlumberjack.exe:940 System …

Member Avatar for NathanOliver
0
239
Member Avatar for theashman88

Alright so I'm trying to insert a few superscripts into a program. I'm working to try and recreate a math problem. I tried googling how to insert superscripts, then tried how to insert Unicode into a console application, but I didn't get much luck. Anyone have any ideas. By the …

Member Avatar for theashman88
0
124
Member Avatar for daino

When initializing a constant data member in a given class with a constructor, does the act of initializing that constant data member (providing it with a value) actually stop you from assigning it the value you wanted to give it later on in the program? My understanding is that a …

Member Avatar for dwks
0
165
Member Avatar for xtremebeauty

can u please tell me that if in c# windowsapplication i want to insert picture which code i have to write?????????

Member Avatar for serkan sendur
0
197
Member Avatar for vanalex

Hello everybody! Recently while i was experimenting with some code written in c++ i noticed something that confused me a bit. In that code i had to deal with 2 structs : [code]struct date { string day; int month; int dday; int year; }; [/code] and the other struct [code]struct …

Member Avatar for iJimJones
0
131
Member Avatar for horiya

hi! i need help with my code...i dont have any syntax errorrs but when i run it it doensnt run!! i dont kno what to do!! plss i really need help!!! i have to write code tht uses array to store student information and calculate the average, letter grade. i …

Member Avatar for tux4life
0
133
Member Avatar for mathueie
Member Avatar for martin_jj

Hello, Please, do you know how to implement RSA/ECB/Pkcs1Padding encryption witn non-exportable private key in CryptoAPI? I have only a handle to my private key. The result should be exactly the same as java Cipher implementation of this algorithm does. CryptoAPI always gives me different result. I've tried many ways …

0
60
Member Avatar for colmcy1

Hey all, I have just updated to MS VS 2008 Pro. I am having some cross over problems from MS VC 6. Below is a simple example: [CODE]#include<afx.h> #include<iostream> using namespace std; int main() { CString s; CString sa("Strings "); CString sb = CString("are easy "); CString sc = "in …

Member Avatar for colmcy1
0
799
Member Avatar for Usura

could someone please point me to a link on how to convert my char* temp = new char[3]; to a char test[3]?

Member Avatar for Ancient Dragon
0
69
Member Avatar for shinkelwars

Hi guys, My employer has given me a mission to find a robust and scalable API for C++ that allows for easy programming of client / server systems. In this case the application they intend to build involves thousands of clients sending data continuously to a central server (the data …

Member Avatar for Ancient Dragon
0
149
Member Avatar for kabeer62

there are blanks in the question as the pro gramme need some codes and definitions to get completed. Please help me in completing this problem. than x in advance. [code=cplusplus] #include <iostream.h> #include <conio.h> #include <fstream.h> //---------------function prototypes----------------------------------------- int menu(); void screenHold(); void enter(); void report(); void save(); void load(); …

Member Avatar for KuriYokan
0
120
Member Avatar for clisen

Hey everyone, I'm trying to create a string inside a class, but for some reason, my compiler is not recognizing: [CODE] class ob { string name("Name"); public: //code } [/CODE] error C2059: syntax error : 'string' This class is being written in a header file, which has #include <string>. Now, …

Member Avatar for clisen
0
131
Member Avatar for fadia

This is my CS101 final project i have to make a whole programe by myself. its a programe for a flight agency its still incomplete, i knwo it still needs alot of work but i keep getting 4 errors when compailing i want to solve them so i can move …

Member Avatar for ithelp
0
129
Member Avatar for timb89

[code] void deleteNegative(queue <int> &q) { queue <int> temp; if (!q.empty()) { int x = q.front(); if (x >= 0) { temp.push(x); q.pop(); } else { q.pop(); } } while(!temp.empty()) { q.push(temp.front()); temp.pop(); } } [/code] just afunction that returns a queue without the negatives in the same order. unsure …

Member Avatar for Sky Diploma
0
76
Member Avatar for andonyan

Hi everyone, im fairly new to programming and i'm having problems solving my homework. My assignment is: Define a class Quadratic that stores the coefficients of a quadratic polynomial in a dynamically allocated array of doubles. Supply the "big three" memory management functions. Use this class to demonstrate (a) the …

Member Avatar for Sky Diploma
0
327
Member Avatar for Aseem_Pandey

I am stuck with a unique problem. We have to find the sum of digits in 2^1000. The code below is giving correct output. However when I change the value of digit from 1000 to anything <=604, It shows wrong output. The number of digit in 2^1000 is 302 and …

Member Avatar for Aseem_Pandey
0
286
Member Avatar for KuriYokan

Hi guys. I'm pretty new here. I was recently playing around with templates and found them to be really useful. I was wondering how I could check the data type of the variable that was passed into the function, and I heard about RTTI from my friends. I've looked around …

Member Avatar for KuriYokan
0
139
Member Avatar for nadith_cs

plz let me know how to store the respond and take some logical actions upon it in visual STUDIO windows form application wht's the code for it; note that msdn suggest that it should be MessageBox::Show(" text here ", ,MessageBoxButtons::YesNo )==DialogResult::Yes but it's not working; DialogResult only has get() and …

Member Avatar for Nicklorion
0
200
Member Avatar for iammfa

hi, i'm using vc++ 2008 express edition to build my small exercises projects, building solution ok, no errors no warns, my problem started after i tried build my project, , the problem is the path of .exe project application, vc++ create it in path " D:\", although my folder "release" …

Member Avatar for iammfa
0
99
Member Avatar for protjaart

hi i am truly just a student at this time soon to be the worlds best programmer there is just this one hickup with my studies i am trying to learn the c++ visual studio 2008 as part of my current course i am taking and every thing went well …

Member Avatar for protjaart
0
124
Member Avatar for KickAss2k1

I have a text file that (partial snippet) looks like the following: Bugs Bunny Jr. 1234 1001.01 Porky Pig 2345 1002.02 Its format is a name (including spaces) is 20 characters, then 4 digit number, a space, and a number thats not a set number of characters. I have to …

Member Avatar for ArkM
0
256
Member Avatar for Usura

Could anyone please show me howi can assign a char* pointer[2] to a char temp[2]? been looking around can i cant find any examples of this

Member Avatar for tux4life
0
79
Member Avatar for ogwiz

Hi all, I'm having some trouble with my program, I know my copy and my clone function is correct, basically I just need to create the functions to achieve the desired result. Here is my code so far [code=c] #include <stdio.h> #include <stdlib.h> // helpers size_t length(const char *s) { …

Member Avatar for ArkM
2
106
Member Avatar for azjherben
Member Avatar for Lerner
0
89
Member Avatar for kasumi01

im working on a program who the user enters data of a Movie: name, Director, and playtime im on my last error but i cant see the where the problem is ore what to do i trayed to change some parts in the code to see the problem with no …

Member Avatar for kasumi01
1
227
Member Avatar for yun

write a program that read in an array of integers-- ideally from a text file. and then displays a histogram of those numbers, divided into the ranges 0-9, 10-19 ,20-29, and so forth, up to the range of containing only the valye 100. Please help me to write a efficient …

Member Avatar for vmanes
0
2K
Member Avatar for Usura

hey Ive been given a task which im suppose to create a chained container which recieves only 1 string, and continues chaining untill there is a repeat in the input, I was thinking that maps would be more appropriate but im not sure if I would be able to chain …

Member Avatar for StuXYZ
0
110
Member Avatar for Mudi

Hi, can any one tell me that how can i add two different statment constant and show it one answer for example , cout<<"cost of letter ,0.40"; cout<<"GST:0.05"; i want to add values between these two statment o.40+0.05=0.45 i want to perform this function in programme so can anyone please …

Member Avatar for siddhant3s
0
118
Member Avatar for happypig112
Member Avatar for yun

i need little help of urs in the above code, RightFrom Function is perfectly working but there is a logic bug in LeftFrom Function. when i m sending North as argument the result from LeftFrom is -1 but i need 0. help me to solve this issue. [code]#include <iostream> using …

Member Avatar for Ancient Dragon
0
100
Member Avatar for mimio134

Hey guys appreciate u can help to do this: Write a program to implement linked lists to handle large integers. Since we cannot store big integers in any of the primitive types, the only way is to manage each digit as a node in the linked list. Take care that …

Member Avatar for Sky Diploma
0
2K

The End.