33 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bdl365

I am having difficulties writing the program. the program should ask user for a positive integer and print a factorial table. for example - Give me a positive integer: 5 1! = 1 = 1 2! = 2 x 1 = 2 3! = 3 x 2 x 1 = …

Member Avatar for Muhammad_331
0
2K
Member Avatar for tdba.316

Hi~ I've been stuck with this exercise for quite a few days. It's in a book I'm currently self-studying, C++ primer plus. It is as follow: [CODE]/* Write a program that uses an array of char and a loop to read one word at a time until the word done …

Member Avatar for Toniolo
1
1K
Member Avatar for rpv_sen

Hi I am trying to read the datas from mysql using php in json. but i am not getting my expected output. Please help me to fix the issue. **code** <?php include('../config.php'); //mysql_query("SET NAMES 'utf8'"); $tdate = date('d-m-Y'); $url = 'url'; $sql = "SELECT * FROM pimage where date<='$tdate' and …

Member Avatar for rpv_sen
0
3K
Member Avatar for berserk

I have been working with this table for some time now and i cannot figure out how to get the nested feature working correctly, when i try to insert the nested table into the original table is admitidly does go in but it removes all the formatting from my previous …

0
290
Member Avatar for Doogledude123

I know you can create nested classed (or just classes declared outside of the class in the same file) but what is the point of doing this? Why not just create a new class file?

Member Avatar for JamesCherrill
0
197
Member Avatar for zaxo311

I'm trying to make make project for my programming class. All that's left is deleting elements and editing elements. Basicaly my question is how would I do it for my inner list? Or how would I delete single client from list? Would I first have to free the client's inner …

Member Avatar for zaxo311
0
423
Member Avatar for zaxo311

Im writing project for my programming lessons and right now got some problems with output from function AddItemToClient, basicaly its mainly with date, in first node its correct one but after this its just random. Could someone explain what I'm doing wrong here? #include <stdlib.h> #include <time.h> #include <string.h> #include …

Member Avatar for zaxo311
0
934
Member Avatar for mmcdonald

Kill me now! I have two tables in my DB. One has a list of certifications and one has a list of exam boards. I need to list the exam boards in a foreach loop giving each one an accordion. The certifications must be listed under their correct exam board. …

Member Avatar for mmcdonald
0
837
Member Avatar for Violet_82

Chaps, I have a question about nesting elements. I am using bootstrap for a project I am working on, and for whoever didn't know that - I am one of those - in bootstrap buttons are `display:inline-block;` Now, I have this situation at the moment: `<p><button>My button</button> This button means …

Member Avatar for Violet_82
0
2K
Member Avatar for CoilFyzx

Hello good day. I have an urgent need as it relates to creating a table. Is it possible to create sub-columns under a main column? Please see image file for clarification. ![70637f1f94a4b270bf9cc203f22390bf](/attachments/large/3/70637f1f94a4b270bf9cc203f22390bf.png "70637f1f94a4b270bf9cc203f22390bf") Ultimately, I want to create a coulmn heading, and then beneath that heading divide it's width into …

Member Avatar for JamesCherrill
0
893
Member Avatar for nacedo

I have this chunk of jQuery that is doing strange behavior. When I load the page, my list is slided Up (completely folded) wich make sense. But I have to double click each parent to slide them down, which is not the normal behavior. I think this line is the …

Member Avatar for nacedo
0
1K
Member Avatar for UKnod

I have a warning that I can;t get rid of: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. I am pretty sure it is becasue I have not dimentioned the variable but how do you dimention an IO.memorystream. …

Member Avatar for UKnod
0
277
Member Avatar for Xufyan

I am trying to figure out the way to use the nested loop in a proper way but so far i am failed, The loop run to infinity when i run the program which i definitely don't want to do, here is my code, .MODEL SMALL .STACK 100H .DATA var1 …

Member Avatar for sbesch
0
3K
Member Avatar for andarivaadu1

Here is my query UPDATE tracks SET People_id_Reference = (SELECT People_id FROM People RIGHT JOIN top100 ON People_name=top100.artist LIMIT 1) WHERE People_id_Reference IS NULL; But that query inserts same people_id value into all rows of People_id_reference Can some on help me with this. Thanks in advance

Member Avatar for andarivaadu1
0
196
Member Avatar for ponkhiraj

Hello Developers, I'm here for your kind help, I am making a program where these codes i wrote: for i as integer = 0 to 5 If TextBox4.Text.Contains("1") Then TextBox4.Text = TextBox4.Text.Replace("1", "_n_") End If If TextBox4.Text.Contains("2") Then TextBox4.Text = TextBox4.Text.Replace("2", "_o_") End If If TextBox4.Text.Contains("3") Then TextBox4.Text = TextBox4.Text.Replace("3", …

