51,593 Topics
![]() | |
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 ", … | |
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? | |
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 … | |
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 … | |
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? | |
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 | |
Hi How to get the total cpu usage in mac.(Programmaticaly) | |
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 … | |
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 … | |
[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; … | |
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 … | |
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 … | |
salam, i want to change my C++ code to UML model. How can i do so is there any software. please tell me. thanx. | |
How do we output value in register AX? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
can u please tell me that if in c# windowsapplication i want to insert picture which code i have to write????????? | |
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 … | |
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 … | |
Hi, Where I can download iostat source for mac OS. | |
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 … | |
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 … | |
could someone please point me to a link on how to convert my char* temp = new char[3]; to a char test[3]? | |
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 … | |
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(); … | |
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, … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 | |
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) { … | |
Converting textBox1->Text into a basic string. How would I do this in Visual C++ 9? | |
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 … | |
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 … | |
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 … | |
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 … | |
String swapping Output: Input name:Kitty yittk Thanks | |
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 … | |
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 … |
The End.