Member Avatar for Reverend Jim
0
537
Member Avatar for rahul.ch

public class IC1 { private int x = 3; static int y=4; class Inner { public void inmet() { System.out.println(x + " " + y);} } public void do() { Inner i = new Inner(); i.inmet(); } public static void main(String r[]) { IC1 ic = new IC1(); ic.do(); } …

Member Avatar for rahul.ch
0
193
Member Avatar for echocoder

I have a nested list, named env, created in the constructor and another method to populate an element of the grid defined as below: ... class Environment(object): def __init__(self,rowCount,columnCount): env = [[ None for i in range(columnCount)] for j in range(rowCount) ] return env def addElement(self, row, column): self[row][column] = …

Member Avatar for echocoder
0
1K
Member Avatar for athulram

Hey all. I have this program where I need a variable number of for loops. For eg. the program i use to find the pythogorean triplets is for n1 in range(100): for n2 in range(100): for n3 in range(100): if n1**2+n2**2 == n3**2: print str(n1**2) + '+' + str(n2**2) + …

Member Avatar for athulram
0
4K
Member Avatar for nickg21

Hey everyone, I am looking to write a query that I think can be solved a nested select but I am not yet that fluent in MySQL to be able to get the query working correctly. Basically what I want to do is this; SELECT count(*) from Inquiry Inner Join …

Member Avatar for BitBlt
0
732
Member Avatar for Sunciti

Hi - I'm a rookie programmer. Could somebody explain how I can append a nested list of the form: List = [[Name1,[Detail-1,Counter-1],[Detail-2,Counter-2].....] [Name2,[Detail-1,Counter-2],[Detail-2,Counter-2].....] ................................................. ] My code is : def program(List, Name, Detail): for entry in List: if entry[0] == Name: entry[1].append([Detail,Counter]) return [B][I] List.append ([Name,[Detail]]) for entry in index: …

Member Avatar for misokolsky
0
8K
Member Avatar for johnnydarten

Dear all, I'm a C beginner and I was doing a small practice nested loop on C when I got a very strange error which when the console opens tells me that my program has stopped working. here is the code: [CODE] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> …

Member Avatar for johnnydarten
0
168
Member Avatar for Xaviorin

I'll keep it simple and hopefully whatever simple error I keep overlooking can be used as a learning experience for others. This program uses a user created file called patient.dat that contains the following: Smith Eleanore 110/73 Jones Tom 200/78 The error I am having is that Mr Tom Jones …

Member Avatar for Xaviorin
0
236
Member Avatar for Jeroen van Zijp

Hey all! What I am working on is a contact form with file upload functionality. (e.g. user should be able to upload a screenshot.) Uploading a file should not be mandatory. So the mail which is produced from the entered information in the form should be sent without an attachment …

Member Avatar for soul2life
0
136
Member Avatar for Jsplinter

I have a nested class declared as: [CODE]class A { class B { // members }; // members }; [/CODE] Is there a good way to avoid typing A::B every time I need to access B's members? I'd just like to do this in one .cpp file. I tried "using …

Member Avatar for Jsplinter
0
223
Member Avatar for geekman92

hi i was wondering if (and how) you can create nested methods in c#. c# seems to do it with size and other things. something.Size returns a value but also something.Size.X returns a value. how can i do something like this myself? Thanks Ollie

Member Avatar for geekman92
0
150
Member Avatar for saad749

I am trying to create a Unit Converter. My Idea is to have a select box at the top to select Length/Temp etc. which will populate the two select boxes below with appropriate units. The below code should Work only for Milimieters to Milimeter, Meters and Kilometers. It should show …

Member Avatar for saad749
0
215
Member Avatar for tdba.316

Hey :D this is my first post here^^, and it's a problem with an exercise from the book C++ Primer Plus, which I have been self-studying (I'm the beginner). The following code is how I did the exercise, which is in the header comment. It was built in VC++ 2010, …

Member Avatar for tdba.316
1
1K
Member Avatar for Pinchanzee

Wasn't sure whether to put this with PHP or Mysql I'm having trouble with the below code, it only does the inner while loop once, while still cycling past it every time. It should update the "favourite" integer column in each "link" by checking if it's in the favourites of …

Member Avatar for Pinchanzee
0
149
Member Avatar for Bladtman242

This is probably really more of a math problem. I hope I want have to go into too much (for you, boring) detail about the code, as the problem resides in this loops. Please let me know if I provided too little detail :) Now for the problem: I would …

Member Avatar for Bladtman242
0
258
Member Avatar for ankilosado

Hi, there, I am also very new to Java. For class, I have to create an structure that reflects that of a document stored in a plain txt file. The hyerarchy of the classes is: Class document is made of //complex objects class Page objects, that are made of class …

Member Avatar for ankilosado
0
446

The End.